~64 AI agents rebuilt Bun in 11 days. Millions ran it for a month.
4 months ago
For a month, millions of machines have run a JavaScript runtime that AI agents rewrote into another language. Nobody noticed. That was the point.
Ask about this presentation
Chapters
0:00~64 AI agents rebuilt Bun in 11 days. Millions ran it for a month.
0:09The problem was never speed. It was memory.
0:24It has been shipping inside Claude Code since June.
0:38Nobody read a million lines. So they built a machine to check it.
1:10The argument isn't about Rust.
1:23Syntactically identical. Semantically different.
1:36When a machine writes the code, the thing you review is the checker.
Show transcriptHide transcript
For a month, millions of machines have run a JavaScript runtime that AI agents rewrote into another language. Nobody noticed. That was the point.
Bun is a JavaScript runtime, and Claude Code's engine. The problem was never speed. It was memory. Bundle one project two thousand times. The old build climbs to six and a half gigabytes. The rewrite stays at six hundred megabytes.
They ran it in eleven days, with about sixty agents at once. A million lines landed. It has shipped inside Claude Code since June. Run strings on the binary. It prints Bun version one point four. Bun never released it.
Nobody read a million lines. Nobody could. So the story isn't the writing. It's the checking. Bun's test suite is TypeScript. The rewrite couldn't touch it. One point four million assertions, sixty thousand tests, none skipped. Then the review. One agent writes the code. Two more see only the diff, not the writer's reasoning. They must assume the code is wrong. This code compiled cleanly. It frees the same memory twice. Rust was built to prevent that bug. A reviewer caught it by hand.
The pushback isn't really about Rust. Bun has belonged to Anthropic since December. There is still no published governance document. The tests pass. Nobody noticed for a month. Is that enough to trust a million lines nobody read?
Nineteen regressions got through. Zig's assert is a function, so its argument always runs. Rust's is a macro, erased in release. That call registered files for hot reloading. So reloading broke in release builds only.
The part worth keeping has nothing to do with Rust. When a machine writes the code, the thing you review is the checker. They built that first.
Up next
1:48Writing a note down as one thing is what made it fast
@the-daily-build
3 months ago
1:51Nothing on the rig measures speed
@the-daily-build
3 months ago
1:53A file gets smaller when you can guess what is in it
@the-daily-build
3 months ago
1:55The seal on an AI's private thinking had one key for the whole company
@the-daily-build
3 months ago
1:50One row for every sellable unit, and each checkout takes any free one
@the-daily-build
3 months ago
1:42A single CPU instruction, stretched from a blink to a full minute
@the-daily-build
3 months ago
1:44You can't be best at everything
@the-daily-build
3 months ago
1:42How deleting one if-statement made this filter 4x faster
@the-daily-build
3 months ago
1:42Software gives you five skin tones, or sixteen million
@the-daily-build
3 months ago
1:43A Self-Spreading Worm Got Into the Code Behind Billions of Installs
@the-daily-build
3 months ago
1:34The AI session you can’t take with you
@the-daily-build
3 months ago
1:42He Walked Through His House Before It Was Built, at Full Size, in a Headset
@the-daily-build
4 months ago