cd /news/developer-tools/bun-ditches-zig-for-rust-with-help-f… · home topics developer-tools article
[ARTICLE · art-54090] src=the-decoder.com ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

Bun ditches Zig for Rust with help from Claude Fable 5, writes over a million lines of code in 11 days

Bun, the JavaScript runtime, has been fully rewritten from Zig to Rust using Anthropic's Claude Fable 5 AI model, which generated over a million lines of code in 11 days at a cost of $165,000. Developer Jarred Sumner cited Zig's memory errors and crashes as the reason for the switch, as Rust catches such bugs at compile time. The new version, Bun v1.4.0, is available as a canary release, fixing 128 bugs and running 2-5% faster.

read1 min views1 publishedJul 10, 2026
Bun ditches Zig for Rust with help from Claude Fable 5, writes over a million lines of code in 11 days
Image: The Decoder

The 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.

AI News Without the Hype – Curated by Humans

					Subscribe to THE DECODER for ad-free reading, a weekly AI newsletter, our exclusive "AI Radar" frontier report six times a year, full archive access, and access to our comment section.				

					Subscribe now

Bun

── more in #developer-tools 4 stories · sorted by recency
── more on @bun 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/bun-ditches-zig-for-…] indexed:0 read:1min 2026-07-10 ·