News for hackers. Stuff that matters.
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.