Skip to content

← All updates

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_push and 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-c commands, a diff-test command that compares every compiler stage against golden files, --trace per-stage timing, a configurable --max-recursion limit, and an iterative parser fallback that survives 1000-level nested expressions.
  • Stdlib for compiler-writers: assert_msg/assert_eq_msg with f-string formatting, binary file I/O, and a full set of string utilities.