Live data from Hacker News

Benchmarks of PHP 7.2 Beta: PHP Is Still Getting Faster

phoronix.com

141–144 of 144 posts

Re: Benchmarks of PHP 7.2 Beta: PHP Is Still Getting Faster

#141

Earlier quoted context omitted.

If you start typing `html` trying to get to `html_entity_encode` you'll notice a dropdown which will show you the right method to use. Unless you use notepad.exe or something. https://i.imgur.com/YYXkkNS.png

I see, but htmlentities is just an example. It's a coincidence that they both start with 'html'...

Unless you only write a few lines of PHP every couple of days then you quickly learn what is what, and order of the function signature... I left for 2 years and came back and took me 3 days to get back to the state I was before.

Re: Benchmarks of PHP 7.2 Beta: PHP Is Still Getting Faster

#142
post #119

Earlier quoted context omitted.

1) php doesn't have to setup everything on every request - opcode caches, process pooling et al exist 2) the benefit of php over java is that php is going to run everywhere with no effort, and running that same java based website/service is going to start with some doc on installing tomcat or similar, which will devolve into chaos as you start working with ssl certs or shared servers

Bootstrapping a project with Spring Boot is 10x easier than dealing with some modern PHP framework's setup and nginx stuff.

Flat disagree. The php framework is going to run on every shared host in the world, and sprint boot isn't. I'm not saying PHP is better, I write java all day every day, but if I had to build a website for a random friend or family member, I'm writing it in PHP, because I know their hosting will run it.

Re: Benchmarks of PHP 7.2 Beta: PHP Is Still Getting Faster

#143
post #105
post #69

Earlier quoted context omitted.

With PHP you also need to implement a webserver (Apache), so you're one-liner is also actually not a one-liner at all. Also, pick the right tool for the right job. Who writes code these days that silently sit still for a decade? Hardly anyone. And even if you do, I don't think Python or Node will suddenly stop working (as you're implying).

>With PHP you also need to implement a webserver (Apache), so you're one-liner is also actually not a one-liner at all With the "https everywhere" movement, the same is practically true for node. You will likely be configuring some outside proxy/webserver.

FYI you can enable https without the need for an external webserver

Re: Benchmarks of PHP 7.2 Beta: PHP Is Still Getting Faster

#144
post #19

Earlier quoted context omitted.

>There are almost always better tools for the job than PHP, like Django, Rails, Go's net/http, etc. depending on the kind of thing you're writing. Except for the time when you are 10 times more proficient in PHP but none of those languages. Then no, none of those languages are better for the job.

That sounds more like all you know how to use is a hammer, so everything is a nail.

PHP can do probably 95%+ of all functions of the languages you listed. The analogy doesn't quite hold.
Post reply on HN