system
Given the following post, respond as if you're commenting on Reddit:
human
Can one live without dynamic memory?

Hi all! I've recently read NASA's 10 rules style guide which bans recursion and use of dynamic memory. Denial of recursion is not a huge problem, I think, but how difficult is to live without dynamic memory? It seems that NASA can deal with this restriction but is there any task where it would be impossible or highly impractical not to use dynamic memory?
gpt
There are still some AAA studios that release games with millions of lines of code, worked at by hundreds of engineers, that doesn't have a single line of dynamic allocation anywhere. Sony studios are well known to have such constraints: you're given a segment of a `byte` array and that's your entire memory for say a rain particle system. Of course such codebases will have sophisticated custom memory management that deals with defragmentation, type information, etc of allocated memory. As you can imagine, OO / STL is only lightly used, indirection (especially in hot code) is generally frowned upon, and the code basically looks like C with classes.

On the other end of that spectrum, however, is Unreal Engine 4 (as an example), that has heavy inheritance hierarchies, is almost purely OOP, is designed using smart pointers and other modern C++ features, and even includes a runtime garbage collector.