really good talk about the Hotspot VM

rsw0x via Digitalmars-d digitalmars-d at puremagic.com
Thu Jul 16 15:31:43 PDT 2015


On Thursday, 16 July 2015 at 22:23:41 UTC, rsw0x wrote:
> On Thursday, 16 July 2015 at 21:04:33 UTC, Benjamin Thaut wrote:
>> On Thursday, 16 July 2015 at 17:52:33 UTC, rsw0x wrote:
>>> [...]
>>
>> Why? The only real difference is that a java vm generates the 
>> machine code during runtime while the D compiler generates the 
>> machine code ahead of time. The underlying implementation of 
>> the important GC parts (e.g. pointer discovery, safe points, 
>> etc) are still the same. And if you look for a state of the 
>> art GC, they only exist for VMs. I don't know any other 
>> compiled language with a GC you could compare against.
>
> If you have a way to implement self-healing code in D please 
> share it. Or forwarding pointers, or card marking, or 
> read/write barriers without abusing the MMU(which is dog slow,) 
> or...
>
> Any of these would require massive changes to D that will never 
> happen. But while everyone is tripping over themselves to try 
> and copy something that will *not* work in D, they refuse to 
> acknowledge what massive benefits D's GC can provide over 
> Java's.

And yes, I'm well aware that someone will get pedantic and preach 
to me about using page protection to implement these 
things(despite mentioning it,) but it is _slow_, and you will be 
SOL in a few years when nobody uses 4K pages anymore.


More information about the Digitalmars-d mailing list