Name: Anonymous 2014-05-29 6:36
...everyone in /anus/ seem to hate GC?
In what language? And how do I use libs which use GC? With pain, that's how.Most GCs have weak weak references. I know SBCL, CLR and JVM provide them.
But the overhead of GC will not go anywhere, which means less things can be held in memory at the same time. Read the paragraph on garbage collection here:malloc produces a lot more overhead.
By not avoiding circular references, I make way for lots of more algorithms and data structures.If you really need circular references, you can simulate pointers using integers: create an array of objects, and instead of referencing them, keep indices to this array. No setting some index to NIL would efficiently GC the object.