Remix.run Logo
gchamonlive a day ago

> Rust does this automatically. It removes an entire class of errors from his backlog.

Even with the huge amount of "unsafe" rust currently in bun? https://news.ycombinator.com/item?id=48967630

zamadatix 18 hours ago | parent | next [-]

As opposed to every commit abd line of code being unsafe? They use a lot of C/C++ libraries with their own code so unsafe isn't even a a problem in most places they use it.

theshrike79 21 hours ago | parent | prev | next [-]

You think it’ll all stay there?

Of course they’ll iterate and remove the unsafe bits which were necessary for the transition

windexh8er 14 hours ago | parent [-]

Except the transition was never necessary. Yet another Anthropic marketing effort so they could claim a shallow victory [0].

[0] https://andrewkelley.me/post/my-thoughts-bun-rust-rewrite.ht...

theshrike79 11 hours ago | parent [-]

Creator of language has opinions on big project moving off language.

News at 11.

nestorD 15 hours ago | parent | prev [-]

Fun fact, unsafe does not let you turn off the borrow checker in Rust: https://steveklabnik.com/writing/you-can-t-turn-off-the-borr...

adwn 12 hours ago | parent [-]

"Fun fact", it lets you largely circumvent the borrow checker by creating arbitrary lifetimes: https://news.ycombinator.com/item?id=48974824

josephg 8 hours ago | parent | next [-]

People are so funny about rust.

“Safe rust isn’t expressive enough!” -> then use unsafe rust.

“Unsafe rust lets you do anything! Even crazy things!” -> then use safe rust. Or just don’t write crazy code?

Does bun actually do anything insane like that in its unsafe blocks? Or are you just fear mongering?

adwn 6 hours ago | parent | next [-]

Please try to interpret comments in the context of the discussion, not floating freely in a vacuum. The context of the discussion is the Bun port's excessive use of unreviewed unsafe blocks. unsafe in Rust can easily be misused to create Undefined Behavior, which renders any safety guarantees otherwise ensured by Rust's borrow checker invalid.

> Does bun actually do anything insane like that in its unsafe blocks?

Who knows? At 10k unreviewed uses of unsafe, I'd guess there are quite a few incorrect ones. LLMs don't produce perfect code (neither do humans), so there's a high probability that at least some of those create UB.

throwaway613746 5 hours ago | parent | prev [-]

> Does bun actually do anything insane like that in its unsafe blocks?

How would anyone even know, it's vibe coded.

z0ltan 10 hours ago | parent | prev [-]

[dead]