Discussion on Go and D

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Apr 8 16:55:43 PDT 2012


On 4/8/12 5:57 PM, Manu wrote:
> On 8 April 2012 23:44, Andrei Alexandrescu
> <SeeWebsiteForEmail at erdani.org <mailto:SeeWebsiteForEmail at erdani.org>>
> wrote:
>     Anyhow, the recent discussions on Go clarify that we need to improve
>     our collector's precision, and pronto. The only thing that didn't
>     yet make the problem more painful in D is that D programs create a
>     lot less garbage.
>
>
> What do you base that statistic on?

"A lot less" is hardly a statistic :o).

> I'm not arguing that fact, just that
> I haven't seen any evidence one way or the other. What causes Go to
> create significantly more garbage than D?

As Walter mentioned, Go uses indirection and implicit allocation for its 
fundamental abstraction mechanisms. D has elaborate value types, the 
scope statement, and pass-by-alias, all of which drastically reduce the 
amount of garbage created.


Andrei


More information about the Digitalmars-d mailing list