Bun's unreleased Rust port has 13,365 unsafe blocks
helloplanets
51 points
39 comments
May 22, 2026
Related Discussions
Found 5 related stories in 77.6ms across 8,303 title embeddings via pgvector HNSW
- Bun Rust rewrite: "codebase fails basic miri checks, allows for UB in safe rust" ndiddy · 380 pts · May 15, 2026 · 69% similar
- Bun is being ported from Zig to Rust SergeAx · 352 pts · May 05, 2026 · 67% similar
- Bun's rewrite in Rust was merged maxloh · 30 pts · May 14, 2026 · 67% similar
- Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc heldrida · 490 pts · May 09, 2026 · 67% similar
- Bun's Rust rewrite has been merged ale · 90 pts · May 14, 2026 · 66% similar
Discussion Highlights (13 comments)
evil-olive
right at the very top: > Bun · Rust codebase audit · May 21, 2026 · AI generated nice of them to be up-front about it, I guess. the port is AI slop, littered with 13k unsafe blocks. and this blog post is more AI slop, claiming to present a "plan" for how to reduce that number. why should anyone trust anything they output? all they're trying to do is cover up their slop with more slop. if you're cleaning your house, and the dirt can't all fit under one rug, the obvious solution is to buy another rug.
firtoz
> Bun's Rust port has not shipped in a released build yet. The Bun you install today still runs the original Zig implementation. This audit is the pre-release pass over the port. That's good to see. I was getting a bit worried but now feeling better about it.
mariopt
The current level of insanity with AI is off the charts. Porting to a safe language without the safety features.
avsn
Wow, this page looks so bad information-wise. There's a trend with such LLM "reporting" of just throwing bunch of numbers, graphs, charts, whatever on the page. Looks impressive from the outside, totally incomprehensible when you try to actually read it.
ponyous
Bun is(was?) a lot about performance. How does it compare to zig?
amazingamazing
Could you imagine if Postgres decided to yolo a port (even if unreleased) to rust? Why port the whole thing like this? Why not do it piecemeal and get each piece to prod? Look no further than their owner for the reason, unless it is merely a coincidence this only happened after a change in ownership…
mmastrac
Remember kids, unsafe is not undefined behaviour. It just means you need to prove via unchecked English statements that your code is not UB.
hmokiguess
Also, was this done with Mythos or Opus 4.7?
12_throw_away
Assertions without context, charts about other charts, numbers (so many numbers) without data. An audit with no auditor. Pure infoslop. What a time to be alive.
kshri24
Not reading this AI slop.
izietto
Guys, does anyone know why the decision to port Bun from Zig to Rust? Is it to move to a less niche language?
mpalmer
I have such contempt for this effort by Anthropic. Jarred has torpedoed so much of the goodwill Bun had earned.
pier25
This PR piece is only making things worse.