by cookiecaper · 10y ago · 0 comments
This is great. I sincerely hope the PyPy developers see the light soon and start focusing on Python 3.x support, and that this money can help get it done. Haven't written a Python 2 app for something like 4 years? Python 3 is mature now.
I also sincerely hope that this portends Firefox bundling a Python runtime with the browser, providing a DOM API, and letting sites provide client-side scripts in Python. JavaScript has been allowed to reign for much too long.
I don't think the lack of Python 3 support was reflective of a value judgment about Python 3, so much as that most of the companies willing to fund PyPy development so far are still on Python 2, and were more interested in funding other kinds of work (performance, numpy, cpython extension compatibility, etc.)
> I also sincerely hope that this portends Firefox bundling a Python runtime with the browser, providing a DOM API, and letting sites provide client-side scripts in Python. JavaScript has been allowed to reign for much too long.
This strikes me as extremely unlikely. There's zero appetite for introducing non-standard language runtimes into browsers these days as far as I can tell. But I guess you never know.
Anyway, WebAssembly [0][1] is coming through the pipeline with the goal of opening a common browser runtime to more languages. Instead of Mozilla incorporating a Python runtime into Firefox, a Python runtime will eventually be able to target WebAssembly. For Python specifically, the work in progess on builtin GC support should help a lot [2].
As for the donation to PyPy, Mozilla uses Python heavily in internal tooling so I imagine that's part of the motivation.
[0] https://webassembly.github.io/
So I'm not sure it will be something you will want to use in a lot of places.
Not going to happen. Web Assembly is the one "alternate runtime" (which isn't really an alternate runtime) that is ever going to exist.
I expect WebASM to eventually get DOM bindings. At that point you'll compile your Python into WebASM.
https://github.com/WebAssembly/design/blob/master/GC.md
Interoperability with GC systems is a prerequisite and will come down the road from the initial ("MVP") release.