Anthropic 为 Bun 1.1.13 加入内存修复,开发者抱怨内存泄漏
Anthropic bakes memory fixes into Bun 1.1.13 as developers complain of leaks
Anthropic 旗下的 Bun 发布 1.1.13 版本,重点修复内存问题:运行时内存占用降低 5%,升级内存分配器并实现 Libpas scavenger,更快将未使用内存归还操作系统。新版本还引入 isolate、parallel 和 shard 测试标志,并改用 zlib-ng 实现最高 5 倍压缩提速。此前有开发者抱怨 Bun 内存泄漏、崩溃和 Windows 支持不佳,OpenCode 创始人称正从 Bun 迁回 Node 和 Electron。
正文
当前显示原文,中文全文译文尚未就绪。
DevOPS
A new version of the Bun JavaScript runtime and toolkit is out with enhanced testing support and improved memory management. The latter is a critical issue to devs and follows complaints of memory leaks causing problems in production.
Bun, acquired by Anthropic in December 2025, is both a bundler for compiling TypeScript or JavaScript applications for the browser, and a runtime for server-side code. It competes with the long-established Node.js, latest version 25.9, and Deno, developed by Node.js creator Ryan Dahl.
New features in 1.1.13 include improvements to the test runner, which is intended to be compatible with the popular Jest testing framework. This version introduces an isolate flag, which runs each test in a fresh environment, and a parallel flag, which runs concurrent tests across a user-defined number of processes. It is also now possible to split tests across multiple test runners with the shard flag, matching Jest's syntax.
Compression in Bun now uses zlib-ng (next generation), an optimized fork of zlib, and yielding up to five times faster compression without any other code changes.
But perhaps most important is the attention to memory issues in this release. Bun inventor Jared Sumner claims that the runtime uses 5 percent less memory, and that an upgraded memory allocator along with an implementation of Libpas scavenger returns unused memory to the operating system faster. According to Sumner, these two changes "reduce baseline memory usage and fix a class of hangs and crashes in long-running processes."
This is significant, as excessive memory use in Bun is a common complaint.
"Bun is not stable enough for production nor faster than Node in production," said one user on Reddit, for which he blamed memory leaks. Developers working with Bun as a toolkit may not notice this, but using it as a production runtime means "long running workloads amplifying problems that short benchmarks never reveal."
Jay V, founder of OpenCode, whose product is an open source AI agent, said on X that "we are moving to Node and Electron, away from Bun and Tauri." Tauri is a Rust framework for cross-platform desktop applications. "Bun is not a good fit for apps with a large user base, you should just stick to Node," he added, citing memory issues, crashes, and "terrible Windows support."
That said, Bun is well liked for its speed and rich feature set, and not every deployment is problematic. "I've been very satisfied since I switched to Bun. It's fast and has a great standard library," said one user.
There are enough complaints though to suggest caution when using Bun in long-running processes, with reports like this one where GC (garbage collection) seems to be failing with certain functions, ending up with an OOM (out of memory) error.
Bun development has proceeded at high speed since its first production release in September 2023. Some users would prefer a slower pace of new features, in return for more focus on stability.
When you just need to build a tiny desktop app: TinyJS
October 13, 2026
Valen creator drives 'Golden Spike' to connect new languages with Rust
September 26, 2026
Microsoft agentically ports Copilot runtime to Rust for $120K
September 19, 2026
Apple iPhone Duo makes developers think in folds
September 16, 2026
JavaScript installer pnpm recast in Rust because ECMAScript can't keep up
September 5, 2026
Kubernetes cleans house, bins legacy kube-dns, IPVS, and cgroup v1
August 27, 2026
How Cursor beat Git's scalability shortcomings
August 24, 2026
Go updates may delight diehard gophers but displease AI overlords
August 21, 2026
SvelteKit 3 puts heat on Next.js with radical approach to RPCs
August 20, 2026
Almost nobody pays attention to web standards anymore
August 18, 2026
ChainDrop worm crawls into npm supply chain, evades standard defenses
August 16, 2026
Node.js creator liberates Durable Objects from Cloudflare
August 13, 2026
AI titans to tidy agent frontier with plugin prescription
August 8, 2026
Platform Engineering 2.0: your platform was built for a different era. AI just exposed it
August 6, 2026
Next.js 16.3 aims to reduce dreaded FATAL ERROR messages
August 5, 2026
Dev who gave HashiCorp its name returns with a faster terminal multiplexer
August 1, 2026
How AI drove Shopify back to clean code
Turns out, agents just want the same things as humans: easily-readable code, explicit contracts, and helpful feedback
July 26, 2026
Zig creator calls Bun's Claude Rust rewrite 'unreviewed slop'
July 15, 2026
HTTP gets a QUERY method so complex searches can stop pretending to be POST
July 14, 2026
Speedier type checks in TypeScript 7.0 as first stable Go release ships
July 10, 2026
GitHub cuts short offer to burn repos on CD after mockery ensues
A purported jab of Sony's physical media phase-out blows up on GitHub itself
July 7, 2026
.NET's long term support is not long term enough, dev complains
June 30, 2026