Live data from Hacker News

Goro – An implementation of PHP written in Go

github.com

121–130 of 135 posts

Re: Goro – An implementation of PHP written in Go

#121
post #116
post #109

Earlier quoted context omitted.

>And it turns out to work incredibly well for the most part. It's serverless by design! Worked incredibly well compared to what? CGI was a performance nightmare, forking per request. CGI and FastCGI have both been a security nightmare. HTTPoxy, Shellshock, Pathinfo, and more. Setting up PHP correctly is cumbersome and depends on a complex interaction between sometimes confusing php.ini options and fairly complex conf…

> Setting up PHP correctly is cumbersome and depends on a complex interaction One of the reasons PHP is so successful is that (in most cases) you don't have to set it up beyond the default installation. But when you need something done "correctly" it takes time. The same is true for every other server environment, where what's correct for you isn't necessarily correct for me. > If you're using Nginx I don't have any…

[deleted]

Re: Goro – An implementation of PHP written in Go

#123

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 think he's advocating for prison time for serious fraud - around $450m of assets stolen/lost through incompetence

Re: Goro – An implementation of PHP written in Go

#124

Earlier quoted context omitted.

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…

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

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

#125
post #108

Earlier quoted context omitted.

Why choose PHP over python, node, ruby, elixir, go, etc. There are just so many great choices that offer just as much and more than PHP. I get that PHP has made major strides over the years. I just don't see why you would choose PHP for a greenfield project.

Well, my guess is that PHP offers a lot more to the beginner. When you've been doing this a while, you can appreciate what e.g. Python gives you in structure, maintainability, and lack of foot-guns. But when you're still in the "how does this work? Why won't this work? It worked!" phase, having less boilerplate, and fewer non-problem domain concerns (types? modules? tuples? Say what you mean, Old Man!) might be reall…

> But when you're still in the "how does this work? Why won't this work? It worked!" phase, having less boilerplate, and fewer non-problem domain concerns (types? modules? tuples? Say what you mean, Old Man!) might be really valuable

However, modern php isnt being sold as index.php and a mysql connection. It's Doctrine, composer and laravel/symphony. Which have their fair share of boilerplate.

>I think the best thing I remember about PHP is probably its online manual. Each library function had a few full use cases underneath

The problem with PHP is that you need the online manual everytime you want to use a function because the argument order is so inconsistent.

Re: Goro – An implementation of PHP written in Go

#126

> PHP is having trouble keeping up with modern language which are these modern languages and which are the cases where it is not keeping up? IMO PHP is one of the languages where development is really quick and the ecosystem is flourishing.

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 are you saying that for javascript the things are not looking good as well ?

https://trends.google.com/trends/explore?date=all&geo=US&q=p...

Re: Goro – An implementation of PHP written in Go

#127

Earlier quoted context omitted.

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 think he's advocating for prison time for serious fraud - around $450m of assets stolen/lost through incompetence

The history of mtgox is not that simple and it is somewhat difficult to say who actually was the guilty one. Maybe there was lots of incomptenece involved but I'm pretty sure that also in a situation like that it might be so difficult even think straight.

MtGox was actually developed by Jed McCaleb, and Karpeles (MagicalTux) later bought the business from Jed. At the time of the sale the exchange already had tons of issues and apparently missing 80k BTC. It was perfect timing for Jed, who later started Ripple. For Karpeles the biggest mistake was buying the business. I would consider the latter mistakes only a minor mistakes. I would guess the codebase/security/etc was quite a horrible as well, can't really blame MagicalTux for not managing to save that business.

https://www.newsbtc.com/2016/05/22/mt-gox-a-new-revelation-s...

Re: Goro – An implementation of PHP written in Go

#128

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.

There's also Laravel, which is more popular than both Django and Rails on a worldwide basis ( https://g.co/trends/9CGj5 ). Rails and Django are more popular in the US where I hear PHP is not very popular...

Interesting, I have seen a surge of Laravel + Vue.js in recent projects. And many companies wanted to move back to PHP / Laravel from Ruby Rails / Django.

Re: Goro – An implementation of PHP written in Go

#129
post #56

Earlier quoted context omitted.

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.

Google+ did not fail for technical reasons. Everything I saw about it was technically better. It failed for social reasons, facebook already exists and has everyone on it.

It didn't failed for Social Reason, it failed because it was an inferior product for the mass. Facebook succeeded because its concept is simple enough for even your GrandMa and Dad to understand.

Google+ was designed by geeks for geeks.

Re: Goro – An implementation of PHP written in Go

#130
post #108
post #59

Earlier quoted context omitted.

PHP is growing these days. Some of the hip crowd are coming back, small business never left and globally it is gaining as more developers come online. PHP offers so much so easily it's hard to replace.

Why choose PHP over python, node, ruby, elixir, go, etc. There are just so many great choices that offer just as much and more than PHP. I get that PHP has made major strides over the years. I just don't see why you would choose PHP for a greenfield project.

One component is the fact that it comes out of the box on a great many hosting providers and it's part of the old "standard" LAMP stack. You don't have to set up any reverse proxy crap and the architecture is simple enough - you access a .php file which is really just HTML with some embedded code and it interprets the file. The concept couldn't be any closer to JavaScript which I suspect has attracted so much attention from beginners just because it's everywhere on web clients, just as PHP is everywhere on web servers.
Post reply on HN