Simon Willison — 2026-07-08#
Highlight#
Jarred Sumner’s post on rewriting Bun from Zig to Rust using AI agents is an incredible showcase of how frontier LLMs are upending the old Spolsky rule of “never rewrite from scratch”. It is a masterclass in agentic engineering, utilizing dynamic workflows and a TypeScript conformance suite to successfully port millions of lines of code.
Posts#
Rewriting Bun in Rust · Source Jarred Sumner details the agentic engineering process of rewriting Bun from Zig to Rust to solve complex memory management issues. Using a language-independent TypeScript test suite as a conformance suite, an agent harness powered by Claude Mythos/Fable automated the massive code translation. The sheer scale of the project required 5.9 billion input tokens—around $165,000 at API pricing—proving that coordinated parallel agents fundamentally change the calculus of ground-up software rewrites.