Hasty Briefsbeta

Bilingual

I Built a Scheme Compiler with AI in 4 Days

4 hours ago
  • #Compiler
  • #Scheme
  • #WASM
  • Author built a Scheme compiler to WASM called Puppy Scheme as a side project.
  • Development was surprisingly fast, taking most of a weekend and a few weekday nights.
  • Claude AI improved compilation time from 3½ minutes to 11 seconds overnight.
  • Features include 73% R5RS and R7RS support, WASI 2, WASM GC, dead-code elimination, and self-hosting.
  • Includes a wasmtime wrapper for native binaries and a website running on Puppy WASM in Cloudflare Workers.
  • Demonstrated a simple component model with a counter example.
  • Project is alpha quality with bugs, but shows deep progress in a short time.
  • Available for exploration at puppy-scheme.org, though future development is uncertain.