Best of BunJuly 2026

  1. 1
    Article
    Avatar of collectionsCollections·5w

    Nub: a new Node.js toolkit claiming faster installs and script running than Bun and pnpm

    Nub is a new JavaScript toolkit that layers on top of Node.js, bundling a package manager, script runner, Node version manager, and TypeScript runtime in a single native binary. Its team claims a warm reinstall of 1,100+ packages in 346ms, compared to 1.9s for Bun and 3.45s for pnpm — though these benchmarks are self-reported and unverified. Nub positions itself between pnpm and Bun: faster than pnpm while maintaining full Node.js compatibility, making it relevant for projects that can't migrate to a different runtime. As a new project, it lacks the production track record and ecosystem maturity of pnpm or Bun.

  2. 2
    Article
    Avatar of collectionsCollections·7w

    Bun rewrote its runtime from Zig to Rust in 11 days using 64 parallel AI agents

    Bun's creator Jarred Sumner rewrote the entire Bun JavaScript runtime from Zig to Rust in 11 days using 64 parallel Claude Code AI agents. The motivation was structural memory safety: Zig lacks RAII-style Drop semantics, causing persistent use-after-free and double-free bugs that code review couldn't fix. The agent workflow used adversarial review agents, a PORTING.md guide, and a LIFETIMES.tsv file to preserve behavioral fidelity across the codebase. The rewrite cost ~$165,000 in API tokens — compared to an estimated one year of work for three engineers. Bun v1.4.0 ships the result: 128 bugs fixed, memory usage down from 6.7 GB to 609 MB in one benchmark, binary size reduced ~20%, and HTTP throughput up 2–5%.

  3. 3
    Article
    Avatar of trendsTrends·4w

    One engineer with Claude Code outpaced the whole Bun team. The numbers are hard to argue with.

    Jarred Sumner, Bun's creator, shared that a single engineer using Claude Code passed more of Node.js's test suite in one month than the entire Bun team did over nine months. The context: Bun's runtime was ported from Zig to Rust in 11 days using a multi-agent Claude Code setup with one main agent, adversarial review agents, a fixer agent, and 50 dynamic workflows. The estimated API cost was ~$165,000, only feasible because Bun is owned by Anthropic. The Rust output relied heavily on `unsafe` due to mechanical translation rather than idiomatic Rust, drawing criticism from the Zig creator. The broader takeaway is that language-to-language codebase porting is emerging as a strong AI use case — test suites provide objective verification, making it a cleaner problem than open-ended generation. The legacy modernization angle (C, COBOL, older C++) is particularly significant for enterprises with large untouchable codebases.

  4. 4
    Article
    Avatar of devclassDEVCLASS·6w

    Zig creator calls Bun's Claude Rust rewrite 'unreviewed slop'

    Bun creator Jarred Sumner rewrote Bun's ~500,000 lines of Zig code into Rust in just 11 days using ~50 parallel Claude Code agents, at a cost of roughly $165,000. The AI-generated Rust code passed Bun's full test suite of over one million assertions. Zig creator Andrew Kelley publicly criticized the move, calling the AI-generated code 'unreviewed slop' and arguing that Bun's bugs stemmed from poor programming practices rather than Zig's limitations. Kelley also noted that Zig's project policy rejects AI-generated contributions due to quality concerns. HashiCorp co-founder Mitchell Hashimoto praised the speed of the AI-assisted rewrite. The controversy raises broader questions about code quality, engineering oversight, and the viability of large-scale AI-driven rewrites.