Bun's Rust rewrite hits 99.8% test compatibility on Linux x64 glibc
Photo via Unsplash
Bun's experimental Rust rewrite has hit 99.8% test compatibility on Linux x64 glibc, and that number is hard to dismiss. For anyone tracking the JavaScript runtime space, this milestone suggests the project is crossing the line from ambitious experiment to credible production contender.
Context: why Bun is betting on Rust
Bun launched as a blazing-fast JavaScript runtime built in Zig — a systems language chosen specifically to squeeze out maximum performance and compete head-on with Node.js and Deno. The decision to explore a Rust rewrite wasn't random: Rust has a vastly larger ecosystem, more mature tooling, and a contributor base that Zig simply can't match yet. It's a pragmatic pivot that trades some of Zig's purity for long-term maintainability and community growth.
Details: what 99.8% test compatibility actually means
Passing 99.8% of tests on Linux x64 glibc is a concrete, measurable milestone — not marketing language. It means the Rust-based version clears nearly the entire test suite that the current production Zig build already passes. A few things worth noting:
- Linux x64 glibc is the primary target because it's the dominant server environment in production deployments worldwide.
- The remaining 0.2% covers edge cases the team is actively hunting down.
- This is still labeled experimental, but at this compatibility level, "experimental" is doing a lot of heavy lifting.
Reaching this level of test parity means the functional foundation of the rewrite is essentially solid — though production-readiness involves far more than green checkmarks on a test suite.
Analysis: who wins, who should be watching
The most immediate winner is the broader JavaScript ecosystem: sharper competition between runtimes forces everyone — Node.js, Deno, and even WinterJS — to iterate faster. For Bun specifically, a Rust foundation opens the door to a much larger pool of potential open-source contributors. The quiet loser, if this transition completes successfully, is the Zig codebase itself — likely to be remembered as the scrappy prototype that proved the concept before Rust took over the wheel.
Implications: the runtime wars enter a new phase
If Bun's Rust rewrite ships to production, the JavaScript runtime market enters a genuinely new competitive phase. Node.js already faces pressure from multiple directions; a Rust-powered Bun — more maintainable, potentially faster on specific workloads, and easier to contribute to — adds another real vector of disruption. Beyond Bun, the move could encourage other JavaScript tooling projects to reconsider systems language choices, especially as memory safety guarantees become a harder requirement in enterprise environments.
The real test still ahead: whether the Rust version can match or beat the raw performance of the Zig build — because that's where the whole bet either pays off or falls flat.
Source: Hacker News