Hacker News AI· drakestapleton·· 20 hr agoAI score36
Show HN: Bootstrapping a compiler with AI run on to ARM64, WASM, SPIR-V
Show HN: Bootstrapping a compiler with AI run on to ARM64, WASM, SPIR-V
AI summary
A project grows a compiler toolchain from a 408-byte hand-written ARM64 seed, with each rung written in the language of the rung below and required to rebuild itself byte-for-byte, using existing C and GNU tools only as referees. The chain reaches omc, an Omega compiler written in Omegese that emits ready-to-run Linux programs with hand-laid file headers and no linker, and adds scalar WebAssembly MVP and SPIR-V 1.0 OpenCL Kernel backends. At commit e5b32567 the compiler source omc/omc.om is 12,040 lines and 208,168 bytes, and the seed chain uses 164 machine words against the C path's 600 on the 10 practice tasks.
Source: Hacker News AI · github.com