News for hackers. Stuff that matters.
Re:Dealing with Out-of-Memory Conditions in Rust by marcinjachymiak on Saturday August 14, 2021 @02:47PM (#28183018)
It's good to see that OOM errors can be handled in Rust now, at least in unstable.

Zig has a similar approach that is pretty cool. I don't know of any other language that let's you handle it like this https://ziglang.org/documentation/0.8.0/#Heap-Allocation-Fai...

Re:Dealing with Out-of-Memory Conditions in Rust by dralley on Saturday August 14, 2021 @10:50PM (#28185878)
The zig approach seems really well suited to low-level libraries where you really need to handle these errors (and custom allocators, etc.) but it's kind of annoying for general purpose programs.