News for hackers. Stuff that matters.
Re:Goro – An implementation of PHP written in Go by ChrisSD on Monday November 26, 2018 @07:34PM (#18538207)
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.
Re:Goro – An implementation of PHP written in Go by mattdeboard on Monday November 26, 2018 @07:52PM (#18538311)
Yeah buddy. https://servo.org/

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

Re:Goro – An implementation of PHP written in Go by jayflux on Monday November 26, 2018 @08:05PM (#18538399)
Servo uses spidermonkey
Re:Goro – An implementation of PHP written in Go by mattdeboard on Monday November 26, 2018 @08:25PM (#18538511)
Oh, I see. Thanks. I assumed the JS engine was written in Rust!
Re:Goro – An implementation of PHP written in Go by earenndil on Monday November 26, 2018 @09:53PM (#18538936)
Spidermonkey will probably never get rewritten in rust, as the safety guarantees would be precluded by JIT.
Re:Goro – An implementation of PHP written in Go by bpicolo on Monday November 26, 2018 @10:16PM (#18539031)
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

Re:Goro – An implementation of PHP written in Go by nicoburns on Monday November 26, 2018 @08:40PM (#18538591)
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...