Reliability pushed Bun from Zig to Rust with Claude Fable 5
Bun has been fully rewritten from Zig to Rust, with Claude Fable 5 doing most of the work. Jarred Sumner says the move was about reliability, while Bun v1.4.0 is now available as a canary release with 128 bug fixes and about 2 to 5 percent faster performance.
Bun has made a major technical shift: the JavaScript tool has been fully rewritten from Zig to Rust. According to developer Jarred Sumner, the decision was driven by reliability, and the rewrite was carried out largely with help from a pre-release version of Claude Fable 5.
“This is mostly a technical migration and AI-assisted development story, with only mild implications for AI replacing or deskilling software work.”Why it scores Neutral
The result is Bun v1.4.0, now available as a canary release. The new version fixes 128 bugs and runs about 2 to 5 percent faster, while also moving the project onto a language that catches many memory-related issues before the software is built.
Why Bun moved away from Zig
Sumner's explanation centers on a practical problem: Zig kept producing memory errors and crashes that were difficult to resolve permanently. For a JavaScript tool, that kind of reliability issue can become a persistent burden because the same class of problem may keep reappearing in different forms.
The appeal of Rust is that it catches many of those bugs at compile time. That does not mean every problem disappears automatically, but it changes when many mistakes are discovered. Instead of surfacing later as crashes or hard-to-track memory errors, many issues can be caught before the program runs.
That distinction matters for a project like Bun because a full rewrite is not just a language preference. It is a bet that the cost of moving the codebase is lower than the long-term cost of continuing to fight reliability problems in the existing implementation.
Claude Fable 5 handled most of the rewrite
The most striking part of the migration is the scale and speed of the AI-assisted work. Sumner used a pre-release version of Claude Fable 5, and about 64 Claude instances ran in parallel for 11 days.
During that period, the system wrote over a million lines of code. Sumner said a human team would have needed about a year to complete the work.
The API bill was roughly $165,000. That number is unusually visible because it gives the rewrite a concrete cost, but Sumner did not have to absorb it in the usual way. Bun and his team were acquired by Anthropic in December 2025.
The facts make this a useful example of what AI-assisted software migration can look like when the goal is not a small patch or prototype, but a full codebase rewrite. The work was large, parallelized, and expensive, but it compressed a process that Sumner says would otherwise have taken about a year.
What changed in Bun v1.4.0
The new Rust-based version is available as Bun v1.4.0 in canary form. A canary release gives users access to the new version before it becomes the default stable path, which is especially relevant for a rewrite of this scale.
The reported improvements are specific:
- Bun has been fully rewritten from Zig to Rust.
- Bun v1.4.0 is available as a canary release.
- The release fixes 128 bugs.
- It runs about 2 to 5 percent faster.
- Rust is expected to help by catching many memory bugs at compile time.
The performance gain is modest compared with the size of the rewrite, but speed was not presented as the central motivation. The main stated reason was reliability. In that sense, the 2 to 5 percent faster result is a secondary benefit, while the larger architectural shift is about reducing a category of bugs that had been difficult to fix for good.
Why this migration matters
This rewrite stands out because it combines three separate changes: a language migration, a reliability-driven engineering decision, and heavy use of AI coding systems. Each of those would be notable on its own. Together, they show how software teams may approach work that was previously considered too large or too slow to justify.
The move from Zig to Rust also shows that language choice can become a strategic maintenance decision. When memory errors and crashes are a recurring issue, the question is not only which language is faster or more elegant. The question is which environment makes the project easier to keep reliable over time.
Claude Fable 5's role adds another layer. About 64 instances working in parallel for 11 days suggests a model where AI systems are used not as a single assistant, but as a coordinated pool of code-writing workers. That does not remove the need for human direction, but it changes the scale at which a rewrite can be attempted.
For Bun users, the near-term takeaway is simpler: the Rust version is now available in canary form, fixes 128 bugs, and is about 2 to 5 percent faster. For developers watching AI-assisted coding, the larger lesson is that code migration is becoming one of the clearest places where large language models can be applied to substantial engineering work.
Read next