Hacker News new | ask | show | jobs
by ChrisSD 2762 days 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.
2 comments

Yeah buddy. https://servo.org/

Also there is already amazing work for Rust and WASM https://rustwasm.github.io/book/

Servo uses spidermonkey
Oh, I see. Thanks. I assumed the JS engine was written in Rust!
Spidermonkey will probably never get rewritten in rust, as the safety guarantees would be precluded by JIT.
That'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...

https://github.com/nbp/holyjit

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