this is pretty neat! I was wondering, are there any projects to transpile python to js, but targeting the server side? It would be interesting to port a flask application, for example, to run on node and benefit from the jit, or maybe use express and call flask through its wsgi interface.
PyPy.js: Python in the web browser
31–40 of 129 posts
Re: PyPy.js: Python in the web browser
#32 everything that can be written in JS will be written in JS!!Re: PyPy.js: Python in the web browser
#33Re: PyPy.js: Python in the web browser
#34This is pretty old, and hasn't seen an update in over a year. I never understand why links links this get posted with no discussion to start it off with. Also, wouldn't this be better implemented with WASM?
Maybe something like this? https://github.com/iodide-project/pyodide
Re: PyPy.js: Python in the web browser
#35I'd love there to be a client-side webapp development system using Python with feature and output parity to JavaScript. If it was a product, I would buy it.
Something like (client-side):
thread::send $::tcl-web::server -async {
do stuff
} placeToStoreResult
...
vwait placeToStoreResult
do stuff with result $placeToStoreResultRe: PyPy.js: Python in the web browser
#36Will web assembly have any effect on a future web based python interpreter? Is there one in the works?
Re: PyPy.js: Python in the web browser
#37Great project. My team used it for a live-coding Python notebook: https://github.com/inkandswitch/livebook#readme To my surprise it was faster than Jupyter / CPython for some tasks (e.g. loading and parsing large CSVs).
Shouldn't be too surprising, given how PyPy is generally faster than CPython by about x7-8 factor: http://speed.pypy.org/ I'd expect a much larger difference in tasks that are pure Python (loading a CSV is done primarily through the csv module, i.e. all the hot loops are in C).
Re: PyPy.js: Python in the web browser
#38this is pretty neat! I was wondering, are there any projects to transpile python to js, but targeting the server side? It would be interesting to port a flask application, for example, to run on node and benefit from the jit, or maybe use express and call flask through its wsgi interface.
Re: PyPy.js: Python in the web browser
#39Earlier quoted context omitted.
Shouldn't be too surprising, given how PyPy is generally faster than CPython by about x7-8 factor: http://speed.pypy.org/ I'd expect a much larger difference in tasks that are pure Python (loading a CSV is done primarily through the csv module, i.e. all the hot loops are in C).
Yes, but PyPy is usually compiled to machine code (and emits machine code), not to JS.
Re: PyPy.js: Python in the web browser
#40hello
>>>import json
>>>
Dope, everything I need.