News for hackers. Stuff that matters.
Re:Performance comparison of Functional C++ 11, Java 8, Java... by georgemcbay on Thursday June 05, 2014 @09:52PM (#7855803)
There was certainly a lot of talk within the Java development community about how Java was going to meet or overtake native code as the HotSpot VM matured. See, for example (from 1998):

http://www.artima.com/designtechniques/hotspotP.html

"According to Sun Microsystems, the Hotspot virtual machine, Sun's next-generation Java virtual machine (JVM), promises to make Java "as fast as C++.""

Re:Performance comparison of Functional C++ 11, Java 8, Java... by kbenson on Thursday June 05, 2014 @09:58PM (#7855819)
I wonder how well modern JVMs compare to C++ compilers from 1998?
Re:Performance comparison of Functional C++ 11, Java 8, Java... by cbsmith on Thursday June 05, 2014 @10:13PM (#7855867)
I'd say that statements like that are subject to some degree of interpretation. It's hard for one runtime to be definitively faster than another runtime. It is, however, quite possible for one runtime to have cases where it is better, cases where it is worse, and cases where it is equivalent such that it is reasonable to say that it is "as fast as" the other. Java tends to be a bit slower than C++ still, but the differences between it and "as fast as" are trivial enough that a number of HFT systems, for example, are written in Java.
Re:Performance comparison of Functional C++ 11, Java 8, Java... by kbenson on Thursday June 05, 2014 @10:25PM (#7855897)
While I think the comment here leaves that open as a possibility, the second sentence of the article it's from makes it pretty clear. "Specifically, Sun says that a platform-independent Java program delivered as bytecodes in class files will run on Hotspot at speeds on par with an equivalent C++ program compiled to a native executable."

There's not a lot of wiggle room there.

Re:Performance comparison of Functional C++ 11, Java 8, Java... by jdmichal on Friday June 06, 2014 @03:19AM (#7856580)
Considering that I can get different performance for the same C++ program simply by using different compiler, or even different compiler options, I'd say that there's a lot of wiggle room.
Re:Performance comparison of Functional C++ 11, Java 8, Java... by cbsmith on Friday June 06, 2014 @12:46AM (#7856251)
Actually, there is a country mile of wiggle room there. It doesn't have to be true of all programs for one, and "on par with" gives you plenty of wiggle room.
Re:Performance comparison of Functional C++ 11, Java 8, Java... by mtdewcmu on Thursday June 05, 2014 @10:02PM (#7855831)
There's nothing wrong with trying to sell your product. But I hope Sun's salesmanship doesn't continue to deceive people.