4 ms·
Small MCU programming usually doesn't use dynamic memory allocation at all. Does Rust bring borrowing into play in any other situations? I don't know anything
by throwaway81523 4y ago
Small MCU programming usually doesn't use dynamic memory allocation at all. Does Rust bring borrowing into play in any other situations?
I don't know anything about Zig and should probably look into it, but I think Ada is underrated for MCU's.
- steveklabnik 4y agoYes. Borrow checking is unrelated to dynamic memory allocation. The borrow checker checks that references point to valid memory. The location of that memory is not relevant. Also, Rust is more than a borrow checker. My day job is working on an embedded system that has zero dynamic allocation, and Rust’s other features are still very valuable to us, independent of the borrow checker (which also does bring value, to be clear.)