3 ms·
To explain what I think this comment means. When working on embedded systems, you can interact with hardware devices by writing directly to specially mapped mem
by robbyt 7y ago
To explain what I think this comment means. When working on embedded systems, you can interact with hardware devices by writing directly to specially mapped memory areas.
E.g., if you want to write text to a small screen, the kernel driver gives you a memory region that you write bytes to, and they're shown on the screen immediately, without requiring the CPU.
- redrobein 7y ago> To explain what I think this comment means. When working on embedded systems, you can interact with hardware devices by writing directly to specially mapped memory areas. And why can't you do this in rust?
- jasondclinton 7y agoYou can. Rust allows full memory addressing.
- lawn 7y agoThere's nothing to prevent you from doing this, although you may have to wrap it in an unsafe block.
- monocasa 7y agoThey're saying more that intrusive data structures are really nice in situations that restrict heap allocation. The memory overhead outside of the structures linked together is O(1), because all of the per object metadata is stored in the objects themselves. That means consumers generally don't have to be hardcoded for certain number of objects like you would for an array/vector that doesn't have access to a heap.