Why Java (server VM) is faster than D?

Justin Whear via Digitalmars-d digitalmars-d at puremagic.com
Mon Aug 3 09:35:03 PDT 2015


Java being fastest at running Java-style code is not too surprising.  My 
guess is that Java is "hotspot" inlining the calls to `bar`, getting rid 
of the dynamic dispatch overhead.  I think that for real systems D will 
generally beat out Java across the board, but not if the D version is a 
straight up transliteration of the Java--expect Java to be the best at 
running Java code.


More information about the Digitalmars-d mailing list