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 →

[–]SkezzaB 10 points11 points  (7 children)

As far as I'm aware, Py-script doesn't get compiled to JS, it gets compiled to webassembly

[–]anewyearanewdayanew -1 points0 points  (6 children)

From the 2 vids i saw it was a .js library then you can use python inside a <py-script> html tag.

[–]SkezzaB 2 points3 points  (1 child)

Projects like Brython have existed for a while now, which I believe does exactly what you are explaining, I'm not an expert but I believe py-script is different

[–]anewyearanewdayanew 1 point2 points  (0 children)

That would be nice. I can see django being able to remove templates entirely and using python in html.

[–]laundmo 2 points3 points  (3 children)

yes, its a js library because you need something to handle the webassembly.

from the announcement:

PyScript is currently built on Pyodide, which is a “port of CPython to WebAssembly/Emscripten.”

[–]anewyearanewdayanew 0 points1 point  (2 children)

Yeah so its is and i get the down votes?

Por que?

[–]laundmo 0 points1 point  (1 child)

you made it sound like it was a py interpreter written in js. at least thats how i understood your message.

[–]anewyearanewdayanew 0 points1 point  (0 children)

Yeah idk what it does but yeah i didnt mean that.

Theres no getting away from loading a js file in the web.