4 ms·
Sorry that sounded as snarky as it obviously did. I thought I was just drawing an analogy. Anyways... The semantics of javascript are so different to Java (jav
by sharkbrainguy 18y ago
Sorry that sounded as snarky as it obviously did. I thought I was just drawing an analogy. Anyways...
The semantics of javascript are so different to Java (javascript functions are not like java functions everything is dynamic etc.) that you can't really expect the performance of javascript code to be comparable to Java just because it's hosted on the JVM, even if it did compile to Java byte code.
The Javascript equivalent would have to do so much more work than the Java version to support all the crazy crap you can do in javascript (ad hoc adding of properties to almost any object at any time).
- jamesbritt 18y agoThanks for the clarification.