by romanovcode · 9y ago · 0 comments
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...
Compared to what? Python? Ruby? PHP?
None of which can do "parallelism properly" and all of which are from 2 times to an order of magnitude slower than v8 (Node's engine).
Even Go can't do parallelism properly -- it's model is full of manual handling of deadlocks and races. Erlang, yes.