Zig creator calls Bun’s Claude Rust rewrite ‘unreviewed slop’
An AI rewrite of a popular Anthropic-owned JavaScript runtime and toolchain has sparked praise for the speed of its execution, but also criticism of the coding practices behind the project itself.
Last week, Bun creator Jarred Sumner announced that he ported Bun from the Zig programming language to Rust in only 11 days, using a fleet of Claude agents running in parallel. The work cost an estimated $165,000 at API pricing, suggesting that software revisions previously considered too large to undertake could actually be feasible now with AI.
Sumner said the port was necessary given the growing number of bugs Bun users were finding, including one implicated in the recent Claude Code source leak.
REG AD
But the creator of Zig, Andrew Kelley, didn’t want his project to be seen as the culprit behind Bun’s woes, which he blames on Sumner’s bad programming practices.
REG AD
For Kelley, the move to Rust was not about the feature differences between the two languages, or even the use of AI, but rather “the diverging value systems of the two projects,” he wrote.
Bun in the oven
Bun is a JavaScript suite consisting of a runtime, package manager, bundler and test runner. Some developers like it because it is a fast one-stop shop that plays well with Node.js.
To make Bun speedy, Sumner used Apple's low-memory fast-start WebKit JavaScriptCore (JSC) engine, rather than Google’s stock V8 engine. He used the up-and-coming Zig because he appreciated its performance and low-level control.
Anthropic acquired Bun in December 2025. The company built its core state machine on Bun.
By then, Sumner had also grown to appreciate AI’s coding abilities, and was using it heavily in the upkeep of Bun. By the time of acquisition, a Claude Bot called RoboBun had been doing a lot of the heavy lifting in the Bun repo. It supplied the most merged PRs of any contributor, fixing bugs and remediating test failures.
But as Bun’s user base grew, more cracks started appearing in the code. Users found issues across the software. Anthropic’s 512,000-line code leak in March? That was Bun’s fault, thanks to a bug in the bundler that generated source maps during builds even when told not to, NodeSource reported.
All these bugs weren’t Zig’s fault, Sumner explained in a blog post last week detailing the migration. Bun’s architecture mixed garbage collection and application-driven memory management. Sumner admitted that Zig wasn’t designed for that task. Rust was just better at automating memory management.
REG AD
The Rustification of Bun
Rewriting 500,000 lines of Zig into another language would be a gargantuan undertaking if done by hand. “A rewrite in another language would take a small team of engineers a full year. It would mean freezing bugfixes, security fixes or feature development for that time,” Sumner wrote.
Instead, Sumner went with Claude. He spun up about 50 dynamic Claude Code workflows, reaching a peak of about 1,300 lines of code per minute and generating over a million lines of Rust code. The job took 11 days and cost about $165,000 at API pricing. Claude Fable did most of the heavy lifting.
The Rust-based Bun was then subjected to Bun's exhaustive test suite of more than one million assertions. According to Sumner, it passed 100 percent of those tests across all supported platforms without skipping or deleting any.
“There’s absolutely no way an engineer with that salary would’ve been able to achieve the milestones Claude did in 11 days,” an impressed HashiCorp co-founder Mitchell Hashimoto noted on X.
MORE CONTEXT
- Anthropic’s Bun Rust rewrite merged at speed of AI
- C++ survey finds AI use rising, though trust is in short supply
- Speedier type checks in TypeScript 7.0 as first stable Go release ships
- Git is unprepared for the AI coding tsunami REG AD
-
ai and ml Even banks and hyperscalers are now sounding the alarm about the AI bubble
-
software Court tosses Microsoft's appeal in pre-owned software licenses battle
-
Security GitHub AI agent leaks private repos when asked nicely
-
applications Microsoft to switch off OWA Light after nearly two decades
-
DEVOPS GitHub cuts short offer to burn repos on CD after mockery ensues - AI and ML Anthropic's extravagant tokenizer complicates AI pricing Token consumption doesn't tell the whole tale but it shouldn't be ignored
- systems Zuck's AI ambitions put Meta on course to become America's next big cloud provider Renting out spare compute is simply the natural progression for any sufficiently large infra company
- AI and ML The price is wrong: AI cost calculation has to consider task completion rates, not just token costs Cheap can be expensive
- ai and ml Microsoft chief turns hostile on frontier AI labs, warns companies to guard their IP Lock it down, warns Satya Nadella, seemingly forgetting the billions Redmond chipped in to OpenAI back in the good old days
- AI + ML Memory makers are slaves to the boom-bust rollercoaster, and the AI boom is the wildest ride of all The RAMpocalypse may be the precursor to the AIpocalypse
- Security Russians are posing as Signal support to launch phishing attacks PLUS: US takes down Iranian propaganda sites; Marketing company asks 'Why Do We Have Your Information?' And more!
- Security Microsoft patches failed to fix on-prem SharePoint, which is now under zero-day attack PLUS: China upgrades smartphone surveillance tools; Ring eases anti-snooping stance; and more
- Black Hat and DEF CON DEF CON Franklin project enlists hackers to harden critical infrastructure Voting village reports have been so successful, says Jeff Moss, that the whole of DEF CON will now be included
- Security EQT buys majority share in Swiss cybersecurity biz Acronis Went at equivalent of $3.5B+ valuation for entire firm, though portion sold not specified
- Malware Month Ten years since the first corp ransomware, Mikko Hyppönen sees no end in sight On the plus side, infosec's a good bet for a long, stable career
- Cinnamon 6.8 will support Wayland – if you want it Next version of Linux Mint’s desktop has both kinds of display server
- KDE Plasma users face a dire omen of change: 6.6.6 arrives 6.7 is now current, and in 6.8 you're getting Wayland whether you like it or not
- Collabora releases CODE 26.04 as rivalry between FOSS cloudy office suites heats up Now with Markdown support and smarter formula error handling – plus integrated AI, though it's off by default
- Blast from the past as GIMP 0.54 is revived in Flatpak form Retro-computing fun for the nostalgic with first (and last) release to use Motif instead of GTK
- Bcachefs exits experimental status in new 'performance release' More Rust, but more trouble with AI slop, too
- France's digital sovereignty push is struggling to escape the Microsoft gravity well Nextcloud rollout shows locally controlled storage is one thing; getting users off Office is quite another
Zig zags
But does Bun’s speed of execution betray the core tenets of good software development?
One person not impressed has been Zig’s Kelley, who shared his misgivings in an impassioned post entitled “My Thoughts on the Bun Rust Rewrite."
Even before the Anthropic acquisition, “we became increasingly horrified at the programming practices we saw in Bun's codebase,” Kelley wrote. Bun was one of the largest and highest profile projects using Zig and, up until the Anthropic acquisition, a regular financial contributor to The Zig Software Foundation.
In Kelley’s view, the project aggressively released new features, resulting in piled-up bugs, bad error-handling code, and technical debt.
Sumner “was already writing slop well before he had access to LLMs,” Kelley quipped. He speculated that Sumner may have been under pressure to meet business objectives rather than technical ones, a pressure that increased with Anthropic’s acquisition.
In fact, Bun’s codebase had grown so suspect in Kelley’s estimation that Bun parting with Zig was good news. As he put it, no longer would “the publicly presumed poster child for Zig programming language actually \[be\] the prime example of How Not To Write Zig Code,” he wrote.
The Bun team also tried to upstream some of its AI-assisted work to Zig, to no avail. Leading up to the Bun rewrite, the team maintained a fork of Zig that it said improved debug compilation speed fourfold, as eagle-eyed Reg reporter Tim Anderson revealed in May. But the Zig project would not accept Bun’s changes, citing a policy of not accepting AI-based contributions.
Zig had been getting an influx of LLM-generated submissions, most of dubious quality. This lack of engineering oversight around AI-generated code would lead to countless problems down the road, Kelley reasoned.
Kelley pointed out that if Bun’s tests missed these bugs in Zig, how would they be caught in unsupervised Rust code?
“The argument for shipping all the million lines of unreviewed code is that the test suite is good enough to catch everything,” he wrote. “It's not sufficient to catch bugs in Zig code but it is sufficient to catch bugs in \[a\] million lines of unreviewed slop?” ®
[](https://www.facebook.com/sharer.php?u=https%3A%2F%2Fwww.theregister.com%2Fdevops%2F2026%2F07%2F14%2Fzig-creator-calls-buns-claude-rust-rewrite-unreviewed-slop%2F5270743) [](https://twitter.com/intent/tweet?url=https%3A%2F%2Fwww.theregister.com%2Fdevops%2F2026%2F07%2F14%2Fzig-creator-calls-buns-claude-rust-rewrite-unreviewed-slop%2F5270743) [](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.theregister.com%2Fdevops%2F2026%2F07%2F14%2Fzig-creator-calls-buns-claude-rust-rewrite-unreviewed-slop%2F5270743) [](https://bsky.app/intent/compose?text=Zig%20creator%20calls%20Bun%E2%80%99s%20Claude%20Rust%20rewrite%20%E2%80%98unreviewed%20slop%E2%80%99%0Ahttps%3A%2F%2Fwww.theregister.com%2Fdevops%2F2026%2F07%2F14%2Fzig-creator-calls-buns-claude-rust-rewrite-unreviewed-slop%2F5270743) [](https://www.reddit.com/submit?url=https%3A%2F%2Fwww.theregister.com%2Fdevops%2F2026%2F07%2F14%2Fzig-creator-calls-buns-claude-rust-rewrite-unreviewed-slop%2F5270743&title=Zig%20creator%20calls%20Bun%E2%80%99s%20Claude%20Rust%20rewrite%20%E2%80%98unreviewed%20slop%E2%80%99) [](https://api.whatsapp.com/send?text=Zig%20creator%20calls%20Bun%E2%80%99s%20Claude%20Rust%20rewrite%20%E2%80%98unreviewed%20slop%E2%80%99%0Ahttps%3A%2F%2Fwww.theregister.com%2Fdevops%2F2026%2F07%2F14%2Fzig-creator-calls-buns-claude-rust-rewrite-unreviewed-slop%2F5270743)
REG AD


