4 ms·
Worth noting: the demo is a WASM-compiled instance of this engine. I'm not sure, but I think this might be the first example of a fully featured, potentially pr
by gfodor 7y ago
Worth noting: the demo is a WASM-compiled instance of this engine. I'm not sure, but I think this might be the first example of a fully featured, potentially production-ready, JS VM sandbox running in the browser. (We're looking into safe ways to enable third party scripting of our own application, and such a sandbox would be a very nice tool to have in hand.)
- troygoode 7y agoYou should talk to the guys at Wasmer: https://wasmer.io/ https://wasmer.io/
- mythz 7y agoSafari's JavaScriptCore has been available on WASM for some time: https://wapm.io/package/jsc https://wapm.io/package/jsc Online demo of JSC.js https://mbbill.github.io/JSC.js/demo/index.html https://mbbill.github.io/JSC.js/demo/index.html
- apaprocki 7y ago2019+ will Atwood's law compiled to WASM. My co-worker Jason wrote a JS engine in Rust, Boa (https://github.com/jasonwilliams/boa https://github.com/jasonwilliams/boa) and demoed it via WASM in the browser at the recent JSConf.EU 2019: https://www.youtube.com/watch?v=_uD2pijcSi4 https://www.youtube.com/watch?v=_uD2pijcSi4
- dmix 7y agoCould these be able to do SSR for Vue from a Rust web server?
- nkozyra 7y agoWould a JS engine be able to do all the browser/dom work on its own? I'd think you'd need to bring along enough side cars that you might as well just use puppeteer
- gfodor 7y agoAh yup this was the only one I had seen before, and looks really promising! Didn't know about the others posted so thanks all!
- abecedarius 7y agoHave you looked at https://github.com/Agoric/SES https://github.com/Agoric/SES ? (Not production yet.)
- azakai 7y agoDefinitely not the first JS VM compiled to the browser. Aside from JSC as another comment mentioned, there was also js.js which is SpiderMonkey compiled to JS (around 2012!), https://github.com/jterrace/js.js/ https://github.com/jterrace/js.js/ This shouldn't be surprising - many VMs have been compiled to the Web, like Lua, Python (both CPython and PyPy!), etc., and JS is just another VM.
- jcelerier 7y agoQt has built for webassembly for quite some time and comes with an ES7 engine