GC question

osa1 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Feb 1 01:50:42 PST 2017


On Wednesday, 1 February 2017 at 09:40:17 UTC, Ola Fosheim 
Grøstad wrote:
> On Wednesday, 1 February 2017 at 06:58:43 UTC, osa1 wrote:
>> I'm wondering what
>> are the implications of the fact that current GC is a 
>> Boehm-style conservative
>> GC rather than a precise one, I've never worked with a 
>> conservative GC before.
>
> The GC isn't competitive with the ones you find in GC languages 
> (Java, Go etc). E.g. Go is now aiming for GC pauses in the 
> microseconds range.
>
> Resource management in D is rather lacklustre, even C++ does 
> better imho. D seems to move towards using thread local 
> ref-counting and making GC optional. I guess that would be ok 
> on cpus with few cores, but not really adequate on many core 
> CPUs.

Thanks for the answer. Could you elaborate on the lacklustre 
part? It's fine if I have to do manual memory management, but I 
don't want any leaks. Ideally I'd have a precise GC + RAII style 
resource management when needed.


More information about the Digitalmars-d-learn mailing list