3 ms·
What kind of limitations? Everything you can do in Python, can be done in PHP too. For long running processes you can use libevent, and for threading (web serv
by frik 13y ago
What kind of limitations?
Everything you can do in Python, can be done in PHP too. For long running processes you can use libevent, and for threading (web server) you can use libcurl. You can write native C or C++ extensions for both Python and PHP. Facebook's HHVM PHP JIT VM is very scalable and there is PyPy (Python JIT).
- wbond 13y agoI specifically mentioned dealing with crappy hosts. PHP's biggest strength is that it is available to almost everyone for cheap. Unfortunately most of those cheap hosts don't support sane extensions. And you certainly aren't going to get custom ones on there. Or even a recent version of PHP. Python has some similar issues. Ensuring that an end-user application written in Python is going to have access the the appropriate version of Python with the packages you need is still a challenge. Asking Joe user to install virtualenv and Python 3.3 is not viable. Currently I'm working on an app that uses Python, but is written in C and embeds Python for some of the cross-platform components.