type-safe(r) container types| louissven.xyz
My last article about generic data structures in C was written to set the stage for today’s topic: A data structure that can be used in place of dynamic arrays, has stable pointers, and works well with arena allocators. It’s been independently discovered by different programmers over the years and so goes by different names. A 2001 paper called it a “levelwise-allocated pile” (bleh). Zig calls it a “Segmented List”. Then theres C++ with std::deque, which is only somewhat similar.| danielchasehooper.com
The interfaces between C and Rust in the kernel have grown over time; any non-trivial Rust dri [...]| LWN.net