The most controversial rewrite in history just shipped…

The most controversial rewrite in history just shipped…

More

Descriptions:

Fireship breaks down Bun’s 11-day rewrite of its entire codebase from Zig to Rust, executed by 64 parallel Claude agents following Anthropic’s acquisition of the JavaScript toolkit. The port converted 535,000 lines of Zig across 1,448 files, generating up to 1,300 lines of Rust per minute at peak, producing 652 commits, fixing 128 long-standing bugs, shrinking binaries by 20%, and eliminating a chronic dev-server memory leak. Estimated compute cost was $165,000 — though Bun effectively owns the spend via Anthropic. The rewritten codebase has been powering Claude Code since June without incident.

The technical rationale was twofold: Zig’s manual memory management created hard-to-trace bugs when interfacing with JavaScriptCore’s garbage-collected engine, and Claude performs poorly in Zig due to sparse training data and the language’s pre-1.0 churn. The workflow itself is notable — Claude first studied the codebase to produce a porting guide, a second pass traced struct field lifetimes into a spreadsheet, and then 64 parallel implementer agents each paired with two adversarial reviewer instances whose sole job was to find flaws in the generated code.

Zig creator Andrew Kelly responded publicly, disputing whether the performance gains were attributable to Rust itself versus long-available link-time optimization and questioning Bun founder Jared Sumner’s technical background. The video unpacks both the legitimate technical counterarguments and the interpersonal dimension of the dispute, offering a clear-eyed breakdown of what this rewrite does and doesn’t prove about AI-driven large-scale software development.


📺 Source: Fireship · Published July 15, 2026
🏷️ Format: News Analysis

1 Item

Channels

1 Item

Companies