|
|
|
|
|
by flohofwoe
1301 days 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). |
|