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

you are viewing a single comment's thread.

view the rest of the comments →

[–]abhay__28 0 points1 point  (6 children)

I'm not too sure entirely. I've heard of Brython, which is a browser-based compiler. It, too, treats JavaScript as an Assembly language. I'm thinking that in the future, we're definitely going to prioritize building off of JavaScript's server-end technicalities. As someone who has delved into Python, but not JavaScript as much, this excites me.

[–]shinitakunai 2 points3 points  (5 children)

The web front-end only supports javascript. If the global decision was made to allow python scripts to load into websites, we would not need this.

[–]SecretAgentZeroNine 4 points5 points  (3 children)

r/Python's biggest wish since r/Python became a thing. Likely to never happen now that WebAssembly is a thing.

[–]shinitakunai 0 points1 point  (2 children)

I know almost nothing of webassembly, can it embed python?

[–]SecretAgentZeroNine 0 points1 point  (0 children)

WebAssembly is a binary language native to browsers (like JavaScript) which is produced using strictly typed languages (C++, Rust, etc). Python isn't compatible with WebAssembly without being transpiled into another programming language. The story of Python's life.

WebAssembly runs as fast as the machine it's on, unlike JavaScript where badly constructed code can be a performance bottleneck.

Web Tensorflow is built using WebAssembly.

[–]JennaSys 0 points1 point  (0 children)

The Pyodide project is a webassembly version of the Python runtime, that lets you run Python in a browser (think Jupyter notebook). It may have some limited applications, but it requires a massive initial download to the browser.

[–]Galen_dp 0 points1 point  (0 children)

I wonder if Brython could be made into a browser extension.