Handles are the better pointers (2018)
Summary
The Brain Dump post argues for a memory-management approach that uses centralized systems, index-based handles, and data-oriented layouts instead of traditional pointers. It advocates grouping items into arrays, exposing only handles, and converting handles to pointers only when necessary, with safety checks to prevent use-after-free and collisions. An update in 2018 adds per-slot generation counters to further reduce handle collisions and improve memory safety, with examples from sokol_gfx and related projects.