4 ms·
This looks like it's done server side. How is it sandboxed, I wonder? Would it be feasible to do it with emscripten instead?
by scanr 11y ago
This looks like it's done server side. How is it sandboxed, I wonder? Would it be feasible to do it with emscripten instead?
- cmrx64 11y agohttps://github.com/thestinger/playpen https://github.com/thestinger/playpen (whitelist: https://github.com/rust-lang/rust-playpen/blob/master/whitelist https://github.com/rust-lang/rust-playpen/blob/master/whitel...) It'd probably be feasible, but a royal pain to setup.
- chrismorgan 11y agoIt would require running rustc through emscripten, which is not feasible; as ELF binaries and .so objects and .rlib files, it’s currently in the vicinity of 150MB, of which 100MB is binaries which I expect would be somewhat larger in JavaScript.