I thought Rust treated undefined behaviour as a compiler bug? Does anyone know what's actually happening here?
Bun Rust rewrite: "codebase fails basic miri checks, allows for UB in safe rust"
11–20 of 366 posts
Re: Bun Rust rewrite: "codebase fails basic miri checks, allows for UB in safe rust"
#12There's a book that changed a lot of the way I think about attention and media [0]. The book isn't very good, but it flags something relevant here. There is a huge asymmetry between the reach of a big, flashy announcement (here: bun was re-written in memory-safe rust in a couple weeks), and the relatively small reach of a correction (often just a footnote on an old article, here a GH issue). This asymmetry is well un…
Not just marketing and PR, the mainstream media knows that pushing out BS and then retracting it later can have lasting effects because people will remember the original article / headline, and never see the correction.
Re: Bun Rust rewrite: "codebase fails basic miri checks, allows for UB in safe rust"
#13This had to happen, for many reasons: - Its a throw thing at the wall and see what sticks situation - LLMs will improve* - Using LLMs in an agentic way will improve (git worktrees, sliced PRs, spec driven steps) So what happened here is a mess, but you gotta break a few eggs to make a souffle. It's a learning step and I am glad it happened, there will be so many things to debrief from this. I don't use Bun or Rust bu…
Re: Bun Rust rewrite: "codebase fails basic miri checks, allows for UB in safe rust"
#14Re: Bun Rust rewrite: "codebase fails basic miri checks, allows for UB in safe rust"
#15That kind of error was expected. I don't see it as an issue against the rewrite. They kept the stable versions on Zig in case ppl needs stability. Eventually, the errors will get fixed.
Re: Bun Rust rewrite: "codebase fails basic miri checks, allows for UB in safe rust"
#16I thought Rust treated undefined behaviour as a compiler bug? Does anyone know what's actually happening here?
And it's not like Bun when written in Zig has been a beacon of stability either. It has been segfaults all over the place.
Re: Bun Rust rewrite: "codebase fails basic miri checks, allows for UB in safe rust"
#17I thought Rust treated undefined behaviour as a compiler bug? Does anyone know what's actually happening here?
Re: Bun Rust rewrite: "codebase fails basic miri checks, allows for UB in safe rust"
#18Maybe they want a quick switchover and the UB is replicating existing problems so it is net neutral for the codebase (but positive future coz developers can do future work on rust without synchronizing two codebase? ).
But I think their true strategy is to have AI produce "fixes" like these which will end up infecting the entire codebase: https://github.com/oven-sh/bun/pull/30728
Re: Bun Rust rewrite: "codebase fails basic miri checks, allows for UB in safe rust"
#19Re: Bun Rust rewrite: "codebase fails basic miri checks, allows for UB in safe rust"
#20There's a book that changed a lot of the way I think about attention and media [0]. The book isn't very good, but it flags something relevant here. There is a huge asymmetry between the reach of a big, flashy announcement (here: bun was re-written in memory-safe rust in a couple weeks), and the relatively small reach of a correction (often just a footnote on an old article, here a GH issue). This asymmetry is well un…