Re:How come PHP seems so much faster than Rust?
by osrec on Saturday September 28, 2019 @10:16PM
(#21104576)
Not sure I agree with this. Here's why: new tech stacks crop up every few months, and they're all competing for the same developer brain space. If PHP wasn't easy, I'm certain the interest in it would have evaporated to a large extent. Yet even today, people are choosing to start their projects in PHP. I think it's simplicity has a lot to do with it.
[ Parent
| on HN ]
Re:How come PHP seems so much faster than Rust?
by momokoko on Saturday September 28, 2019 @10:31PM
(#21104637)
But PHP was essentially the original widely adopted lambda cloud function. 1,000s of dirt cheap shared hosting platforms showed up on the scene. The reason they could make the hosting so cheap was that the way PHP runs. You are only consuming resources when you are serving the request.
To this day, cloud functions still deal with "cold starts", where this was already a solved problem with PHP shared hosting.
All PHP needed to be was good enough. It was how it served pages that made it as popular as it was.
Large disclaimer, I know a PHP shared host was not actually scalable like AWS Lambda. Just the idea that any small business could plop down a few servers and start selling shared PHP hosting was huge back then.
Re:How come PHP seems so much faster than Rust?
by h1d on Sunday September 29, 2019 @01:22AM
(#21105261)
It's more like, would someone else be able to maintain the code I write with language X? And would the person trying to run it be able to run in their environment without fiddling with SSH access?
If it's just me writing and deploying I use TypeScript but otherwise I tend to use PHP.