3 ms·
Has anyone gotten this to run in a wasm runtime on the server? At some point I saw that wasmer had a fork adding server support, but it was out of date. Main ch
by TechBro8615 5y ago
Has anyone gotten this to run in a wasm runtime on the server? At some point I saw that wasmer had a fork adding server support, but it was out of date. Main challenge seems to be assumptions about running in the browser?
My motivation is that I’d like to run sandboxed Python scripts on the server, in a wasm runtime embedded in C.
- qbasic_forever 5y agoWhy not just use an OCI container and runtime (docker, containerd, crun, etc) or even systemd-nspawn?
- TechBro8615 5y agoBecause it’d be cool if it didn’t require OS level sandboxing. AFAIU sandboxed embedded Python has been a bit of a Holy Grail for a long time. So if wasm gives an easy answer for it, that would be sweet!
- rthz 5y agoWork on Node.js support is in progress in Pyodide. And as you mentioned there is also the Wasmer build that could be updated.
- TechBro8615 5y agoHow does Node play into this? Can I embed a v8 engine in my C program and use pyodide, or do I need to bring Node along too? Does the compatibility layer depend on any Node-specific concepts like the event loop or garbage collector? (I think maybe V8 does its own GC? This just shows how thin my experience is with this topic.)