Jan 8, 2013

Python to Javascript converters

https://github.com/buchuki/pyjaco

http://pyjs.org/
pyjamas/bin/pyjscompile -o output.js source.py
--strict: this preserves maximum Python semantic compatibility (up to the point of including a copy of the source file to provide tracebacks exactly like Python does);
-O: this tries to balance Python compatibility with speed: turns off function argument checking, attribute checking, bound methods, and using classes for numbers.
--stupid-mode: produces the minimal possible code, at the cost of switching Python semantics with JS semantics.

No comments: