More radical ideas about gc and reference counting

via Digitalmars-d digitalmars-d at puremagic.com
Mon May 5 23:39:16 PDT 2014


On Tuesday, 6 May 2014 at 06:07:41 UTC, HaraldZealot wrote:
> I notice that I view only part of problem, can anybody link or 
> describe me completely state and problems of current garbage 
> collection and other resource management? It help me in finding 
> of existence solution (at least theoretical).

A precise scanning GC is the only robust general solution. RC 
with weak pointers can only account for a subset of all possible 
models.

But I agree with you, the language should be redesigned to have a 
GC friendly set of D constructs where FFI is followed by 
programmer guaranteed postconditions (specified by library 
authors).

In other words the @nogc appoach is not sufficient, a @gc 
approach is needed.




More information about the Digitalmars-d mailing list