|
|
|
|
|
by coldtea
3425 days ago
|
|
>Once the JIT engine kicks in, on "real" workloads, JVM beats the lights out of these carefully tuned interpreted languages on a CPU intensive workload. For one, JS is also JITed. Second we have video players and other tasks done on native JS, which would be impossibly slow on say Python. Second, JS can also be compiled -- there's asm.js and WebAssembly coming down the road. So, yes, it might be slower than the JVM, but not that slower for most practical purposes. |
|
But not all JITs are equal; that's like putting Brainfuck in the mix because it has a JIT. It is worth noting that JVM JIT has years of research behind it and being statically typed only adds to he benefits.
> So, yes, it might be slower than the JVM, but not that slower for most practical purposes.
Sure, my point is that the "not that slower" varies on lot depending on the kind of computation would run and having a notion that these dynamic languages are fast enough just perpetuates the misunderstanding that there exists free lunch...