Hacker News new | ask | show | jobs
by agumonkey 2762 days ago
wait for js.rs
4 comments

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.
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...
Isn't that what Mozilla created Rust for in the first place?
js.rs itself wasn’t created by Mozilla, it’s also died now. I’ve been doing a rewrite of it here: https://github.com/jasonwilliams/boa

Rust was mainly developed alongside Servo which is more the rendering Engine, the JS side of it remained in C (spidermonkey)

js.hs
ts.hs
Username checks out.
that's almost a SKI combinator
Firefox's js engine is already built with rust