News for hackers. Stuff that matters.
Re:How come PHP seems so much faster than Rust? by toyg on Saturday September 28, 2019 @09:31PM (#21104393)
Not a monopoly, but it was the easiest and most performant option at lower price points.

Java required specialised or dedicated hosting ($$$). CGI was slow as hell. Mod_perl often was not available in shared hosting, for whatever reason.

PHP was cheap, fast, ubiquitous, and Good Enough™, for about a decade. Then VPS happened and the market changed.

Re:How come PHP seems so much faster than Rust? by vidarh on Saturday September 28, 2019 @10:05PM (#21104522)
Most people initially deployed php via CGI in my experience. I don't remember when mod_php arrived, but we'd been using PHP for quite some time at that point.

While CGI was slow-ish, alternatives like fastcgi were already around (and in fact running PHP via fastcgi was also quite common for a while.

By the time PHP became ubiquitous, most people had moved away from plain CGI regardless of language.

Re:How come PHP seems so much faster than Rust? by ndarwincorn on Saturday September 28, 2019 @10:22PM (#21104602)
> in fact running PHP via fastcgi was also quite common for a while.

Mind clarifying how this is different from the current hotness (from what I can tell, due to a decade-old shortcoming that no longer exists in mod_php/Apache MPM options) where folks are running PHP via the Fastcgi Process Manager?

Re:How come PHP seems so much faster than Rust? by vidarh on Sunday September 29, 2019 @12:01AM (#21104985)
I don't think it is very different, other than hopefully maturity of the implementation. I've not had to set up any new PHP stuff for about a decade so I haven't kept up with what the current setups look like.
Re:How come PHP seems so much faster than Rust? by ndarwincorn on Thursday October 03, 2019 @10:09AM (#21147107)
Re-reading it it sounds like it swung from fastcgi because Apache didn't have PHP support, to mod_php, and back to fastcgi (FPM) because Apache had poor concurrency support. It no longer does, but from someone who has to deal with this at their day job I can tell you that the current PHP ops wisdom is still stuck on not using mod_php.