News for hackers. Stuff that matters.
Re:Is Scala really Faster than Java? by vetler on Tuesday June 21, 2011 @08:42AM (#2678489)
Also, Scala is not "built on" the Java language, as far as I know. It compiles to bytecode, just as the Java language does.
Re:Is Scala really Faster than Java? by gaius on Tuesday June 21, 2011 @08:45AM (#2678500)
Yep, at this point in history Java-the-language and Java-the-VM are related in name only.
Re:Is Scala really Faster than Java? by thomaslangston on Tuesday June 21, 2011 @09:11AM (#2678586)
Could you elaborate? It is my understanding that 99.9% of Java syntax is valid Scala syntax. How does that correlate with your statement?
Re:Is Scala really Faster than Java? by JoachimSchipper on Tuesday June 21, 2011 @09:15AM (#2678597)
The compilation path is Scala -> JVM bytecode [-> x86 assembly], not Scala -> Java -> JVM bytecode [-> x86 assembly]. At least, that's what I think your parent comment was saying.
Re:Is Scala really Faster than Java? by ominous_prime on Tuesday June 21, 2011 @11:09AM (#2679033)
I wonder where people are getting this (you're not the first person I've heard this from)? The syntax is not compatible at all. You can write programs in the same style, e.g. object oriented with inheritance, global state, side effects, and so on; but the similarity ends there.
Re:Is Scala really Faster than Java? by msmith on Tuesday June 21, 2011 @10:38AM (#2678894)
No, Java and Scala syntax are quite different. I can really only think of a few cases where they share syntax.
Re:Is Scala really Faster than Java? by eevilspock on Tuesday June 21, 2011 @11:20AM (#2679089)
Agreed. Likewise the article is wrong when it says Java is built "on top" of C/C++. It compiles to JVM bytecode which is JIT compiled to native machine code.

So its whole "thinking logically" premise is broken.