
Bun ditches Zig for Rust with help from Claude Fable 5, writes over a million lines of code in 11 days
Quick Answer
Bun has transitioned from Zig to Rust, primarily aided by Anthropic's Claude Fable 5, which generated over a million lines of code in 11 days.
Quick Take
Bun has transitioned from Zig to Rust, primarily aided by Anthropic's Claude Fable 5, which generated over a million lines of code in 11 days. This shift enhances reliability, fixing 128 bugs and improving performance by 2-5%, with a development cost of $165,000.
Key Points
- Bun v1.4.0 is now available as a canary release.
- The project utilized 64 instances of Claude Fable 5 running in parallel.
- The switch to Rust significantly reduces memory errors and crashes.
- Development costs totaled approximately $165,000 for the AI-generated code.
- Bun's team was acquired by Anthropic in December 2025.
📖 Reader Mode
~1 min readThe JavaScript tool Bun has been fully rewritten from Zig to Rust, and Anthropic's Fable 5 did most of the work. Developer Jarred Sumner says the switch came down to reliability. Zig kept producing memory errors and crashes that were hard to fix for good. Rust catches many of those bugs at compile time.
Sumner used a pre-release version of Claude Fable 5 for the project. About 64 Claude instances ran in parallel for 11 days, writing over a million lines of code. The API bill came to roughly $165,000. A human team would have needed about a year, according to Sumner. The new version, Bun v1.4.0, is available as a canary release. It fixes 128 bugs and runs about 2 to 5 percent faster. Sumner didn't have to worry about the hefty price tag. Bun and his team were acquired by Anthropic in December 2025.
— Originally published at the-decoder.com
Want this in your inbox every morning?
Daily brief at your local 8am — bilingual EN/中文, free.
More from The Decoder
See more →
An AI model programmed nonstop for 19 days on a single MirrorCode task that cost $2,600 to run
Epoch AI's MirrorCode benchmark reveals Claude Opus 4.7 as the leader with a 56% solve rate, reconstructing a 16,000-line toolkit in 14 hours. Despite this, all models tested struggle with the most complex tasks, highlighting limitations in current AI capabilities. The single task consumed $2,600 over 19 days, raising questions about cost-effectiveness in AI development.

