4 ms·
This article implies that batch allocations are some kind of panacea and that raii has no place there. Neither of these implications have any case made for the
by raggi 2y ago
This article implies that batch allocations are some kind of panacea and that raii has no place there.
Neither of these implications have any case made for them, just links to other publications that do the same.
It also alludes to downsides but fails to define them, and also misses documenting any downsides associated with alternatives.
Despite deep familiarity with the space and understanding of both sides, I can’t really see it saying anything much at all in fact
- raggi 2y agoThere’s a one-sentence implied claim in here that raii is the reason for c++ rejection and rejection of c++ implies rejection of raii. The author is clearly unaware of the recent cleanup attribute infrastructure submitted on the c side of the kernel: https://github.com/torvalds/linux/blob/master/include/linux/cleanup.h https://github.com/torvalds/linux/blob/master/include/linux/... Zig is a fun and interesting language in its own right, there’s really no need for this post-truth era style propaganda. Just focus on your own work
- mathw 2y agoBasically the same conclusion I came to, I was hoping the article would really make a point at some stage but it just fizzled out without really asserting anything with any supporting evidence. I particularly didn't enjoy how it completely failed to take into account the well-established practice of using RAII alongside arena allocation in C++...