#systems programming

Bun Rewritten from Zig to Rust

simonwillison.net · ⭐️ 8/10 · 2026-07-09

8/10

Jarred Sumner announced the successful rewrite of the Bun JavaScript runtime from Zig to Rust, a process that took 11 days of intensive agentic engineering using Claude and cost approximately $165,000 in API tokens. This rewrite demonstrates that modern AI coding agents can make large-scale rewrites feasible, challenging the long-held 'never rewrite' wisdom. It also shows how Rust's memory safety can eliminate common bugs like use-after-free that plagued Zig's manual memory management. The Bun test suite, written in TypeScript, served as a conformance suite to validate the port. The new Rust-based Bun has been running in Claude Code since June 17, 2026, with 10% faster startup on Linux and no noticeable changes for users.

Explaining CUDA Kernel Execution Flow

fergusfinn.com · ⭐️ 8/10 · 2026-06-30

8/10

The article provides a detailed breakdown of the CPU-to-GPU path when launching a CUDA kernel, covering driver interaction, hardware communication, and warp scheduling. This fills a knowledge gap as many explanations stop at the kernel/block/warp level, but this article connects CUDA launch syntax to actual GPU submissions, which is valuable for GPU computing and HPC practitioners. The article covers topics such as the doorbell mechanism, queue management descriptor (QMD), and warp eligibility; it also explains semaphore handling in the default stream.