back

by theanonymousone·2y ago·view on hn ↗
I have played a bit with Pyodide and it is very promising for client-side web programming, particularly because of the philosophy similarities between Python and JavaScript, which make interaction more seamless.

Being interpreted is a hindrance, though: The interpreter itself is at least a few megabytes in size, constraining wider usability (IMO).

I'm enthusiastically waiting for solutions to "compile" Python code to WASM, instead of running it with a WASM-compiled interpreter. LPython[0] promises so, but it's still in alpha stage.

[0] https://lpython.org/

1 comments
This approach would allow you to run a pre-built Python program in the browser, but not change the code and re-run it.

This kind of defeats the idea of interactive code snippets in the docs (but might still be useful in other use cases).

Yes of course. I wasn't talking about the code snippet use case.