HeadlinesBriefing favicon HeadlinesBriefing.com

Bun's Rust Rewrite: A Critical Look

Hacker News •
×

The author, formerly associated with the Zig Software Foundation (ZSF), offers a critical perspective on Bun's recent rewrite in Rust. The piece details a strained relationship between Bun's creator, Jarred, and the Zig community, citing concerns over Jarred's management style and Bun's engineering practices. Early on, Bun was praised for its performance contributions to Zig, including a $60,000 annual donation to ZSF. However, the author claims Bun's VC-backed trajectory led to a focus on speed over code quality, with "hacks on top of hacks" and "reckless speeding past feature after feature."

This approach, according to the author, created a rift with Zig developers who found Bun's codebase problematic. Attempts to guide Bun towards better practices were reportedly unsuccessful. The author suggests Bun became a "net liability" to ZSF, leading to relief when Bun was acquired by Anthropic, which coincided with the cessation of ZSF donations.

The Rust rewrite is viewed as a positive development, allowing Zig to distance itself from Bun's perceived poor engineering. The author disputes claims made in a blog post about the rewrite, particularly regarding the sufficiency of test suites and the attribution of performance gains, suggesting that LLVM optimizations (also available in Zig) were a factor. The author also contests claims about fuzzing practices within Bun's Zig codebase.