3 ms·
Embedded projects often have limited memory and demand high reliability. If the application requires any dynamic memory allocation on the heap but the language
by gradschool 10y ago
Embedded projects often have limited memory and demand high reliability. If the application requires any dynamic memory allocation on the heap but the language provides no facility for checking or recovering from unsuccessful allocations besides crashing, wouldn't that be kind of a deal breaker? I get the feeling this issue is either a low priority or a very advanced topic in the Rust community. Would anyone care to enlighten me?
- steveklabnik 10y agoThe language itself knows nothing about heap allocation. The standard library provides heap allocation stuff that will abort on OOM, but in an embedded project, you aren't using the standard library, and so you can do heap allocation any way you choose.