Skip to content
theregister·

🤖AI Rewrites Bun in Rust: 1M Lines of Code in 11 Days

AI rewrote 500k lines of code to Rust in just 11 days

TL;DR

AI agents re-wrote the 500k-line Bun JS tool from Zig to Rust in 11 days for $165k. Passed all tests without skipping any assertions.

AI agents rewrote the 500,000-line Bun JavaScript build tool from Zig to Rust in just 11 days at a cost of around $165,000. The rewritten code passed its exhaustive test suite with over one million assertions across all platforms without skipping any tests. This rewrite highlights how AI can drastically speed up complex software projects but also raises questions about coding practices and costs.

AI Rewrites Bun in Rust: 1M Lines of Code in 11 Days — theregister

Key Points

1

Rewrite took 11 days using Claude AI agents running in parallel

2

$165,000 cost at API pricing; human rewrite would take ~1 year

3

Rust-based Bun passed all tests without skipping or deleting any assertions

4

Total Rust code generated was over one million lines of code

5

Original Zig codebase had a bug that leaked source maps during builds

Why It Matters

If you're working on large-scale software projects, AI rewriting could cut development time from years to weeks. But the $165k cost means it's only viable for big-budget projects. The controversy over coding practices and costs will likely spark debate in tech circles.

AIRustBunClaudeAutomation

Frequently Asked Questions

Why does this matter?

If you're working on large-scale software projects, AI rewriting could cut development time from years to weeks. But the $165k cost means it's only viable for big-budget projects. The controversy over coding practices and costs will likely spark debate in tech circles.

What happened?

AI agents re-wrote the 500k-line Bun JS tool from Zig to Rust in 11 days for $165k. Passed all tests without skipping any assertions.

Comments

Subscribe to join the conversation...

Be the first to comment

Enjoyed this article?

Get it daily. 7am. Free. Reads in 5 minutes.

Join 2,074 builders reading daily.

Also get