News for hackers. Stuff that matters.
Re:Real-Time Garbage Collection Is Real by waps on Tuesday November 11, 2014 @12:46AM (#8588514)
> RAII, smart pointers and ARC aren't free lunches, which is why people had moved from them to GC in the first place.

Yet GC solves 10% of the problem that RAII solves. Tbh I would call them "similar". GC has the advantage of being much more tolerant of sloppy programming, but if you compare the complexity of GC with the complexity of RAII, I'd say RAII has a clear advantage.

Re:Real-Time Garbage Collection Is Real by pjmlp on Tuesday November 11, 2014 @03:11AM (#8588834)
Most RAII use cases can be taken with using/with/try/lambdas