Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

Brian Rogoff brogoff at gmail.com
Thu Jan 9 14:51:22 PST 2014


On Thursday, 9 January 2014 at 21:35:45 UTC, qznc wrote:
> On Thursday, 9 January 2014 at 19:41:43 UTC, H. S. Teoh wrote:
>> because if D can get a GC
>> that's on par with Java's, then D can totally beat Java flat, 
>> since the
>> existence of value types greatly reduces the memory pressure 
>> on the GC,
>> so the GC will have much less work to do compared to an 
>> equivalent Java
>> program.
>
> Java will probably gain (something like) value types at some 
> point. Google for "packed objects", it provides similar gains 
> as value types.
>
> Hopefully, D gets a better GC first.

What's the status of all that? There were interesting talks at 
DConf 2013 about precise and concurrent GCs, and it seemed that 
work was going on to fold all that into the compilers, and that 
Walter/Andrei were ready to make changes to the spec and runtime 
if needed to support precise GC. All very encouraging.

Will DMD have a precise GC by the next DConf?

-- Brian



More information about the Digitalmars-d mailing list