Virtual Round Table · Jul 22

View the event
Zig creator calls Bun's AI-driven Rust rewrite unreviewed slop
Cloud

Zig creator calls Bun's AI-driven Rust rewrite unreviewed slop

Bun's maintainer regenerated more than a million lines of Rust with Claude agents in 11 days. Zig's creator says the test suite cannot possibly vouch for it, and the fight exposes the core risk in AI-scale rewrites.

PublishedJuly 16, 2026
Read time5 min read
Share

What Bun actually shipped

Bun's creator Jarred Sumner announced that he ported the JavaScript runtime from Zig to Rust in 11 days, using a fleet of Claude agents running in parallel. The work generated more than a million lines of Rust and, according to Sumner, passes a test suite of over a million assertions at a 100 percent rate across every supported platform. The estimated cost at API pricing was roughly $165,000. Sumner framed the achievement in labor terms, writing that a rewrite in another language would take a small team of engineers a full year. The claim landed as a proof point for AI-assisted engineering at a scale few teams have attempted in production software.

The reaction split immediately along a familiar line. HashiCorp co-founder Mitchell Hashimoto endorsed the economics, saying there was no way an engineer at a normal salary could have hit the milestones Claude reached in 11 days. Others questioned what a million lines of machine-written code actually costs once it enters maintenance. The runtime powers Anthropic's Claude Code, which raises the stakes: this is not a toy project but infrastructure that other tools depend on. We read the announcement as the first mainstream case where the speed of generation clearly exceeded any human team's capacity to review the output line by line.

Why the Zig creator pushed back

Andrew Kelley, the creator of Zig, responded on July 9 with a post titled "My Thoughts on the Bun Rust Rewrite." His central concern was reputational and cultural. Kelley wrote that his team had become "increasingly horrified at the programming practices we saw in Bun's codebase" well before the Anthropic acquisition. He described the pattern as "hacks on top of hacks, abuse of assertions," and a habit of racing past feature after feature with little time for reflection or debt reduction. In his framing, Bun's difficulties trace to engineering discipline rather than to any weakness in Zig itself.

Kelley went further than a technical critique, writing that Sumner "was already writing slop well before he had access to LLMs." The remark drew criticism as a personal attack, and the community response was genuinely mixed. Some praised Kelley for calling out marketing that oversells AI output, while others faulted the tone. The subtext matters for anyone evaluating these tools. Bun donated roughly $60,000 a year to the Zig Software Foundation, so the split carries financial weight for an open-source project that Kelley says builds its own 600,000-line compiler from scratch in 16 seconds.

The test-suite question

The most durable argument in the exchange is about verification. Sumner's defense of shipping a million unreviewed lines rests on the test suite catching everything of consequence. Kelley questioned how a suite that failed to catch bugs in the original hand-written Zig code could be trusted to validate "a million lines of unreviewed slop." That is the crux for any leader weighing agent-generated rewrites. Passing tests demonstrate that known behaviors survived the port. They say very little about the behaviors nobody wrote a test for, which is precisely where the risk in a runtime concentrates.

This is the governance gap that agent-scale code generation makes concrete. A human-authored codebase carries an implicit review trail: someone understood each function well enough to write it. A regenerated codebase of this size carries no such trail unless the team invests in reading it, and reading a million lines defeats the time savings that justified the rewrite. We think the honest position is that the test suite is a floor, not a ceiling, and that the true cost of this approach shows up months later in the bugs that only production traffic reveals.

The economics leaders cannot ignore

Set aside the personalities and the numbers still command attention. A single maintainer produced a full-language port of a widely used runtime in under two weeks for a sum that would not cover a quarter of one senior engineer's loaded cost. For CTOs staring at multi-year modernization backlogs, that ratio is the headline. Legacy migrations, framework upgrades, and language ports have always been throttled by the scarcity of engineers willing and able to do unglamorous rewrite work. Agent fleets change the supply curve for that specific category of labor in a way that is hard to unsee.

The catch is that generation cost is the smallest line item in a rewrite. Review, validation, and the long tail of production hardening dominate the real bill, and none of those got cheaper here. If anything, a codebase produced faster than humans can read it shifts more work downstream into incident response and debugging. We would treat the $165,000 figure as the entry fee rather than the total, and we would be skeptical of any vendor or internal champion who quotes generation cost as the cost of the project.

What this means for your roadmap

The practical lesson is not to avoid agent-assisted rewrites but to budget for the part that Bun's story glosses over. Before greenlighting an agent-scale port, we would insist on a review strategy that scales with the output: differential testing against the old implementation, fuzzing, staged rollout behind feature flags, and clear ownership for the generated modules. The point is to reconstruct the review trail that hand-authoring provides for free, because the alternative is discovering its absence in an outage. Teams that skip this step are not saving a year of work, they are deferring it into production.

There is also a talent and culture dimension that Kelley's critique surfaces. Tools amplify the habits of the people wielding them, and a team with weak review discipline will now ship weak code faster. The organizations that get value from agent fleets will be the ones that pair generation capacity with strong verification practice and senior engineers who own the result. We expect more of these large rewrites through the rest of 2026, and we expect the winners to be defined less by how fast they generated the code and more by how seriously they reviewed it.

Tagged#news#engineering#software-engineering#devops#platform-engineering#architecture#infrastructure#rust#zig#ai-assisted-development#developer-tools