3 ms·
> 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://new
by gchamonlive 3mo 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 https://news.ycombinator.com/item?id=48967630
- theshrike79 3mo agoYou think it’ll all stay there? Of course they’ll iterate and remove the unsafe bits which were necessary for the transition
- windexh8er 3mo agoExcept 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.html https://andrewkelley.me/post/my-thoughts-bun-rust-rewrite.ht...
- theshrike79 3mo agoCreator of language has opinions on big project moving off language. News at 11.
- windexh8er 3mo agoAhh, yes another garbage comment that adds no value. Thanks for your contributions!
- gchamonlive 3mo agoWriting a useless comment just to tell you: oh the irony, writing a garbage comment for calling out a garbage comment. I'm lost in the layers of slurry.
- windexh8er 3mo agoAt least my original comment started from a point of reference. There's nothing in theshrike79's response that is of any value to improving the conversation, so why should they not be called out for it? Isn't that a part of HN's approach? I've been called out for it (rightfully) many times. The fact that you don't think I realize what I did is also rather entertaining. Thanks for mansplaining, though! I was lost until you saved me.
- gchamonlive 3mo agoCould have just moved on, but here we are now still wallowing in our own filth. The fact you realised and didn't just adds to the irony.
- zamadatix 3mo agoAs 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.
- nestorD 3mo agoFun fact, unsafe does not let you turn off the borrow checker in Rust: https://steveklabnik.com/writing/you-can-t-turn-off-the-borrow-checker-in-rust/ https://steveklabnik.com/writing/you-can-t-turn-off-the-borr...
- adwn 3mo ago"Fun fact", it lets you largely circumvent the borrow checker by creating arbitrary lifetimes: https://news.ycombinator.com/item?id=48974824 https://news.ycombinator.com/item?id=48974824
- z0ltan 3mo ago[dead]
- josephg 3mo agoPeople 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 3mo agoPlease 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 3mo ago> Does bun actually do anything insane like that in its unsafe blocks? How would anyone even know, it's vibe coded.