|
|
|
|
|
by wvenable
2593 days ago
|
|
Honestly nobody uses the SPL. PHP's array type is more than powerful enough for the vast majority of data structure tasks and the standard library has functions for treating it as a stack, a list, etc. Coroutines are not necessary in PHP. In fact, the share nothing architecture of the LAMP stack is one of it's advantages if that suits your needs. The setup of a Java web stack alone is painful enough to make PHP a viable option in comparison. |
|
What is PHP's concurrency model? Is it still a forked process pool via something like PHP-FPM, or has it changed?
Does the VM enforce a GIL? I'm assuming there is some kind of threading API?
Can you run an event loop using epoll, and is the standard library well supported in that execution model?
FYI, I was a PHP developer from 2003-2011. I did enjoy it back then. I never bought into the Rails hype at the time, opting instead for copycats like Yii and CI.
But I was ignorant. Honestly, after switching to Python for web dev, I saw no reason to ever return. Since then, I've dropped web dev altogether, and I now work in C++, Java, and Python on a daily basis.
It may be the nature of the work, but I still cringe at the thought of using PHP again after learning how capable other general purpose languages are. From a CS point of view, working in PHP just isn't very interesting... or pleasant.