TL;DR

Jarred has developed a Rust-based version of Bun, a JavaScript runtime, which successfully passes 99.8% of its existing test suite. This marks a substantial milestone in the project. The development is ongoing, and further testing is expected.

Jarred has successfully rewritten Bun, a popular JavaScript runtime, in Rust, with the new implementation passing 99.8% of the existing test suite, according to a recent tweet. This achievement demonstrates significant progress in developing a performant, alternative runtime for JavaScript outside of Node.js and Deno.

The project, led by Jarred, involves creating a Rust-based version of Bun, which is known for its speed and modern features. According to the tweet from Jarred, the Rust rewrite has passed 99.8% of the tests, a notable milestone indicating high compatibility with the original Bun. It is not yet clear how the remaining 0.2% of tests will be addressed or whether they relate to specific features or edge cases. The effort aims to improve performance, security, and flexibility by leveraging Rust’s capabilities.

While the test success rate is impressive, the exact nature of the remaining issues is still under review. The project’s progress suggests that a functional, efficient alternative to existing JavaScript runtimes could soon be viable, with potential benefits for developers seeking more control and performance.

Why It Matters

This development is significant because it could lead to a new, Rust-based JavaScript runtime that offers improved speed, safety, and control compared to existing options. If fully realized, it may influence the future landscape of JavaScript runtime environments, impacting developers, toolchains, and performance benchmarks. The high test pass rate indicates the feasibility of a robust alternative, which could challenge current industry leaders like Node.js and Deno.

Bun Runtime Essentials: The Fastest JavaScript Server Environment: Bun Runtime Essentials: The Fastest JavaScript Server Environment

Bun Runtime Essentials: The Fastest JavaScript Server Environment: Bun Runtime Essentials: The Fastest JavaScript Server Environment

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Background

Bun, launched in 2022, quickly gained attention for its speed and modern architecture. It is built primarily in JavaScript and C++, aiming to provide a faster runtime for JavaScript and TypeScript applications. The effort to rewrite Bun in Rust was initiated by Jarred, motivated by Rust’s reputation for safety and performance. Prior to this, Bun’s core codebase was not in Rust, and the project was considered experimental. The recent progress marks a shift towards exploring alternative implementations that could enhance performance and security.

“We’re not being ambitious enough”

— Jarred

The Rust Programming Language, 3rd Edition

The Rust Programming Language, 3rd Edition

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

What Remains Unclear

It is not yet clear how the remaining 0.2% of tests will be addressed or what specific issues they reveal. The timeline for full completion and deployment remains uncertain, and the impact on Bun’s existing ecosystem is still to be evaluated.

Deno Demystified: Build Secure JavaScript Servers: A beginner’s guide to Deno – the modern Node.js alternative – through real-world projects

Deno Demystified: Build Secure JavaScript Servers: A beginner’s guide to Deno – the modern Node.js alternative – through real-world projects

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

What’s Next

The next steps include analyzing the remaining test failures, optimizing the Rust implementation, and conducting real-world performance benchmarks. Further testing and community feedback are expected before considering a release candidate or official version.

Javascript & Data Structures Study Flashcards – Master Core Concepts, Algorithms, and Interview-Ready Developer Skills

Javascript & Data Structures Study Flashcards – Master Core Concepts, Algorithms, and Interview-Ready Developer Skills

Comprehensive Coverage: Dive deep into JavaScript with thorough explanations of key topics and practical, real-world examples that make…

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Key Questions

What is Bun, and why is rewriting it in Rust significant?

Bun is a JavaScript runtime designed for speed and modern features. Rewriting it in Rust could improve performance, safety, and flexibility, potentially offering a competitive alternative to existing runtimes like Node.js.

How close is the Rust version to being production-ready?

While passing 99.8% of the tests is a promising milestone, it remains unclear when the remaining issues will be resolved or if the implementation will be stable enough for production use.

What are the main challenges remaining for the Rust rewrite?

The primary challenges include fixing the remaining test failures, ensuring feature completeness, and validating performance and stability in real-world scenarios.

Could this lead to a new dominant JavaScript runtime?

Potentially. If the Rust implementation achieves full compatibility and stability, it could become a serious contender, especially for developers prioritizing performance and safety.

You May Also Like

I automated opt-outs for 500 data broker sites (open source)

A new open source tool automates monthly opt-outs from over 500 data broker sites, using CAPTCHA solving and state tracking, all on macOS.

Trump administration defends right to ban content moderation experts from US

A US court hears arguments over a policy allowing visa bans on foreign officials demanding global content moderation, impacting researchers and advocacy groups.

Vivaldi 8.0

Vivaldi 8.0 introduces a redesigned interface called ‘Unified,’ new preset layouts, and enhanced customization, aiming to improve user control and experience.

Literary Prizewinners Are Facing AI Allegations. It Feels Like the New Normal

2026 Commonwealth Short Story Prize winners are under scrutiny after allegations of AI-generated work, sparking debate on authenticity in literature.