News for hackers. Stuff that matters.
Re:Baby's First Garbage Collector by jballanc on Sunday December 08, 2013 @05:07PM (#6871651)
The Boehm–Demers–Weiser garbage collector is a fairly famous implementation of a GC for vanilla C, pointers and all: http://en.wikipedia.org/wiki/Boehm_garbage_collector
Re:Baby's First Garbage Collector by city41 on Sunday December 08, 2013 @05:12PM (#6871671)
Yeah I'm aware of optional GCs. What I meant was languages that ship with a GC as standard and also have pointers. In the case of Boehm, since you choose to bring it in yourself, it's up to you to make sure you don't abuse it.
Re:Baby's First Garbage Collector by jballanc on Sunday December 08, 2013 @05:46PM (#6871815)
Well, pretty much any language with a GC can abuse the GC, regardless of whether it's optional or designed in from the start. It just happens to be a lot harder to abuse a GC than to forget to free/delete something.