Peaked at #1 Off the board
Bun AoT Type Checking Speedup
Jarred Sumner says Bun AoT is getting good: TypeScript 6 built with it typechecks Effect slightly faster than TypeScript 7 when single-threaded.
Key points
- Bun AoT compiled TypeScript 6 typechecks Effect slightly faster than TypeScript 7 when single-threaded, according to @jarredsumner.
- @jarredsumner said one ecosystem challenge of Bun AoT is that type declarations aren't enough, and that compiling from source .ts files instead of .d.ts is needed to maximize the performance advantage over JIT.
- @jarredsumner said the compiler needs to know all the shapes every function sees, including arguments, return types, and inside the function, and that it has fallbacks for everything but fallbacks are slower.
Key points and the reaction summary are written by AI from the posts on this page. Check the original post. How we use AI
Original post
What others are saying
4 more-
Jarred Sumner says a Bun AoT ecosystem challenge is that type declarations aren't enough—compiling from .ts source instead of .d.ts maximizes its edge over JIT.
View on X -
Charlie Marsh finds thin LTO on PGO instrumented binaries cuts build time with no final performance cost.
View on X -
Bun's Sumner explains the compiler must know every function's arguments, return types and internals; fallbacks work but are slower.
View on X -
Bun's Sumner previews experimental AOT compilation with JSC: Claude Code CLI starts 24% faster with 48% less memory.
View on X
Top replies on X
Reaction on X: Replies were largely impressed, with the original poster noting TS 6 vs TS 7 is a good benchmarking repo because it is a close Go implementation of the same code. One reply asked whether any code changes were needed when moving to AOT, and another joked about "Attack on Titan."
Sign in to see 3 top replies from X
From @jarredsumner, @forloopcodes, @rasibx and others. Spam removed, with English and Chinese translations.

Discussion 0
Sign up Sign in to join the discussion
No comments yet. Start the conversation.