News for hackers. Stuff that matters.
Re:For Better Computing, Liberate CPUs from Garbage Collection by eru on Thursday May 09, 2019 @06:39AM (#19866936)
RAII has nothing to do with memory fragmentation.

Solving memory fragmentation requires moving objects around. Usually you get that via a moving (or compacting) garbage collector. But there's no reason RAII style resource allocation couldn't move things around.

And there are plenty of garbage collection strategies that don't move objects around.

Re:For Better Computing, Liberate CPUs from Garbage Collection by Patient0 on Thursday May 09, 2019 @06:52AM (#19867002)
I was simply stating that RAII does not solve the memory fragmentation issues. Many GC's do solve the memory fragmentation issue.