← Founder Notes
Archive

Bun 1.4 burned 165k dollars of tokens and shipped 1m lines in 11 days by rewriting zig into rust.…

Yethikrishna ROriginal on Threads

bun 1.4 burned 165k dollars of tokens and shipped 1m lines in 11 days by rewriting zig into rust. nobody on timeline will tell you the real number: that is 16 cents per line of rust. the model did not write the runtime — the model paid for the runtime.

every open source rewrite from here on out has a hidden gpu invoice.

Context

Bun's post of 8 July 2026 gives the Zig codebase as 535,496 lines excluding comments, and search snippets give the token counts as 5.9 billion uncached input tokens, 690 million output tokens and 72 billion cached input token reads. The Pragmatic Engineer, dated 16 July 2026, says the rewrite cost 165,000 dollars at API pricing, took 11 days from planning to the finish, with 6,500 commits and 64 agents, and notes the real cost to Anthropic is lower. Bun 1.4 was released on 20 August 2026.

How it compares

The 165k is a list-price estimate calculated by a secondary source from Bun's reported token usage, not money actually spent. The 1M lines is not supported: the sources say 535,496 lines of Zig, about 550K ported. Sixteen cents per line is arithmetic on the note's own figures: about 31 cents per line on 535,496 lines, and 16.5 on 1M. Bun 1.4 shipped on 20 August 2026, after the July rewrite. InfoQ, dated 20 September 2026, after the note, says four months of work, and its scope against the 11 days is unresolved. That the model paid for the runtime is the author's opinion.

Related work

Watch next

  • Bun's own cost figures, if published.

Sources

  1. Bun in Rust (Bun blog, 8 Jul 2026)bun.com
  2. Bun v1.4 (Bun blog)bun.com
  3. What can we learn from Bun's rapid Rust rewrite with AI (Pragmatic Engineer, 16 Jul 2026)blog.pragmaticengineer.com

Provenance

The note above is reproduced unedited from the original post, first published on Threads on 6 September 2026 at 10:01 IST. Sources are the papers and datasets the note draws on.

View the original post
Embed this note
<iframe src="https://founder.myndlabs.tech/notes/embed/bun-1-4-burned-165k-dollars-of-tokens-Dc7rwVAjf10" width="480" height="420" style="border:0;max-width:100%" loading="lazy" title="Bun 1.4 burned 165k dollars of tokens and shipped 1m lines in 11 days by rewriting zig into rust.…"></iframe>

More notes