Bun is being rewritten in Rust, moving away from Zig
Bun's creator Jarred Sumner used Claude as a coding agent to port over one million lines of Zig code to Rust in roughly six days, shipping the result as a near-complete rewrite. The port passed 99.8% of Bun's test suite, reduced binary size, and matched or slightly exceeded performance benchmarks. The motivations were Zig's persistent memory bugs, its pre-1.0 instability, and a no-AI contribution policy that conflicted with Anthropic's (which acquired Bun's parent company) working style. However, the rewrite contains ~10,000 unsafe blocks, is non-idiomatic Rust, and critically, no human has fully reviewed the codebase — it was written and reviewed by Claude. Several security bug reports have already appeared, yt-dlp deprecated Bun support above 1.3.14 citing reliability concerns, and Electrobun announced it's decoupling from Bun. The episode raises unresolved questions about AI-generated codebases: test suites validate known paths but can't catch subtle invariants or concurrency bugs, and the gap between generating a million lines of code in six days versus understanding what it does remains a fundamental challenge.