6 ms·
In some areas, especially hard real-time/embedded or safety critical, dynamic memory allocation is strongly frowned upon, and for good reasons. Even if your ap
by stephc_int13 4y ago
In some areas, especially hard real-time/embedded or safety critical, dynamic memory allocation is strongly frowned upon, and for good reasons.
Even if your application does not have stringent safety/predictability requirement, following the principles of Data Oriented Design leads naturally to a radically different approach to memory management.
I am glad to see this kind of projects and design choices.
- _vvhw 4y agoThanks! Data Oriented Design runs like a river through TigerBeetle—it's always on our mind. By the way, have you seen Andrew Kelley's Handmade Seattle talk on Practical DOD? [1] [1] https://vimeo.com/649009599 https://vimeo.com/649009599
- stephc_int13 4y agoYes, I've seen this one, and a few others. I think DOD should be more like an engineering mindset than a strict set of rules. From my experience it can be impractical/cumbersome, especially when prototyping because DOD usually pays off in the long run.