2 ms·
> tight control over where that allocation happens and what to do when it fails is maybe the most important reason c++ is so popular in the space It's also the
by account42 2y ago
> tight control over where that allocation happens and what to do when it fails is maybe the most important reason c++ is so popular in the space
It's also the most important reason why the C++ standard library is so unpopular in the space. All standard C++ containers allocate implicitly because often enough that's OK even in systems programming. What matters is that you can control the allocation more finely when you want.
- kragen 2y agoyeah, agreed. when adding the stl to the standard library was being debated in the standards committee, microsoft forced the stl to use pluggable allocators, so you can easily make your std::vector allocate on your per-frame pointer-bumping heap, but often that's a poor substitute for not allocating at all