News for hackers. Stuff that matters.
Re:The Next Big Language by alexgartrell on Wednesday January 26, 2011 @07:06PM (#2145909)
just curious, do you allow malloc_gc'ed items to reference malloc'd ones?
Re:The Next Big Language by huhtenberg on Thursday January 27, 2011 @02:46AM (#2147027)
Sure.

malloc'ed item could be the same as malloc_gc'd, but with its reference count artificially bumped up by 1. free() would decrement the count and the item will be picked up by the GC later on. If there's a provision for an immediate disposal of unreferenced items, then we are back to the standard malloc/free behaviour in case when malloc and malloc_gc items are not mixed.

Re:The Next Big Language by p0nce on Thursday January 27, 2011 @10:50AM (#2148228)
Reference counting is a bad C++ substitute for a real GC.
Re:The Next Big Language by huhtenberg on Thursday January 27, 2011 @11:51AM (#2148493)
Sure, absolutely. Just as C++ is a bad substitute for a real language.

(edit) </sarcasm>