Re:“Node.js is one of the worst things to happen to the soft...
by Jtsummers on Tuesday August 23, 2016 @02:41PM
(#12346298)
Perhaps for the use-case of node, being fully compiled could be a bit better. But I'm not convinced. Java has demonstrated (over two decades now) that initial compilation to machine code isn't essential for performant software (ok, less than two decades for hotspot JITs in Java). The cost for node is in startup time, but this is, like with Java, amortized over the life of the program. For a single-run executable, it's perhaps too costly (but we use truly interpreted languages for this as well, so depends on the task), but for a server, it's potentially pretty good.
[ Parent
| on HN ]
Re:“Node.js is one of the worst things to happen to the soft...
by marcosdumay on Tuesday August 23, 2016 @04:17PM
(#12347197)
Yes, that was for the specific case of Node. For web use, full compilation is a clear loss.
Java can make great use of JIT exactly because it's interpreted. When you make partial compilations, you lose a lot of JIT opportunities, and a lot of static optimization opportunities too. Yet, it looks like V8 attenuated this somehow, and got good performance anyway. Must have been a feat.