My Thoughts on the Bun Rust Rewrite

2026年7月9日

AI 摘要 AI 生成,可能有误

作者——Zig 项目的负责人——回顾了 Zig 社区与 Bun 创始人 Jarred 之间日益恶化的关系,指出其风险投资驱动的管理失败、粗糙的代码质量和价值观的分歧,这使得 Zig 软件基金会在 Anthropic 收购 Bun 并用 Rust 重写它时感到如释重负。他驳斥了重写公告博文中的说法,认为错误是通过专注的工程努力而非仅凭语言特性来消除的,并对其关于测试、性能和二进制体积的声明提出质疑。他总结道,这场冲突从来不是 Zig 与 Rust 之争,而是价值体系的冲突,并揭露 Jarred 曾实施残酷、非法的雇佣行为,为自己没有更早断绝往来而感到遗憾。

My Thoughts on the Bun Rust Rewrite

Context: Rewriting Bun in Rust

History

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 Andrew Kelley

Don't Take the Black Pill (Text Adaptation)

AI 摘要The author warns against the 'black pill'—the nihilistic despair that emerged from incel forums and was fictionalized in Cory Doctorow's 'Radicalized'—drawing a parallel to software engineers who feel hopeless about management blocking them from building quality software. He describes coping strategies like 'Benevolent Noncompliance,' secrecy, inception, misdirection, and the 'duck' trick, while arguing that software quality historically depended on engineers' strong negotiating power in the job market. Ultimately, he calls for preserving agency, insisting that computers—like a 'user-agent' browser—should always serve the person directly interacting with them rather than hostile third-party interests.

Zig's New Async I/O (Text Version)

AI 摘要This article is the text version of a Zigtoberfest 2025 demo introducing Zig's new async I/O primitives, which will land in the upcoming Zig 0.16.0 via the std.Io interface. Through a series of progressive code examples, it demonstrates how to set up an Io implementation (similar to allocators), use async/await to express asynchrony for concurrent execution, and handle errors and resource management safely. It also introduces cancellation, showing how defer and cancel combine with try and await to prevent resource leaks and produce more optimal code.

An Open Letter to Everyone I've Butted Heads With

AI 摘要Reflecting on Zig's 10th anniversary, the author examines his negative interactions with community members and concludes that such conflicts stem from programmers' lack of agency over the technologies they depend on, which naturally breeds frustration and anger. He apologizes for his own grumpy moments, emphasizes that he respects and cares even for his critics, and vows to bring more empathy to his daily interactions while continuing to grow Zig into a mainstream, welcoming project.

Renting is for Suckers

AI 摘要The article argues that cloud computing and cloud-based AI coding services are modern forms of 'renting' that violate basic financial principles, as owning hardware is orders of magnitude cheaper—citing the author's $3,000 Mac mini for Zig's CI versus $42,000/year for a cloud runner. It claims cloud and AI companies use marketing, conference sponsorships, and propaganda to convince developers to abandon ownership, transferring massive wealth to a few large corporations while introducing opaque costs and trust risks, such as the potential for LLM providers to manipulate agent behavior for profit. The author concludes by urging programmers to reject cloud and agentic coding services, which can cost hundreds to tens of thousands of dollars monthly, and instead use their own powerful, already-owned computers for free, private programming.

OpenZFS Bug Ported to Zig

AI 摘要The author ports a recent (almost) catastrophic OpenZFS bug from C to Zig to see whether Zig's tooling would have caught the error. After fixing a redeclaration of 'cols' flagged by zig fmt's --ast-check, the tool immediately reports the critical issue: the computed 'psize' is an unused local constant, exposing the original bug of returning 'asize' instead of the correct 'psize'. Notably, Zig caught the bug through these basic checks alone, without even invoking the type checker.