The "no gc" crowd

Walter Bright newshound2 at digitalmars.com
Wed Oct 9 12:24:18 PDT 2013


On 10/9/2013 10:05 AM, Manu wrote:
> Supporting ARC in the compiler _is_ the job. That includes a cyclic-reference
> solution.

Wholly replacing the GC with ARC has some fundamental issues:

1. Array slicing becomes clumsy instead of fast & cheap.

2. Functions can now accept new'd data, data from user allocations, static data, 
slices, etc., with aplomb. Wiring in ARC would likely make this unworkable.

3. I'm not convinced yet that ARC can guarantee memory safety. For example, 
where do weak pointers fit in with memory safety? (ARC uses user-annoted weak 
pointers to deal with cycles.)


More information about the Digitalmars-d mailing list