Bun Lands Massive AOT Compiler Rewrite
Bun merged PR #48120, a sweeping rewrite of its experimental ahead-of-time compiler for `bun build --compile --aot` and `bun test --aot`. The change touched 29,734 files, mostly stored tests validating compiled behavior against normal execution.
The joke works because this is genuinely an absurdly large compiler PR—but the test-heavy approach is exactly what an unsafe AOT rewrite needs.
- –Aligns Bun’s compiler with new JavaScriptCore AOT work
- –Adds roughly 29,000 stored programs and test runs
- –Improves module resolution, mocks, workers, and compiled executables
- –Binary size increases by 3.6–5.3 MB across targets
- –AOT remains experimental, with documented compatibility gaps and known slow paths
DISCOVERED
2h ago
2026-11-12
PUBLISHED
3h ago
2026-11-12
RELEVANCE
AUTHOR
RhysSullivan