Re:LLVM 7.0.0 released
by flurrything on Wednesday September 19, 2018 @07:12PM
(#18028400)
What do these Zig functions do in systems with overcommit ? (that is, Linux, MacOS, *BSDs, Android, iOS, ...).
[ Parent
| on HN ]
Re:LLVM 7.0.0 released
by AnIdiotOnTheNet on Wednesday September 19, 2018 @07:58PM
(#18028631)
Same thing as everyone else: play russian roulette with the OOM-killer and hope that whatever was important to the user didn't get destroyed. Can't really do anything about the OS lying to you.
Re:LLVM 7.0.0 released
by flurrything on Friday September 21, 2018 @04:29AM
(#18038087)
How do Zig programmers using Linux or MacOS validate that their OOM handling is correct?
Re:LLVM 7.0.0 released
by AnIdiotOnTheNet on Friday September 21, 2018 @07:48AM
(#18038974)
There's an allocator in the standard library that is specifically designed to fail.
https://github.com/ziglang/zig/blob/master/std/debug/failing...