|
|
|
|
|
by tialaramex
1812 days ago
|
|
> If memory allocation fails, an exception is thrown and a retry with less memory requirements is a possible execution path. So, since we're talking about the Linux kernel, that's a red flag straight away. Notice a whole section of this new LKML post is about their implementation of Rust's alloc crate? Linus doesn't want useless exceptions here and has previously objected on that basis. Meanwhile... Over in the C++ world they have this same behaviour. For them these exception handlers are a fiction, in reality popular standard libraries (never mind everything else you're using) will blow up in low memory and it's game over. Maybe Ada does a lot better. Maybe. |
|
Ada also has no exception allowed profiles and other mechanisms.
HN is not the place to hold a lecture on Ada features.
It is not a maybe, rather lack of knowledge.