News for hackers. Stuff that matters.
Re:Bun: Fast JavaScript runtime, transpiler, and NPM client ... by jokethrowaway on Wednesday July 06, 2022 @06:25AM (#31998985)
Rewriting into a safe language actually has some benefits - namely safety compile time guarantees.

Only RAM manufacturers like memory leaks.

Re:Bun: Fast JavaScript runtime, transpiler, and NPM client ... by Cthulhu_ on Wednesday July 06, 2022 @07:28AM (#31999398)
While true, I think there's a lot of "this is better because it's been written in Rust" software around these days. The emphasis is on the language, not the problem being solved.
Re:Bun: Fast JavaScript runtime, transpiler, and NPM client ... by conaclos on Wednesday July 06, 2022 @07:42AM (#31999478)
Agreed. Some project attract attention just because it is written in Rust. Although Rust is well-designed, the language does not make everything.
Re:Bun: Fast JavaScript runtime, transpiler, and NPM client ... by krona on Wednesday July 06, 2022 @07:40AM (#31999470)
Memory leaks in rust might be less common than a fully GC'ed language but saying rust prevents or makes them less common than e.g. zig/c++ seems like a stretch.
Re:Bun: Fast JavaScript runtime, transpiler, and NPM client ... by crabbygrabby on Wednesday July 06, 2022 @08:50AM (#32000086)
You literally cannot get them period in rust. Like it is not possible. That's the point of rust.
Re:Bun: Fast JavaScript runtime, transpiler, and NPM client ... by 3836293648 on Wednesday July 06, 2022 @09:23AM (#32000478)
Leaks are absolutely considered safe by rust. Just look at Box::leak. And if we're comparing it to GC'd "leaks", those are typically hashmaps growning out of control and that can also happen
Re:Bun: Fast JavaScript runtime, transpiler, and NPM client ... by voorwerpjes on Wednesday July 06, 2022 @11:38AM (#32002549)
Leaks can happen in rust. The guarantee safe rust makes is that memory leaks cannot result in undefined behavior.