|
|
|
|
|
by mathstuf
1301 days ago
|
|
> use 3rd party libs And now I have more problems ;) . (And I develop on CMake; consistently using external deps is a nightmare.) The thing is that I usually am that library author (or working in an area that acts like that). I'm not sure what you expect to be left if you say "the stack is all you can use" (which is what I understand to be remaining when you remove those "bells'n'whistles"). I also really enjoy the functional aspects. I don't want to think about what some of the iterator-based code I've done looks like in C or C++ (even with ranges). |
|
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).