News for hackers. Stuff that matters.
Re:Brython - Python to Javascript translator by kelvin0 on Saturday December 15, 2012 @12:29PM (#4925716)
OK, how about :

1) getting Python ==> LLVM bytecode

2) then using emscripten (https://github.com/kripken/emscripten/wiki) to run LLVM in browser?

An option to perform the first step seems to be : http://code.google.com/p/py2llvm/

Or 'simply' getting CPython ported on emscripten?

Any opinions on this suggestion?

Re:Brython - Python to Javascript translator by muyuu on Saturday December 15, 2012 @05:01PM (#4926472)
I've seen that done already, but the resulting Python interpreter has no visibility of the DOM or access to the browser. You have basically a Python console, which is quite useless if what you want is to substitute Javascript.
Re:Brython - Python to Javascript translator by zever on Saturday December 15, 2012 @05:44PM (#4926569)
Just for reference, there's an example of CPython compiled to JavaScript using Emscripten running in the browser at http://syntensity.com/static/python.html