3 ms·
> That doesn't change the fact that few people actually do it or need to do it. I am one of those few people. We are running some scientific code (currently, u
by tetromino_ 11y ago
> That doesn't change the fact that few people actually do it or need to do it.
I am one of those few people. We are running some scientific code (currently, unfortunately, written in C++) on a heterogeneous bunch of compute nodes. Some computations can be extremely memory-intensive, and sometimes in ways that we didn't predict. So it's useful to be able to fail gracefully and record that computation X on node Y with input parameters [Z] failed specifically due to running out of memory at step W - so that e.g. the queue manager can try relaunching the computation on a beefier node or adjusting how many instances of which computation are allowed on Y.
- pcwalton 11y agoThat's something that Rust fully supports with panic handlers. Doing arbitrary work before the process goes down is useful and supported. (But you will have to be running Linux in a non-default configuration for it to be reliable, of course!)
- tetromino_ 11y agoThanks, that's good to know! > But you will have to be running Linux in a non-default configuration for it to be reliable, of course! Of course. It does seem to work in practice with our C++ code, although probably that's due to our usage pattern.