Inherent code performance advantages of D over C?

Marco Leise Marco.Leise at gmx.de
Mon Dec 16 10:56:50 PST 2013


Am Mon, 16 Dec 2013 18:39:13 +0100
schrieb "Francesco Cattoglio" <francesco.cattoglio at gmail.com>:

> On Monday, 16 December 2013 at 17:32:11 UTC, deadalnix wrote:
> > On Monday, 16 December 2013 at 00:53:21 UTC, Walter Bright
> >> Good idea. I suggest writing a pull request against the 
> >> documentation for this.
> >
> > That is a bad idea as it preclude any GC optimization based on 
> > immutability.
> 
> What do you mean by this? How can a change in the documentation 
> preclude GC optimization? Does our GC read docs to understand 
> what can be collected? Now I get it: it's a stop the world, then 
> RTFM, then collect GC implementation :)

Think again(, please)! The more restricted the language
becomes, the more room for specific optimizations there will
be. When the written specs are liberal then some GC
optimizations cannot be applied like compaction.

-- 
Marco



More information about the Digitalmars-d mailing list