Live data from Hacker News

Goro – An implementation of PHP written in Go

github.com

31–40 of 135 posts

Re: Goro – An implementation of PHP written in Go

#31
post #13

Earlier quoted context omitted.

A great way to look into the future of languages is checking how many people is learning it now compared to the last few years, a great tool for that is google trends and things don't look good for PHP: https://trends.google.com/trends/explore?date=all&geo=US&q=p...

There is also this to consider https://haydenjames.io/80-percent-web-powered-by-php/

I suspect an enormous number of those are WordPress blogs and MediaWiki sites, and I don't feel like that number is very useful without breaking those out. It's a bit like saying Fortran is popular in data science because SciPy is implemented partly in Fortran — not so much an indicator of overall language health as it is an artifact of one product's popularity.

Re: Goro – An implementation of PHP written in Go

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

> it can't change its API from month to month to match whatever's in vogue

This is true of every language used on the web. That's why it's important to start out with the right choices, which in many instances PHP did not do, and is slowly trying to recover.

Re: Goro – An implementation of PHP written in Go

#34
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...

Re: Goro – An implementation of PHP written in Go

#35
post #18

But... why? If you are going to write a go program to run PHP to use go specific features, why use PHP at all?

One common reason is to port/enable feature-specific legacy code without having to drag along a standalone interpreter.

It can also be used as a common in-application scripting language.

Re: Goro – An implementation of PHP written in Go

#37

Earlier quoted context omitted.

Hah. You can lose people hundreds of millions of dollars worth of assets and because it is magic internet money and not real money, you are coding instead of in jail.

Are you advocating for debtors prisons? If someone losses money you gave them, would you rather they were in prison, (living from your taxes) or working and repaying? Also if the bankruptcy proceeds as planned, nobody will lose real money. (Btc sale so far covers all the fiat they owe and a bit more)

There are a lot of ways to go to prison for mishandling other people's money that are not "debtors prison".

Re: Goro – An implementation of PHP written in Go

#38

Earlier quoted context omitted.

Hah. You can lose people hundreds of millions of dollars worth of assets and because it is magic internet money and not real money, you are coding instead of in jail.

Are you advocating for debtors prisons? If someone losses money you gave them, would you rather they were in prison, (living from your taxes) or working and repaying? Also if the bankruptcy proceeds as planned, nobody will lose real money. (Btc sale so far covers all the fiat they owe and a bit more)

I did not read the comment as advocating for debtors prisons. My understanding is that those were (are) for individuals who cannot pay a debt. Instead, I assume the parent commentor meant something more along the lines of a Bernie Madoff.

Re: Goro – An implementation of PHP written in Go

#39

Earlier quoted context omitted.

A great way to look into the future of languages is checking how many people is learning it now compared to the last few years, a great tool for that is google trends and things don't look good for PHP: https://trends.google.com/trends/explore?date=all&geo=US&q=p...

So you are saying that PHP is dying since 2004. That’s ridiculous. There are new languages and more alternatives today that’s it.

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

Re: Goro – An implementation of PHP written in Go

#40

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 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.

Post reply on HN