/
Navigation
Chronicles
Browse all articles
Explore
Semantic exploration
Research
Entity momentum
Nexus
Correlations & relationships
Story Arc
Topic evolution
Drift Map
Semantic trajectory animation
Posts
Analysis & commentary
Pulse API
Tech news intelligence API
Browse
Entities
Companies, people, products, technologies
Domains
Browse by publication source
Handles
Browse by social media handle
Detection
Concept Search
Semantic similarity search
High Impact Stories
Top coverage by position
Sentiment Analysis
Positive/negative coverage
Anomaly Detection
Unusual coverage patterns
Analysis
Rivalry Report
Compare two entities head-to-head
Semantic Pivots
Narrative discontinuities
Crisis Response
Event recovery patterns
Connected
Search: /
Command: ⌘K
Embeddings: large
TEXXR

Chronicles

The story behind the story

days · browse · Enter similar · o open

Bun's creator says he rewrote Bun from Zig to Rust using a Claude Fable 5 prerelease version in 11 days, noting it would've taken three engineers “about a year”

bun.com Jarred Sumner

Context & Ripple Effects

Related coverage has already put Claude’s coding tools in progressively more demanding settings: Anthropic described parallel agents producing a Rust-based C compiler, while a hands-on account reported complex project work with a Fable 5 prerelease.

This report extends that arc from greenfield or task-focused generation to a claimed migration of an existing codebase. It also arrives as coverage characterizes Claude Code as a leading product in the emerging AI coding-tools market.

First-order effects

  • Bun’s maintainer now has a Rust rewrite produced with substantial AI assistance to review, test, integrate, and maintain; the reported schedule changes the immediate engineering trade-off around the migration.
  • The claim gives Anthropic a high-visibility developer-tools case study for its prerelease Fable 5 model, beyond the company’s own account of agent-built compiler work.

Second-order effects

  • AI coding vendors will face a higher bar for demonstrating that agents can handle repository-scale changes, not merely generate isolated functions or prototypes; verification and maintainability become central comparison points.
  • Teams considering language migrations or other broad refactors may increasingly test agent-assisted workflows, while preserving human review because a fast rewrite does not by itself establish production correctness.

Third-order effects

  • If comparable results can be independently repeated, software modernization could shift from being primarily constrained by implementation labor toward being constrained by specification, testing, code review, and operational accountability.
  • The durable competitive advantage in coding agents may move beyond raw code generation toward reliable multi-step execution across large codebases, including tools that make generated changes auditable and safe to merge.

The trend: This is one data point in the shift of AI coding tools from developer assistants toward agents used for repository-scale engineering work.

Discussion

  • @dwarkesh_sp Dwarkesh Patel on x
    Seems to suggest that if it stops being the case that there's 3 labs which are all roughly equally good, competing each others margins away, the provider of the best model could probably get away with charging *a lot* more than they currently are. [image]
  • @schrockn Nick Schrock on x
    I have never actively wanted a programming language to fail but thanks to Andrew Kelley's scurrilous, outrageous, classless post on @jarredsumner 's bun rewrite, I got there. Port every project from Zig to Rust.
  • @jaredpalmer Jared Palmer on x
    The Bun rewrite was dirt cheap even at Fable pricing. For comparison, it took 3-5 engineers (about half the core team) about ~14 months to rewrite @Turborepo in Rust between 2023 and 2024. When you consider the opportunity cost on top of eng salaries, it actually cost several
  • @mitchellh Mitchell Hashimoto on x
    I'm glad the Bun rewrite blog post focused mostly on the methodology of the port! It's a good post! Good work @jarredsumner. My favorite part is the little detail about the importance of clean context agents for doing different tasks to avoid biases. I've found this is a good
  • @trq212 @trq212 on x
    this should be a huge update in your model of software engineering: rewrites can be good, cheap and fast of course most apps are not as testable and verifiable as Bun, but the models will continue to get better at filling those gaps
  • @xoofx Alexandre Mutel on x
    Frankly, I've never fully understood the hype around Zig, beyond the fact that it is more modern than C/C++. For a casual project, Zig might be fine. But for a large-scale production project with complex ownership and lifetime issues, Rust is probably a better option. For Bun
  • @maxedapps Maximilian on x
    Recommended reading. $165,000 for the port from Zig => Rust. Full of interesting details and lots to learn on how to leverage AI (in general, not just for such monumental tasks). I love using Bun => even more bullish now
  • @samwhoo Sam Rose on x
    Well worth reading. Made me think about token cost per ported line. Bun -> Rust: $160,000/1,009,257 =$0.16 ~$0.16 Kubernetes -> TypeScript: $3,044/126,642 = ~$0.02 But then Jarred took 11 days, I took 2 months. Also very different ports.
  • @neetcode1 NeetCode on x
    the wait is over
  • @cablelounger Andy Gayton on x
    the inline visualizations are neat [video]
  • @nileshtrivedi Nilesh Trivedi on x
    Jarred used Claude Code Dynamic Workflows to rewrite Bun's massive codebase from Zig to Rust. Completed in 11 days. Tests passing for all 6 platforms. Many memory leaks solved by switching to Rust. 5.9 billion uncached input tokens, 690 million output tokens, and 72 billion
  • @srush_nlp Sasha Rush on x
    This is an incredible blog post. Peak “centaur chess” phase of AI coding.
  • @yoavcodes Yoav on x
    I appreciate the thoughtful blog post. As someone that bet on bun early in multiple ways, including dropping everything to build electrobun pre-LLM-agents and investing 2+ years on and off on it, the last few months where it sounded like humans were no longer looking at the bun […
  • @kingbootoshi @kingbootoshi on x
    ok upon reading this it clears everything up! amazing. specifically, when Jarred announced he rewrote Bun in Rust it was before any announcement of Fable so hearing that, assuming it was Opus, had me thinking he was smoking crack Fable doing this makes more sense
  • @dexhorthy Dex on x
    I love the part of the bun rewrite that shows what's possible and pushes people to ask their models for more I am concerned about the part where people try to do this for things that 1) aren't already designed/architected 2) don't have such a comprehensive test suite and
  • @justjake Jake on x
    150k is cheap for this I bet it cut crashes/segfaults/memory leaks dramatically
  • @nicbstme Nicolas Bustamante on x
    I remember when at my previous company Doctrine we rewrote our frontend from AngularJS 1.7 to React. It was a huge project and a big decision. It took roughly six months and a team of talented software engineers. That's why the Bun rewrite is so interesting to me. Bun was ~535k
  • @theo @theo on x
    The Bun rewrite in Rust would have cost about $165k in tokens if it was done over API [image]
  • @seatedro Rohit on x
    bro took longer to write the blog post than rewriting bun in rust lmao
  • @bcherny Boris Cherny on x
    This is pretty epic
  • @mehulmpt Mehul Mohan on x
    It took $165,000+ of Fable 5 API to port Bun from Zig to Rust. Wow! [image]
  • @benjdicken Ben Dicken on x
    1) Amazing read. Make the time for it. 2) I particularly like this visual for test/CI progress. 3) Curious how an Opus-level model would fare on the same work. [video]
  • @birch_js Jamie Birch on x
    [image]
  • r/BetterOffline r on reddit
    Andrew Kelley About Bun Rewrite To Rust “It Tastes Like It's Not My Problem Anymore”
  • r/rust r on reddit
    Andrew Kelley: My Thoughts on the Bun Rust Rewrite
  • r/theprimeagen r on reddit
    Rewriting Bun in Rust
  • r/bun r on reddit
    Rewriting Bun in Rust