Live data from Hacker News

PyPy.js: A fast, compliant Python implementation for the web

pypyjs.org

1–10 of 144 posts

Re: PyPy.js: A fast, compliant Python implementation for the web

#3
Besides the big download size, it does several things very "right": Full Python data model, access to the full javascript model (albeit slowly currently).

Also PyPy is the right choice as the basis for this (as opposed to CPython) because its ecosystem is generally more "pure" Python than CPython's. C Extensions would only get in the way.

Re: PyPy.js: A fast, compliant Python implementation for the web

#5

Besides the big download size, it does several things very "right": Full Python data model, access to the full javascript model (albeit slowly currently). Also PyPy is the right choice as the basis for this (as opposed to CPython) because its ecosystem is generally more "pure" Python than CPython's. C Extensions would only get in the way.

it's systematically translating the PyPy interpreter to the Javascript, so it has to get semantics right. However I'm not sure if the drawbacks can be addressed in the current JS model, notably: very slow warmup, huge download size (that's primarily PyPy fault though), the lack of good JS access.

Re: PyPy.js: A fast, compliant Python implementation for the web

#8
post #6
post #4

So does this mean that since I'm better at Python than Javascript, I can now use this to make my web frontends in Python? Because that would be pretty sweet.

weren't you already able to do it with pyjamas/pyjs?

Quite possibly. To be honest I never looked into it.

Re: PyPy.js: A fast, compliant Python implementation for the web

#9
I watched the presentation in Pycon 2015[1], and I really liked how honest/aware they are about the challenges and tradeoffs (so far, the performance it's pretty bad compared to javascript, and the download size is still an issue). At the end is answered why python can't be directly included in Firefox or other browsers(the presenter/main developer works for Mozilla)

[1]https://www.youtube.com/watch?v=PiBfOFqDIAI

Re: PyPy.js: A fast, compliant Python implementation for the web

#10
post #7
post #4

So does this mean that since I'm better at Python than Javascript, I can now use this to make my web frontends in Python? Because that would be pretty sweet.

I had the same thought. "this is cool. but what should I do with it?"

Embed it in browsers as a migration path from JS to Python
Post reply on HN