Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A fast interpreter is not an easy task, but it is still much easier than a jit or aot compiler that provides similar performance.

Case in point - LuaJIT2's interpreter is faster than LuaJIT1 compiler (LuaJIT2's compiler is significantly better than either) - and the interpreter is much simpler, although neither is in no way simple.

Writing a good compiler for dynamic language is extremely hard - PyPy took 6 years to reach speed parity with the Python interpreter (and has been improving since), Python2C and UnladenSwallow didn't manage to improve on it in any significant way. V8 / JaegerMonkey are super-complex JITs that seem - at this point in time - to be comparable with the performance of LuaJIT2's interpreter.

Both LuaJITs were written by Mike Pall, single handedly as far as I can tell.

If you read Mike Pall (mikemike on reddit, and whatever he puts up on the lua-list and luajit.org), you'll appreciate interpreters more.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: