<div dir="ltr"><div><div><div><div><div>Héllo,<br><br>I'm happy to announce the immediate avaibility of PythonScript a Python -> Javascript translator written in Python. So far it works... Break it online @ <a href="http://apppyjs.appspot.com">http://apppyjs.appspot.com</a><br>

<br><br></div>How it works ? Similarly to PyPy, it use a restricted version of Python called PythonJS. Along side this translator there is two other components PythonToPythonJS which translates (more) Python to PythonJS and a runtime library written in PythonJS that creates javascript objects to emulate classes, objects and methods. It's not compliant.<br>

<br></div>Other Python in the browser solutions are written in Javascript (skulpt, brython) or both (pyjaco, pyjs) and are difficult to work with. This implementation is fully written in Python with small snippets of Javascript.<br>

<br></div>Creating bindings is very easy, jQuery bindings are available. All the thing is not much tested.<br><br></div>Also if you are interested in this topic, you might be interested by the avaibility of asm.js in Firefox nightly. asm.js is a subset of JS, that can be compiled by the browser, thus making solutions such as emscripten and PyPy with an asm.js backend more interesting.<br>

</div><div><br><br></div>Cheers,<br><br>Amirouche<br></div>