News for hackers. Stuff that matters.

bits_and_bytes

Re:Type Safe Generic Data Structures in C on Tuesday October 06, 2026 @09:22AM (#49978058)
RAII is terrible for memory resources - it's ok for things like locks I guess. Rarely do I want to couple initialization with allocation, I want bulk allocations/deallocations (and I want precise control over when that happens) and reset()-like functions so I can easily reuse memory.