Re:Google paper comparing performance of C++, Java, Scala, a...
by wtracy on Friday June 03, 2011 @03:40AM
(#2615505)
Maybe I'm missing something, but I'm amazed to see Scala beating out Java.
[ Parent
| on HN ]
Re:Google paper comparing performance of C++, Java, Scala, a...
by jshen on Friday June 03, 2011 @12:39PM
(#2617008)
Regarding the java version, "Note that Jeremy deliberately refused to optimize the code further, many of the C++ optimizations would apply to the Java version as well"
Re:Google paper comparing performance of C++, Java, Scala, a...
by gaius on Friday June 03, 2011 @06:40AM
(#2615811)
Why? Remember that at this point in history, Java-the-language and Java-the-VM are related in name only.
Re:Google paper comparing performance of C++, Java, Scala, a...
by jbooth on Friday June 03, 2011 @02:41PM
(#2617514)
From a performance perspective, the VM is what dominates and Java operates closer to the VM assumptions about what it's going to run.
If you read the paper, you'll note that the Scala author significantly changed the structure of the algorithm to conform with the way Scala does things (recursion, etc). So it's sort of an apples-to-oranges comparison as far as Scala's concerned, too bad they couldn't write ugly Scala code that would give a better comparison.