Zig creator calls Bun's rewrite in Rust 'unreviewed slop' with AI

Bun is rewritten from Zig to Rust in 11 days with Claude AI, but the creator of Zig calls it an unreviewed slop. Is it worth it?

14 jul 2026 • 5 min read • Q2BSTUDIO Team

The controversial rewrite of Bun in Rust with Claude

In the fast-paced world of software development, the pressure to innovate quickly often clashes with the principles of code quality and sustainability. A recent case that illustrates this tension is the migration of the Bun runtime, originally written in Zig, to Rust using artificial intelligence agents. Zig creator Andrew Kelley called the result an unreviewed slop, sparking a debate about the role of AI in software engineering and the priorities of modern projects. This article discusses the technical background, the implications for the industry, and how companies can navigate this dilemma with sound strategies, such as those offered by Q2BSTUDIO in artificial intelligence for enterprises.

Bun positioned itself as a fast alternative to Node.js, combining runtime, package manager, and packer. Its creator, Jarred Sumner, chose Zig for its low-level performance and control, but the complexity of managing memory manually along with garbage collection led to a backlog of errors. Faced with pressure from a growing user base and a code leak attributed to a bug in Bun, Sumner decided to rewrite half a million lines from Zig to Rust in just eleven days. To achieve this, it deployed about fifty Claude Code agents in parallel, generating more than a million lines of Rust code at a cost of $165,000 in APIs. The result passed all the tests, but the criticism was not long in coming.

Andrew Kelley, creator of Zig, did not question the speed or effectiveness of AI, but rather the development practices that led to that situation. In his post, he noted that Bun's code was already showing signs of neglect before the use of language models, with features aggressively launched, mishandled bugs, and technical debt. For Kelley, the problem isn't technology, but the culture of prioritizing speed over correction. The decision not to accept AI-generated contributions in Zig's repository reflects his concern for quality and traceability. This debate resonates across the industry: can AI replace human review without compromising reliability?

The answer is not binary. Artificial intelligence offers undeniable advantages for speeding up repetitive tasks, refactoring code, and detecting patterns. However, delegating the generation of critical software entirely to autonomous agents without expert supervision can introduce vulnerabilities, especially in environments where cybersecurity is paramount. In projects like Bun, where a packer bug exposed 512,000 lines of code, the lack of human review amplifies the risks. The solution is not to abandon AI, but to integrate it as a tool within a disciplined workflow, with code reviews, extensive testing, and an architecture that prioritizes maintainability.

From a business perspective, the Bun case teaches that technical scalability requires more than speed of execution. A massive rewrite with AI may be a temporary patch, but long-term sustainability depends on best practices: modular design, dependency management, clear documentation, and continuous testing. Companies looking to transform their legacy systems or develop new platforms must evaluate not only the efficiency of AI agents, but also how to ensure the quality of the outcome. This is where services like Q2BSTUDIO make a difference, offering tailor-made applications that combine innovation with technical rigor.

Another key aspect is the governance of AI-generated code. In the Bun's migration, more than one million lines were generated without direct human review. While the test suite went 100%, Kelley questioned whether that coverage was enough to catch subtle bugs in Zig and, by extension, Rust. Blind trust in tests can be dangerous if they do not cover all execution paths or if the generated code introduces unexpected behaviors. To mitigate this, organizations should implement continuous integration pipelines that include static analysis, peer reviews, and, where possible, fuzz testing. At Q2BSTUDIO, we integrate AWS and Azure cloud services to orchestrate these processes efficiently and securely.

The debate also touches on the relationship between language creators and the projects that adopt them. Zig lost his most prominent project, but Kelley sees it as a liberation: he will no longer have to be the public example of how not to write Zig code. This underscores the importance of companies choosing technologies aligned with their values and capabilities. It's not just about performance, it's about the maturity of the ecosystem, documentation, and support community. For those who need to analyze data and make informed decisions, business intelligence solutions with Power BI offer visibility into key metrics, helping to assess whether a technology is generating value or technical debt.

In the context of AI for business, AI-powered automation promises to revolutionize the way software is written and maintained. However, as the Bun case demonstrates, human supervision remains irreplaceable. Combining tools like Claude with the expertise of senior engineers can achieve amazing results, as long as quality barriers are set. At Q2BSTUDIO, we apply this balanced approach: we use artificial intelligence to speed up tasks, but each line of code is reviewed by professionals who understand the context of the business and security best practices. Whether it's developing custom software, migrating legacy systems, or implementing cloud architectures, our team ensures that innovation doesn't compromise robustness.

Finally, the controversy around Bun and Zig invites us to reflect on the direction of software engineering. AI tools are becoming more and more powerful, but their responsible use requires professional ethics that prioritize quality over immediacy. Companies that embrace a hybrid strategy—where AI assists but does not replace human judgment—will be better prepared to meet the challenges of the future. On this path, having technology partners such as Q2BSTUDIO, which offer everything from custom applications to business intelligence services, allows you to build scalable and secure solutions, without falling into the temptation of the 'unreviewed slop'.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.