NoFOMO
Search 中EN Sign in Sign up

Peaked at #1 Off the board

Bun experimental AOT compilation progress

Jarred Sumner says Bun AoT is getting good: TypeScript 6 built with it typechecks Effect slightly faster than TypeScript 7 when single-threaded.

Rank over time

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

Jarred Sumner @jarredsumner 192.8K followers

Bun AoT is starting to get good TypeScript 6 built with Bun AoT typechecks Effect slightly faster than TypeScript 7 when single-threaded. https://t.co/zbbZJTyonP
Post image
608likes 19reposts 40replies 46.1Kviews

View on X Save

What others are saying

4 more
  1. Jarred Sumner @jarredsumner 250

    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
  2. A developer worries Bun's ahead-of-time TypeScript type changes may not be opt-out, forcing a rewrite away from Bun.

    View on X
  3. Jarred Sumner @jarredsumner 41

    Bun's Sumner explains the compiler must know every function's arguments, return types and internals; fallbacks work but are slower.

    View on X
  4. Jarred Sumner @jarredsumner 37

    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.

Sign up free Have an account? Sign in

Discussion 0

No comments yet. Start the conversation.

Suggest a source

Is there a first-hand source we're missing, or a topic we should watch? Tell us. Once approved, everyone's board covers it.

@username or profile link