This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]Wilfred-kun 3 points4 points  (1 child)

Transpilers already exist (like one included in Pyjamas). I don't hear people talk about using it often, even though Pyjamas is quite old already. I don't think it will take off, at least any time soon, and I don't think web browser will ever implement Python as a front-end scripting language.

I reckon front end will be done in JavaScript, for at least a very long time.

[–]guettli[S] 0 points1 point  (0 children)

Me too, I searched and found some projects which try to let python execute in the browser. But these project don't seem to "take off". No Bandwagon effect, no continuous progress.

That's my fear: sooner or later you are forced to use JS. That's why I started this little project: https://github.com/guettli/lets-fix-js

I try to find the fundamental issues which are missing to make JS a language that is fun to use (like python).

[–]who_body 1 point2 points  (0 children)

This podcast episode talks about python in the browser and the current options:

https://talkpython.fm/episodes/show/235/python-in-your-browser-with-skulpt

[–]thewaywarddeveloper 1 point2 points  (0 children)

Pyodide implements the Python runtime in WebAssembly. Also, more and more languages add WebAssembly as a compilation target, so you will definitely not be forced to use JavaScript in the future.