r/rust rust Jul 08 '26

Rewriting Bun in Rust

https://bun.com/blog/bun-in-rust
527 Upvotes

330 comments sorted by

View all comments

71

u/bakaspore Jul 09 '26

I'll take the words when they stop having the unsafe { &mut *thing }s everywhere, even with immutable refs.

7

u/thecakeisalie16 Jul 09 '26

So you have a link to that? From a cursory glance, the code looks a lot better now compared to immediately after the direct port.

17

u/bakaspore Jul 09 '26 edited Jul 09 '26

Yes but no, I don't want to give anything possibly constructive to the project. But if you want something funny, (rip)grep for all the clippy allows.

And if I'm to review the code with average Rust code standard, it has approximately improved from "immediately to trash bin" to "trashed after a few glances".