News for hackers. Stuff that matters.
Re:Dealing with Out-of-Memory Conditions in Rust by dnautics on Saturday August 14, 2021 @10:07AM (#28180752)
Just code as normal and when you run into a problem, reassign the default allocator for the struct/object? Not possible for many PLs, hard for some but basically trivial (1 LOC per struct/object) for others.

Some PLs come with test suites that give you a failing allocator, so you can even easily test to make sure this looping condition resolves sanely.

There are no comments on this comment yet.