Hacker News new | ask | show | jobs
by rcarmo 2038 days ago
I can't believe nobody has pointed out (yet) that PHP is the quintessential lambda :)

That said, it's been many (many, many!) years since I moved away from it, but I'm intrigued by the state of the JIT and the current coding style (last time I checked, around 6.x, it was growing to be verbose and full of backslash-adorned-namespacing).

3 comments

"PHP was serverless before there was serverless"

However there is a difference: PHP has no deployment system included. But if you build that (not too hard) the difference isn't big ... (But with Lambda&others you outsource the management)

> PHP has no deployment system included.

SFTP? I mean, it's not included in PHP, but any linux system has it.

SFTP, rsync all work, to some degree NFS also is an option.

However that's just the technology. You need to build a solution around it, which monitors load and deploys the code as needed and scales down again and eventually in PHP you'd also expect that PHP Session management is integrated ... all doable and people did. The selling point of lambda is "it works" and "not your concern" (with the corresponding downsides)

Yes, the worst aspect of PHP is how a lot of library code uses fully-qualified namespaces inline instead of a "use" declaration at the top of the file. I've never understood why.
PHP 6 was never released, you are probably thinking of 5.3+
"Sometime before 7", yes.