AI methods in programming (focusing on Scheme,Racket)

I'm creating this thread for everyone to discuss AI methods (with a focus on Scheme and Racket). This way, we can avoid going off-topic in other discussion threads.

I will start with this example:

When developing a new programming language (either manually or using AI),

we have to perform extensive verification tests.

An AI like Claude Code will want to validate a new language developed based on Scheme by

testing it on thousands of examples of small programs.

I was suggested to install an external tool called:

American Fuzzy Lop (AFL) :

As I understand it, the AI provides “seeds”—which are small program examples—to AFL, which then uses these seeds to generate different programs (modified by a genetic algorithm) to test the language. (This has been used with Scheme+ and type annotation.) It checks whether parsing and compilation succeed all the way through to runtime (and perhaps even beyond, by comparing the result to the expected output if it knows what that is, though I’m not entirely sure about that).

One advantage is that AFL is external to the coding agent itself, so it can run all night to verify a new programming language without consuming any AI tokens.

This makes it possible to develop a new language based on Racket that is very reliable because it has been verified on tens of thousands of examples.

(It should be possible to use this without AI, but I wouldn’t know how to do it.)

Translated with DeepL.com (free version)

1 Like