Live data from Hacker News

Goro – An implementation of PHP written in Go

github.com

61–70 of 135 posts

Re: Goro – An implementation of PHP written in Go

#61
post #56

Earlier quoted context omitted.

Facebook forked PHP to make Hack to try and make PHP usable. Yahoo is yahoo. Wikipedia wouldn't have the resources to change anything. Google has a wiki page for their developers telling them to never ever use PHP for any google project.

Those facebook improvements made there way back into the core. Google might be able to move quicker if they allowed php. Facebook killed them in social. The type of products google can offer is limited by this decision.

Not sure PHP is the reason reason why Google failed at competing at Social

Re: Goro – An implementation of PHP written in Go

#62
post #50

Earlier quoted context omitted.

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

Re: Goro – An implementation of PHP written in Go

#65
post #15

> PHP is a nice language but is having trouble keeping up with modern languages It's only "having trouble" because it can't change its API from month to month to match whatever's in vogue. A majority of the web still runs on some variant of PHP, and that guarantees that it's not dying anytime soon. More broadly, it seems the author wants to create a version of PHP that's not focussed on web requests, which is sort of…

I might even go so far as to say that the contention isn't true. In fact, these days I tend to assume the word "modern" is a developer thought-smell. Unless its user can explain what they mean by modern, it's best to assume it's a set of personal aesthetics informed largely by available fashions/habits in the first half decade of a developer's career (which can be fine, it's just the term modern carries waaay more weight than it should).

( -smell can also be a thought-smell, but that's another discussion.)

I'd guess the author means "modern languages have a reasonably simple concurrency paradigm supported by language or standard library primitives," which would be about the only reason other than the interest in the task itself I can imagine reimplementing PHP in Go. I wouldn't buy that definition myself (and as the parent says, it's less clear whether it's the right fit for PHP) but it's a place to start in addressing the relative merits the project might actually be claiming.

Re: Goro – An implementation of PHP written in Go

#67
post #63

Earlier quoted context omitted.

wait for js.rs

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)

Re: Goro – An implementation of PHP written in Go

#68
post #60
post #42

Earlier quoted context omitted.

Probably the repetition of if err != nil {} You get used to that pretty quickly in Go, but it still looks messy to a lot of people.

And so it's clear to others, this probably the worst possible way for a language to go about implementing error handling (maybe aside from just not having any mechanism outright and terminating). But alas, those are the choices that the Go language made.

Is it really though? I've tried out Exceptions in most languages and Go's error handling stuck out to me as the first one that is clear what it does, which of course is the mantra of the language.

Re: Goro – An implementation of PHP written in Go

#69

Earlier quoted context omitted.

It just takes a long time for certain things to die.

That argument can be made from the other side about golang being artificially kept alive by Google. The comparison isn't on equal footing.

Is golang dying? Is it losing steam at all?
Post reply on HN