Claude Code uses Bun written in Rust now(simonwillison.net)
594 points by tosh 2 days ago | 819 comments
tl;dr: Claude Code v2.1.181+ (released June 17th) ships with a preview of Bun v1.4.0, which is the not-yet-released Rust rewrite of Bun. Evidence includes `strings` output showing 563 `.rs` source paths and a Bun version ahead of the latest public release (v1.3.14). The Rust port reportedly improved Linux startup by 10% with minimal user-visible disruption.
HN Discussion:
  • Rust's automatic memory management justifies the rewrite by eliminating a class of bugs Zig required manual handling for
  • ~Bun's handling of the rewrite and communication was unprofessional and concerning for the project's future
  • Bun's acquisition by Anthropic signals the death of the FOSS project and raises governance concerns
  • Using a JS runtime for a TUI is bad engineering; Claude Code should be rewritten in a native language instead
  • Claude Code has become buggy with segfaults and rendering issues, questioning the rewrite's quality