Getting completely (I mean ENTIRELY) rid off GC

Marco Leise via Digitalmars-d digitalmars-d at puremagic.com
Fri Sep 12 08:19:12 PDT 2014


Am Thu, 11 Sep 2014 13:44:09 +0000
schrieb "Adam D. Ruppe" <destructionator at gmail.com>:

> On Thursday, 11 September 2014 at 12:38:54 UTC, Andrey Lifanov 
> wrote:
> > And I think of idea of complete extraction of GC from D.
> 
> You could also recompile the runtime library without the GC. 
> Heck, with the new @nogc on your main, the compiler (rather than 
> the linker) should even give you nicish error messages if you try 
> to use it, but I've done it before that was an option.
> 
> Generally though, GC fear is overblown. Use it in most places and 
> just don't use it where it makes things worse.

The Higgs JIT compiler running 3x faster just because you call
GC.reserve(1024*1024*1024); show how much fear is appropriate
(with this GC implementation).

-- 
Marco



More information about the Digitalmars-d mailing list