3 ms·
> one of the fastest scripting languages Isn't nodejs faster
by fctorial 7y ago
> one of the fastest scripting languages
Isn't nodejs faster
- iscoelho 7y agoLuaJIT is considerably faster in pure CPU benchmarks than JavaScript. It is also faster than C in some cases unless you are hand optimizing your assembly. See: https://gist.github.com/spion/3049314 https://gist.github.com/spion/3049314 https://en.sfml-dev.org/forums/index.php?topic=18260.15 https://en.sfml-dev.org/forums/index.php?topic=18260.15
- rplnt 7y agoYour quote doesn't even say it's the fastest?
- pansa2 7y agoDepends what sort of code you’re running. LuaJIT is a tracing JIT - it’s great for code which runs the same way over-and-over, but has trouble with unpredictable branches. V8 does a much better job than LuaJIT for things like a loop containing an if/else with a 50:50 condition. Overall, the fastest dynamic language JITs are probably V8 and other JavaScript runtimes - it’s worth noting that none of these use LuaJIT-style tracing.
- samatman 7y agoI wish Mike Pall had stuck around long enough to land hyperblock scheduling :/ https://github.com/LuaJIT/LuaJIT/issues/37/ https://github.com/LuaJIT/LuaJIT/issues/37/ That and the quad-color garbage collector would ensure LuaJIT's dominance for many years to come. The quad-color is well described, and someone might successfully implement it at some point; I doubt there's another human alive who could implement hyperblock scheduling. I'd love to be wrong.
- ksec 7y agoAt least he is still on LuaJiT mailing list. Does anyone know what he is currently working on ?