AIToday
AI Coding AssistantsOpen-Source AIPublickeyPublished: Aug 24, 2026, 01:03 JST

Bun 1.4 released, rewritten in Rust with major Node.js compatibility gains

Bun 1.4 released, rewritten in Rust with major Node.js compatibility gains

3 Key Points

  1. What happened

    Bun, the server-side JavaScript runtime, has released version 1.4, the first version rewritten from Zig to Rust using Claude Code. The rewrite fixed over 2,900 GitHub issues and added 1,517 tests from the Node.js test suite.

  2. Why it matters

    The Rust rewrite brings major performance and compatibility improvements. Idle CPU usage is reduced by 5x, memory usage is down by up to 35%, and startup is up to 50% faster on Linux. Frameworks like Playwright, vitest, and OpenTelemetry now work, and a memory leak in Next.js App Router SSR was fixed.

  3. What to watch

    The performance gains are notable, with regex processing up to 281x faster compared with Node.js and startup time improved to 4.8 milliseconds. Bun states full Node.js compatibility is not yet achieved, so future versions may close that gap.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

Context & Analysis

Bun 1.4 is the first version to be rewritten in Rust, a move that directly addresses performance and stability. The rewrite was done with Claude Code over 11 days, a detail highlighted by the Bun team. The resulting fixes and optimizations are substantial, from a 5x reduction in idle CPU usage to a 35% cut in memory use. Startup time on Linux has also improved by up to 50%, bringing it to 4.8 milliseconds. These gains stem from the Rust port and memory-related stabilizations. The version also marks a significant push toward Node.js compatibility, adding over 1,500 tests from the official suite, which enabled frameworks like Playwright and vitest to function. However, Bun notes that full Node.js compatibility is still a work in progress. The memory leak fix for Next.js App Router SSR, caused by a GC retention cycle when fetch() is called, is another key improvement that could benefit developers using that framework.

FAQ
What caused the memory leak in Next.js App Router SSR?
A GC retention cycle caused Next.js App Router SSR to leak memory when a page called fetch(). This bug was fixed in Bun 1.4.
How much faster is regex processing in Bun 1.4?
Regex processing in Bun 1.4 is up to 281x faster compared with Node.js.

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleSnowflake builds internal AI layer to unify conflicting data definitions