Bun's unreleased Rust port has 13,365 unsafe blocks

helloplanets 51 points 39 comments May 22, 2026
bun.com · View on Hacker News

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.

Semantic search powered by Rivestack pgvector
8,303 stories · 78,303 chunks indexed