News for hackers. Stuff that matters.
Re:Goro – An implementation of PHP written in Go by krapp on Monday November 26, 2018 @07:10PM (#18538024)
One of the most "hip to hate" languages implemented in one of the most "hip to love" languages...
Re:Goro – An implementation of PHP written in Go by keithnz on Monday November 26, 2018 @07:35PM (#18538217)
I thought Go was a hip to hate language also. Seems to get a bunch of grief about "missing" things. I quite like it but haven't used much beyond toy projects.
Re:Goro – An implementation of PHP written in Go by thefounder on Monday November 26, 2018 @07:36PM (#18538227)
Go after PHP is therapy
Re:Goro – An implementation of PHP written in Go by arendtio on Monday November 26, 2018 @08:27PM (#18538528)
Well, the difference is that the hate is coming from different directions. PHP is hated by nearly everyone except pure pragmatist. Go is hated by somewhat experienced programmers which find the absence of certain features inconvenient.

That said, I like them both somehow. PHP was the first programming language I learned beyond simple hello-world like programs (today, I use it mostly for prototypes only) and Go is my language of choice for performance-intensive tools.

In the end, I have not met any language yet, you can not hate. Smalltalk is beautiful, but can't do arithmetics properly (e.g., `1 + 2 * 3` == 9). Lisp lets you write correct programs, but breaks your parenthesis key. C++ can be fast, but actually doing it is hard and have you ever solved one of those template-error riddles?

Re:Goro – An implementation of PHP written in Go by earenndil on Monday November 26, 2018 @09:52PM (#18538930)
> Smalltalk is beautiful, but can't do arithmetics properly (e.g., `1 + 2 * 3` == 9). Lisp lets you write correct programs, but breaks your parenthesis key

Are these actually problems? Just things you have to know, and get used to.

Re:Goro – An implementation of PHP written in Go by arendtio on Tuesday November 27, 2018 @06:02AM (#18541289)
So what are problems then? I mean, we live in a world where we have NP-Hard problems every day, but once you get used to being satisfied with a 95% correct solution it is no problem living in this world.

So yes, you can get used to such things and in the case of Smalltalk, it would actually harm the beauty of the language to evaluate that expression differently. Nevertheless, you could also argue that a language which doesn't respect one of the early rules every human learns in school isn't best for being used by humans ;-)

So let's just say it is not binary (just 'yes' and 'no') and PHP is just a language which happens to bring a few more unnecessary challenges for the developer (like the inconsistent function names).

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
Re:Goro – An implementation of PHP written in Go by triodan on Monday November 26, 2018 @09:22PM (#18538793)
> one of the most "hip to love" languages

That's not Rust.