jeff-mitchell.dev

Writing about building the things mostly in Rust...mostly...

Hacker News Rust Digest — May 18, 2026

A week of high-signal Rust discussion on Hacker News, anchored by the dramatic news that the Bun JavaScript runtime is experimenting with an AI-assisted rewrite from Zig to Rust.

Zig → Rust Porting Guide (Bun's Experimental Rewrite)

A commit in the Bun repository surfaced a PORTING.md file documenting a Zig-to-Rust migration, apparently authored with heavy AI assistance — quickly hitting #1 on HN with 723 points and 554 comments. Bun creator Jarred Sumner clarified in the thread that it was an experiment, not a commitment, with "a very high chance all this code gets thrown out completely." The discussion touched on Zig's pre-1.0 instability, Bun's upstream contribution friction with the Zig project, and whether AI-assisted rewrites of 950k-line codebases are engineering or theater.

HN Discussion | Commit

Bun's Experimental Rust Rewrite Hits 99.8% Test Compatibility

A follow-up thread (718 points, 697 comments) appeared days later when Jarred Sumner announced the experimental rewrite had reached 99.8% test compatibility on Linux x64 glibc — far faster than anyone anticipated. Commenters debated the role of AI coding tools in the port (the branch is named claude/phase-a-port), with Steve Klabnik noting roughly 14,000 unsafe blocks in the generated Rust code and expressing curiosity about what the count would look like after proper cleanup passes.

HN Discussion | Article

An Incoherent Rust

A post from boxyuwu.blog (245 points, 166 comments) argued that Rust's language design is losing coherence as it accumulates features — particularly around trait coherence rules and proposed relaxations. The top comment captures the tension well: "I love the language, and reach for it even when it sometimes isn't the most appropriate thing. But reading some of the made-up syntax in the 'Removing Coherence' section makes my head hurt." The thread surfaced genuine long-term concerns about whether Rust can grow without fragmenting its mental model.

HN Discussion | Article

High-Level Rust: Getting 80% of the Benefits with 20% of the Pain

An article arguing that most Rust practitioners over-optimize for "pure" ownership patterns when leaning on Arc, Clone, and Box would deliver most of the safety guarantees at a fraction of the cognitive cost. The HN thread pushed back thoughtfully — some noting the community does indeed over-police cloning, others arguing the explicitness is a feature, not a bug. A recurring theme: tutorials and books should normalize pragmatic patterns earlier rather than treating them as concessions.

HN Discussion

The Limits of Rust (Release Velocity Thread)

A comment-turned-discussion noted that between January 2020 and May 2026, Rust shipped 54 minor releases amounting to 7,500 lines of changelog — compared to 12 Go releases and 5 Python major releases in the same period. The ensuing debate clarified that Rust's releases are minor (no edition-level breaks), while Python's five were all major with backwards-incompatible changes. The thread is a useful corrective to both "Rust changes too fast" and "Go is stagnant" narratives.

HN Discussion

The story of the week is unambiguously the Bun rewrite: an AI agent porting nearly a million lines of Zig to Rust and reaching near-full test parity in days is either a glimpse of where systems programming is headed, or a cautionary tale about 14,000 unsafe blocks waiting to be audited. Either way, the Rust community is paying close attention.

Comments

Comments use Utterances and GitHub and are public. See the privacy policy.