3 ms·
> "the stack is all you can use" (which is what I understand to be remaining when you remove those "bells'n'whistles") Not what I meant, heap allocations are
by flohofwoe 4y ago
> "the stack is all you can use" (which is what I understand to be remaining when you remove those "bells'n'whistles")
Not what I meant, heap allocations are allowed (although the stack should be preferred if possible), but ideally only with long lifetimes and stable locations (e.g. pre-allocated at program startup, and alive until the program shuts down), and you need a robust solution for spatial and temporal memory safety, like generation-counted index handles: https://floooh.github.io/2018/06/17/handles-vs-pointers.html https://floooh.github.io/2018/06/17/handles-vs-pointers.html).
- mathstuf 4y agoYeah, I feel like we work in completely different realms of programming. Which is fine; there are plenty of languages out there for all kinds of use cases. FWIW, pre-allocation absolutely doesn't work when you support loading GB-size datasets. You certainly can't leave it sitting around forever either once it is loaded.