3 ms·
> [1] By task I mean some app specific unit of work that makes sense, not some Rust std lib string allocation. Congratulations on successfully moving the goalp
by tialaramex 3y ago
> [1] By task I mean some app specific unit of work that makes sense, not some Rust std lib string allocation.
Congratulations on successfully moving the goalposts. You don't get to decide which dynamic allocations fail, if you did obviously you'd choose "none of them".
> You just have to build your app in a way where there is a core that can continue running with no further allocations.
Again Rust - unlike say C++ - is actually defined so that this just works. So whereas C++ std::array can't exist in the standard without also having a heap allocator - yes really, Rust's [T; N] works just fine even including fancy features like select_nth_unstable_by_key() without needing an allocator.