Re:Extending web applications with WebAssembly and Python
by pininja on Wednesday May 10, 2023 @12:58PM
(#35890076)
Is there a project to package up static python modules to run in-browser using one of their web assembly runtimes?
[ Parent
| on HN ]
Re:Extending web applications with WebAssembly and Python
by robby_w_g on Wednesday May 10, 2023 @01:55PM
(#35890884)
I think Pyodide is what you want.
Re:Extending web applications with WebAssembly and Python
by baudaux on Wednesday May 10, 2023 @05:34PM
(#35893840)
Sounds great, I will put it in my new operating system running in the browser https://extendedmachine.com.
Re:Extending web applications with WebAssembly and Python
by robby_w_g on Thursday May 11, 2023 @12:22AM
(#35897443)
Not sure if you’re just trying to advertise your project, but I wouldn’t use Pyodide in that case. I’d personally rather use the tool linked in the OP article for something like an OS in the browser
Re:Extending web applications with WebAssembly and Python
by baudaux on Thursday May 11, 2023 @03:47AM
(#35899087)
In fact it seems that WASI build environment is not supporting asynchronous syscalls. I think it will be needed for integrating Python apps in a web browser
Re:Extending web applications with WebAssembly and Python
by ereslibre on Wednesday May 10, 2023 @03:05PM
(#35891942)
The webassembly-language-runtimes is focused on providing WASI-based language interpreters, what would require a WASI polyfill at the browser level (https://wasi.dev/polyfill/) and (https://github.com/bjorn3/browser_wasi_shim).
Pyodide is certainly another option, but is emscripten based, not based in webassembly-language-runtimes or WASI.