400 karma · joined May 6, 2014 (12y ago) · 244 submissions
comment 6y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
The "overhead" of communicating via CGI to a PHP process has nothing to do with the speed of execution of the script itself.
> For light scripts this is far superior to fpm. On the other hand, always loading php does have it's downsides too as memory consumption can get quite high depending on the number of threads.
It's not far superior as the "overhead" of CGI is negligible in the real world. Plus you can pool processes for better scaling. Also, if you are using prefork with mod_php (which is the most probable scenario) it means you are forking an entirely new Apache process and not just "loading PHP" with each request.
> This is was also the reason for the fpm hype a long time ago: don't waste memory on php when php isn't needed. It had nothing to do with it running php faster.
It's not hype, because for a long time, mod_php required prefork because it was not thread-safe (even now it's still a pain to manage re-compiling PHP to be thread-safe for mod_php + Apache)...which means you could not take advantage of mpm_event or mpm_worker.
comment 7y ago · link · parent
I would, especially if they are in their prime earning years and are trying to become independent contractors. Software engineering jobs command high salaries and benefits these days. The opportunity costs are just too high and the odds of sustaining a one-person contracting show for 5, 10, 20+ years is slim to none.
comment 7y ago · link · parent
That's just one factor. Banks are looking to minimize risk and from the perspective of banks, self-employment increases risk. That's not to say banks won't loan to you, just that the hurdle is much higher for you to prove that you are not a risk. Chances are your interest rates will still suffer even when a bank decides to loan to you.
comment 7y ago · link · parent
This isn't something that's only attributable to CA. Economically depressed towns relatively close to highly concentrated areas of wealth are all over America. Also, the scale of poverty in places like the south, Appalachia, the rust belt, rural America often meets or exceeds that of third-world countries.
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
Eh, that's not really the case anymore either. It's made many improvements over the years. Not that I'm saying it's some wonderful language, but you can't really compare it to the PHP 4/early 5 days. I think credit is deserved to the folks who have brought PHP to where it is today.
comment 9y ago · link · parent
comment 9y ago · link · parent
comment 9y ago · link · parent
comment 9y ago · link · parent
comment 9y ago · link · parent
comment 10y ago · link · parent