News for hackers. Stuff that matters.
Re:Goro – An implementation of PHP written in Go by agumonkey on Monday November 26, 2018 @07:13PM (#18538058)
wait for js.rs
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...
Re:Goro – An implementation of PHP written in Go by tikhonj on Monday November 26, 2018 @08:06PM (#18538402)
Isn't that what Mozilla created Rust for in the first place?
Re:Goro – An implementation of PHP written in Go by jayflux on Monday November 26, 2018 @08:10PM (#18538439)
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)

Re:Goro – An implementation of PHP written in Go by crimsonalucard on Monday November 26, 2018 @07:17PM (#18538090)
js.hs
Re:Goro – An implementation of PHP written in Go by aylmao on Monday November 26, 2018 @07:32PM (#18538197)
ts.hs
Re:Goro – An implementation of PHP written in Go by throwaway413 on Monday November 26, 2018 @08:19PM (#18538482)
Username checks out.
Re:Goro – An implementation of PHP written in Go by agumonkey on Tuesday November 27, 2018 @04:33AM (#18540869)
that's almost a SKI combinator
Re:Goro – An implementation of PHP written in Go by O_H_E on Monday November 26, 2018 @08:09PM (#18538424)
Firefox's js engine is already built with rust