3 ms·
wait for js.rs
by agumonkey 8y ago
wait for js.rs
- crimsonalucard 8y agojs.hs
- aylmao 8y agots.hs
- throwaway413 8y agoUsername checks out.
- agumonkey 8y agothat's almost a SKI combinator
- ChrisSD 8y agoYou 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...
- tikhonj 8y agoIsn't that what Mozilla created Rust for in the first place?
- jayflux 8y agojs.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 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)
- O_H_E 8y agoFirefox's js engine is already built with rust