3 ms·
You joke but that's very likely to happen eventually if it hasn't already. At the very least I wouldn't be surprised if Mozilla made a prototype JS engine in Ru
by ChrisSD 8y ago
You joke but that's very likely to happen eventually if it hasn't already. At the very least I wouldn't be surprised if Mozilla made a prototype JS engine in Rust.
- mattdeboard 8y agoYeah buddy. https://servo.org/ https://servo.org/ Also there is already amazing work for Rust and WASM https://rustwasm.github.io/book/ https://rustwasm.github.io/book/
- jayflux 8y agoServo uses spidermonkey
- mattdeboard 8y agoOh, I see. Thanks. I assumed the JS engine was written in Rust!
- earenndil 8y agoSpidermonkey will probably never get rewritten in rust, as the safety guarantees would be precluded by JIT.
- bpicolo 8y agoThat's not entirely the case - there's definitely research / work being done in this area. https://blog.mozilla.org/javascript/2017/10/20/holyjit-a-new-hope/ https://blog.mozilla.org/javascript/2017/10/20/holyjit-a-new... https://github.com/nbp/holyjit https://github.com/nbp/holyjit
- deleted 8y ago[deleted]
- nicoburns 8y agoI guess it's less likely for JS as JS already has 3? 4? 5? highly optimised runtimes, and you don't get too much value out of Rust's safety guarantees if you're JITing code anyway...