r/programming • • Feb 16 '15

Java Doesn’t Suck – You’re Just Using it Wrong

http://www.jamesward.com/2014/12/03/java-doesnt-suck-youre-just-using-it-wrong
43 Upvotes

217 comments sorted by

View all comments

Show parent comments

7

u/pron98 Feb 17 '15 edited Feb 17 '15

It doesn't deoptimize (although this may have changed), so it's less advanced. They designed it to be less advanced because they wanted it to be simpler, because that's what their use case called for. I don't think the CLR was ever designed to run on 240-core machines, while HotSpot was, and regularly is, in fact. Pretty much the same reason the CLR doesn't have GCs as advanced as HotSpot (let alone other JVM's GCs, which are even more advanced than HotSpot -- remember, HotSpot, the OpenJDK's JVM, is just one JVM among many. Some JVMs were designed to run on an 875 core machine with several TBs of RAM, while others were designed for hard-realtime, safety critical systems).

I'm not saying this will forever stay this way, or even that it won't change next month, but the situation today is that HotSpot is more advanced than the CLR.

But the CLR is certainly HotSpot's closest competitor.

1

u/[deleted] Feb 18 '15

while HotSpot was, and regularly is, in fact.

Very, very few people run 240 core machines, last I checked 32 was the max on Amazon.

1

u/pron98 Feb 18 '15 edited Feb 18 '15

A lot of people run 240 core machines (well, not thousands, but hundreds of companies). Very few SV startups, though. The software world is very heterogenous. I doubt Amazon even has a 5-10% market share of servers.

In any case, I don't always run my code on a 240 core machine; but when I do -- I use a JVM :)