4 ms·
Is there a project to package up static python modules to run in-browser using one of their web assembly runtimes?
by pininja 3y ago
Is there a project to package up static python modules to run in-browser using one of their web assembly runtimes?
- robby_w_g 3y agoI think Pyodide is what you want. https://pyodide.org/en/stable/ https://pyodide.org/en/stable/
- baudaux 3y agoSounds great, I will put it in my new operating system running in the browser https://extendedmachine.com https://extendedmachine.com.
- robby_w_g 3y agoNot 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
- baudaux 3y agoIn 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
- ereslibre 3y agoThe 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/ https://wasi.dev/polyfill/) and (https://github.com/bjorn3/browser_wasi_shim https://github.com/bjorn3/browser_wasi_shim). Pyodide is certainly another option, but is emscripten based, not based in webassembly-language-runtimes or WASI.