{"slug": "bun-ditches-zig-for-rust-with-help-from-claude-fable-5-writes-over-a-million-of", "title": "Bun ditches Zig for Rust with help from Claude Fable 5, writes over a million lines of code in 11 days", "summary": "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.", "body_md": "# Bun ditches Zig for Rust with help from Claude Fable 5, writes over a million lines of code in 11 days\n\n**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.\n\nSumner 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](https://the-decoder.com/anthropic-brings-bun-in-house-the-runtime-powering-claude-codes-1b-arr/).\n\n```\nAI News Without the Hype – Curated by Humans\n\n\t\t\t\t\tSubscribe 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.\t\t\t\t\n\n\t\t\t\t\tSubscribe now\n```\n\n[Bun](https://bun.com/blog/bun-in-rust)", "url": "https://wpnews.pro/news/bun-ditches-zig-for-rust-with-help-from-claude-fable-5-writes-over-a-million-of", "canonical_source": "https://the-decoder.com/bun-ditches-zig-for-rust-with-help-from-claude-fable-5-writes-over-a-million-lines-of-code-in-11-days/", "published_at": "2026-07-10 11:09:44+00:00", "updated_at": "2026-07-10 11:38:28.501081+00:00", "lang": "en", "topics": ["developer-tools", "artificial-intelligence", "large-language-models", "ai-tools"], "entities": ["Bun", "Zig", "Rust", "Anthropic", "Claude Fable 5", "Jarred Sumner"], "alternates": {"html": "https://wpnews.pro/news/bun-ditches-zig-for-rust-with-help-from-claude-fable-5-writes-over-a-million-of", "markdown": "https://wpnews.pro/news/bun-ditches-zig-for-rust-with-help-from-claude-fable-5-writes-over-a-million-of.md", "text": "https://wpnews.pro/news/bun-ditches-zig-for-rust-with-help-from-claude-fable-5-writes-over-a-million-of.txt", "jsonld": "https://wpnews.pro/news/bun-ditches-zig-for-rust-with-help-from-claude-fable-5-writes-over-a-million-of.jsonld"}}