Tuesday, February 11, 2014

PythonJS to Lua

I recently refactored PythonJS into a better meta-translator and added new backends for: CoffeeScript and Lua. The regression tests now include benchmarks that generate the bar graphs below. I also merged the Lua.js translator to see what happens when you translate Python to Lua and then to JavaScript, the result is slower than PythonJS direct to JavaScript. The Dart backend has the highest performance. LuaJIT also performs well with about half the Pystones of CPython.

Recursive Fibonacci

(time in seconds, less is better)


(time in seconds, less is better)

No comments:

Post a Comment