Live data from Hacker News

Goro – An implementation of PHP written in Go

github.com

41–50 of 135 posts

Re: Goro – An implementation of PHP written in Go

#42
post #36
post #19

A perfect example of error handling in go in the wild: https://github.com/MagicalTux/goro/blob/3cb3dfe0eef910c03e41... More php interpreters is of course nice.

I don't understand. I have a C background. What is wrong with that?

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.

Re: Goro – An implementation of PHP written in Go

#44
post #40

Earlier quoted context omitted.

pre-alpha, bummer. Over the years I've had quite a few friends and family ask me to arrange hosting of their wordpress sites. Generally I refuse because wordpress has a long history of security problems. An alternate interpreter with sandboxed execution could solve a lot.

I don't see what it fixes. You're just replacing an interpreter and in all likelihood bundling a web server. PHP 7 is a pretty solid language. I don't like WordPress at all, but there's so much cruft, legacy nonsense and plugin garbage that you won't win that battle.

well obviously we won't win the performance battle, and it may be impossible to protect the database and user data, but sandboxed execution with a virtual filesystem could protect the overall system, keep it from joining botnets and sending spam, etc.

Re: Goro – An implementation of PHP written in Go

#45
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…

A majority of the web runs on one of a handful of programs that use php...WordPress, Magento...

While true, there is still a tremendous amount of the web that is powered by php and not using WordPress or Magento.

Facebook, Yahoo, Wikipedia, even Google.

Re: Goro – An implementation of PHP written in Go

#46

Earlier quoted context omitted.

No: https://github.com/MagicalTux/goro/blob/master/README.md#tod...

pre-alpha, bummer. Over the years I've had quite a few friends and family ask me to arrange hosting of their wordpress sites. Generally I refuse because wordpress has a long history of security problems. An alternate interpreter with sandboxed execution could solve a lot.

I thought wordpress had solved their problem with auto updates ? Not sure if that helps against poorly written third party plugins however. .. https://codex.wordpress.org/Configuring_Automatic_Background...

This makes hosting php a rather pleasant experience for me: https://uwsgi-docs.readthedocs.io/en/latest/PHP.html

Re: Goro – An implementation of PHP written in Go

#47

Earlier quoted context omitted.

No: https://github.com/MagicalTux/goro/blob/master/README.md#tod...

pre-alpha, bummer. Over the years I've had quite a few friends and family ask me to arrange hosting of their wordpress sites. Generally I refuse because wordpress has a long history of security problems. An alternate interpreter with sandboxed execution could solve a lot.

A lot of us had same idea as you without time to rewrite it. Looking for alternatives, I found one done in Java:

http://quercus.caucho.com/

Re: Goro – An implementation of PHP written in Go

#48
post #45

Earlier quoted context omitted.

A majority of the web runs on one of a handful of programs that use php...WordPress, Magento...

While true, there is still a tremendous amount of the web that is powered by php and not using WordPress or Magento. Facebook, Yahoo, Wikipedia, even Google.

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.

Re: Goro – An implementation of PHP written in Go

#50
post #22

One of the most "hip to hate" languages implemented in one of the most "hip to love" languages...

wait for js.rs

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.
Post reply on HN