Post #1927995
2026-04-13 09:47 UTC
Right now my corpus of code to exercise the compiler is the compiler itself (~5000 lines of code) and an ever-growing library of little test cases (about 1000 lines across 50 tests at the moment), which is a start, but I'd love to have some interesting stuff between those extremes...
Replies (1)
-
@abnv@fantastic.earth 2026-04-13 10:11
@swetland I've previously used generative testing to do this. I generate program ASTs of varying sizes, feed them into my compiler, execute the generated code and compare the results against a definitional interpreter. Found many tricky bugs.