session
Update 18: A clean bill of health
Before starting the self-host rewrite, the project audited itself, and fixed everything the audit found.
- Skip list: 42 → 0. A systematic audit found 37 “skipped” tests that had long since started passing on all three backends. The rest were fixed for real: KV-cache and quantization builtins in C codegen, float formatting parity, and an optimizer bug where dead-call elimination silently removed
Vec_pushand other side-effecting runtime calls. - Known-fail list: 10 → 0. The last six (nested Vec iteration, thread-spawn state sharing, string content comparison, and float formatting) were month-old bugs, each root-caused and fixed.
- The baseline now: 164/165 normal tests on the interpreter and C codegen (the one failure is an unrelated user-added test), 165/165 on the PE emitter, 265/265 unit tests, 36/36 expected-fail tests correctly failing.
- Debugging infrastructure:
dump-tokens/dump-ast/dump-ir/dump-pir/dump-ccommands, adiff-testcommand that compares every compiler stage against golden files,--traceper-stage timing, a configurable--max-recursionlimit, and an iterative parser fallback that survives 1000-level nested expressions. - Stdlib for compiler-writers:
assert_msg/assert_eq_msgwith f-string formatting, binary file I/O, and a full set of string utilities.