Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.)


2019+ will Atwood's law compiled to WASM.

My co-worker Jason wrote a JS engine in Rust, 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


Ah yup this was the only one I had seen before, and looks really promising! Didn't know about the others posted so thanks all!


Could these be able to do SSR for Vue from a Rust web server?


Would 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


Definitely 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/

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.


Safari's JavaScriptCore has been available on WASM for some time:

https://wapm.io/package/jsc

Online demo of JSC.js

https://mbbill.github.io/JSC.js/demo/index.html


You should talk to the guys at Wasmer: https://wasmer.io/


Qt has built for webassembly for quite some time and comes with an ES7 engine


Have you looked at https://github.com/Agoric/SES ? (Not production yet.)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: