Bun's Rust rewrite has been merged

· coding open-source · Source ↗

TLDR

  • Bun’s full Rust rewrite PR has been merged; a blog post with details is coming, with optimization work still needed before landing in non-canary builds.

Key Takeaways

  • The merge is in canary only; cleanup and performance optimization remain before a stable release.
  • Bun was previously written in Zig; this rewrite moves the primary implementation language to Rust.
  • No official blog post or technical breakdown has shipped yet alongside the merge.
  • The rewrite is described as still incomplete, with further work flagged by the team.

Hacker News Comment Review

  • The rewrite is reported at +1,009,257 lines of Rust across 1,443 files with 10,428 unsafe blocks, raising serious questions about auditability and correctness at this scale.
  • Commenters widely believe LLMs (specifically Claude) were used to generate the bulk of the code, and debate whether yolo-merging ~1M LLM-generated lines sets a dangerous precedent or signals a new normal.
  • The Bun team’s public denials just days before the merge, and the pattern of deflection followed by merge, drew pointed criticism about transparency and governance.

Notable Comments

  • @gm678: Raw repo stats – 929k Rust LOC, 732k Zig LOC, 10,428 unsafe blocks across 736 files – concrete scale evidence.
  • @dgellow: Asks whether the team gained any Rust expertise, or only learned “Claude can rewrite a very large codebase in no time.”
  • @torben-friis: Flags that Bun is reportedly used inside Anthropic/Claude Code, suggesting institutional incentive to normalize large LLM-driven merges.

Original | Discuss on HN