Re: Will PHP ever "grow up" and have threading?

From: Date: Wed, 24 Mar 2010 20:22:24 +0000
Subject: Re: Will PHP ever "grow up" and have threading?
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.general 
Request: Send a blank email to php-general+get-303368@lists.php.net to get a copy of this message
Rene Veerman wrote:
On Wed, Mar 24, 2010 at 9:45 PM, larry@garfieldtech.com <larry@garfieldtech.com> wrote:
On 3/24/10 2:33 PM, Rene Veerman wrote:
It's a debate. The dev team consider proposals and weigh in on the merits. I was a proponent for goto support during the development of PHP 5. We now have it. If you arguments are valid and there's no technical issue preventing it, and there's someone with time and skill to created the functionality, then it will happen. If not then it won't. I've seen many things added to PHP and I've watched and participated in the threads on internals that have lead to many new features. This is open source, opinions matter, but personal attacks and poor argument do not really make the cut.
hahaha... you dismiss what i believe to be valid explanations without any counter-argument besides "more sql hardware!", not just by me but by all advocates of threading&shared memory in php. for some reason, which is still not clear to me, you nay-sayers refuse to let a PROGRAMMING LANGUAGE (not a "hammer", not a "fishing boat") evolve to stay useful, relevant even, in a changing market. and you're blatantly telling me to use a different kind of "hammer", one that would force me to rewrite large sections of my existing code-base, and one that i have told you i would find for many other _valid_ reasons not optimal.
And what you seem to be missing is that making PHP userspace threaded is such a major change to the underlying code base and architecture that it would essentially be a total and complete rewrite, and would require people to rewrite large portions of their existing PHP userspace code.
ehm, my newsscraper does threading via a fopen($threadURLonOwnServer) -> fread(threads,2048)+check for feof($thread) + usleep(50ms) -> if feof($thread) process($threadResults). so with a hack, you can let apache handle the threading, today. i suppose i could write something for shared memory in C++ but doing so would also be a hack that has to be installed on each server, rather than having it neatly as part of php.
See PECL. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP

« previous php.general (#303368) next »