What's the go with the GC these days?

Russel Winder russel at winder.org.uk
Mon Jan 7 19:18:02 UTC 2019


On Sun, 2019-01-06 at 01:22 -0800, Walter Bright via Digitalmars-d wrote:
> On 1/5/2019 11:48 PM, Manu wrote:
> > Hmnm, that's pretty disappointing... as a C++ user who has been doing
> > C++ ref counting for years, I would say that, while maybe it is
> > *kinda* successful, it's not at all satisfying, and it's one major
> > reason I've been pushing it in D for the last 8-9 years.
> > Ref counting in C++ is a sloppy hack. I really just want the compiler
> > to emit opInc and opDec appropriately on either sides of a reference
> > assignment, and let me take it from there.
> > Also, with escape analysis, we can elide such calls very effectively,
> > and we can't do that using the C++ strategy.
> > 
> > I think it's disappointing to embrace C++'s hacky 'solution', we could
> > do better.
> 
> So far, we've failed at every attempt at it.

This is not an excuse to stop trying!

In this, Java and Go are excellent examples: someone comes up with the best
that can be done, and then someone finds a new and usually better way of doing
things.

I don't have any specific ideas, so I can't put my activity where my mouth is.
Sorry.

-- 
Russel.
===========================================
Dr Russel Winder      t: +44 20 7585 2200
41 Buckmaster Road    m: +44 7770 465 077
London SW11 1EN, UK   w: www.russel.org.uk

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20190107/e2186ac8/attachment.sig>


More information about the Digitalmars-d mailing list