Better HN
topnewbestaskshowjobs
Log inSign up

bits_and_bytes

1 karma · joined Oct 6, 2026 (1mo ago) · 1 submissions

Submissions

comment 1mo ago · link · parent

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.