Live data from Hacker News

PyPy.js: Python in the web browser

pypyjs.org

21–30 of 129 posts

Re: PyPy.js: Python in the web browser

#21

Earlier quoted context omitted.

> This is pretty old, and hasn't seen an update in over a year So pretty much like every Python project then. What's happening to the Python community?

It's stable and mature? If you've been writing JavaScript your whole career you might not know what that looks like.

Such a snarky response, but I can't deny it. I see a JS package that hasn't been updated in a year and I expect that it won't even build with my environment because webpack evolution. I see a python package that hasn't been updated in a year and it doesn't faze me. Not a whole lot that can break in terms of building and integration with my python project.

Re: PyPy.js: Python in the web browser

#24
post #8
post #4

Earlier quoted context omitted.

Yeah weird. I would expect Python2 to be dying off more by now. Wonder if we're headed to an environment where there's essentially 2 separate languages as Python 3 continues to change and grow?

I think we're roughly already there. I think the pivotal moment where Python 2 could've died out rapidly passed and they kept officially supporting it for too long.

As far as I know, permanent EOL for Python 2 is still Jan 1, 2020 (https://pythonclock.org/). Python 3 was first released December of 2008. That's an awfully long tail.

Re: PyPy.js: Python in the web browser

#26
post #3

Will web assembly have any effect on a future web based python interpreter? Is there one in the works?

Someone posted this on another thread: https://github.com/iodide-project/pyodide

What I gather is that it's compiling CPython to WASM and ships it along with some other utilities. It looks pretty cool.

Re: PyPy.js: Python in the web browser

#27

Earlier quoted context omitted.

> This is pretty old, and hasn't seen an update in over a year So pretty much like every Python project then. What's happening to the Python community?

It's stable and mature? If you've been writing JavaScript your whole career you might not know what that looks like.

Its front page describes it as an experiment, and it has 98 open bugs. Both PyPy and Python have released new versions since the last update of this project, so it's at least missing important updates.

Re: PyPy.js: Python in the web browser

#29

Great 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

#30
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.
Post reply on HN