Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

waste management

Name: Anonymous 2012-08-01 18:01

what's all this talk about garbage collection?

Name: Anonymous 2012-08-01 18:04

GC is shit.

Name: Anonymous 2012-08-01 18:08

The duality of garbage collection is interesting. It's both shit and the Right Thing at the same time.

Name: Anonymous 2012-08-01 18:19

It shit only in implementation. Theoretically, it's the only correct way to do memory management.

Name: Anonymous 2012-08-01 18:23

RAII is better.

Name: Anonymous 2012-08-01 18:33

>>5
RAII is great but it doesn't work for anything but the simplest stack-like allocation patterns.

Name: Anonymous 2012-08-02 0:33

>>6
The idea is to encapsulate all heap memory management. If you need the RAII object to persist beyond its scope, just new the object. You will have to free it, but the problem has been reduced from freeing all the associated data to just a single delete statement. It's not as convenient as GC. But come on. How hard is it, really? Hard enough that you'd rather surrender--let a ``garbage collector'' have free reign to shit up your software?

Don't change these.
Name: Email:
Entire Thread Thread List