3 ms·
OK, how about : 1) getting Python ==> LLVM bytecode 2) then using emscripten (https://github.com/kripken/emscripten/wiki https://github.com/kripken/emscripten
by kelvin0 14y ago
OK, how about :
1) getting Python ==> LLVM bytecode
2) then using emscripten (https://github.com/kripken/emscripten/wiki 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/ http://code.google.com/p/py2llvm/
Or 'simply' getting CPython ported on emscripten?
Any opinions on this suggestion?
- muyuu 14y agoI'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.
- zever 14y agoJust for reference, there's an example of CPython compiled to JavaScript using Emscripten running in the browser at http://syntensity.com/static/python.html http://syntensity.com/static/python.html