Re: [PHP] I want to write a Multi-threaded PHP Application

2006-04-27 Thread Gonzalo Monzón
D. Dante Lorenso escribió: Gonzalo Monzón wrote: I've been developing desktop applications with PHP-GTK since 2002, far beyond the web script context, and in the more complex projects I did, was a must to implement multi-process and IPC communication due to the lack of threading in PHP, as t

Re: [PHP] I want to write a Multi-threaded PHP Application

2006-04-27 Thread D. Dante Lorenso
Gonzalo Monzón wrote: I've been developing desktop applications with PHP-GTK since 2002, far beyond the web script context, and in the more complex projects I did, was a must to implement multi-process and IPC communication due to the lack of threading in PHP, as to deal with some issues like m

Re: [PHP] I want to write a Multi-threaded PHP Application

2006-04-27 Thread Barry
Gonzalo Monzón schrieb: I forgot to put some final note into my last message. PHP can be good for a lot of things, but not really for other. Yeah true (o_O) -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] I want to write a Multi-threaded PHP Application

2006-04-27 Thread D. Dante Lorenso
Stut wrote: D. Dante Lorenso wrote: IMHO, if your main goal is to allow your threaded app to reuse existing PHP classes then your best bet is to investigate embedding PHP into something written in C or C++. This is a very good point. I have also been looking into the idea pitched a few yea

Re: [PHP] I want to write a Multi-threaded PHP Application

2006-04-27 Thread Gonzalo Monzón
I forgot to put some final note into my last message. PHP can be good for a lot of things, but not really for other. Wonder when requirements grow long in some ways you could not ever expect in a project like your's: A simple example: need 5 concurrent connections in your "hacked" multi-proce

Re: [PHP] I want to write a Multi-threaded PHP Application

2006-04-27 Thread Stut
D. Dante Lorenso wrote: I've already written the multi-threaded server using Java. I want to do this in PHP, however, because the PHP "threads" can re-use PHP classes I've already written and hence standardize on a single codebase and language. Many other languages have threads (Java, C#, Pyt

Re: [PHP] I want to write a Multi-threaded PHP Application

2006-04-27 Thread Gonzalo Monzón
D. Dante Lorenso escribió: Gonzalo Monzón wrote: Use Python, it is the way to go if you're willing to use mt :-) I've already written the multi-threaded server using Java. I want to do this in PHP, however, because the PHP "threads" can re-use PHP classes I've already written and hence

Re: [PHP] I want to write a Multi-threaded PHP Application

2006-04-27 Thread Richard Lynch
On Thu, April 27, 2006 4:18 am, D. Dante Lorenso wrote: > Evolution of the language is a must. I AM working on trying to spec > out > an extension for PHP which would implement what I want with threading > without having to hack zend and the core. I might think that some > other > C developers wo

Re: [PHP] I want to write a Multi-threaded PHP Application

2006-04-27 Thread Richard Lynch
On Thu, April 27, 2006 3:24 am, D. Dante Lorenso wrote: > priority. You simply can't be an enterprise language without these > basic features. You simply can't put Threads in the same sentence with "basic features", not even by implication. :-) There is NOTHING "basic" about threads, no matter h

Re: [PHP] I want to write a Multi-threaded PHP Application

2006-04-27 Thread Jochem Maas
D. Dante Lorenso wrote: Jochem Maas wrote: I've already written the multi-threaded server using Java. I want to do this in PHP, however, because the PHP "threads" can re-use PHP classes I've already written and hence standardize on a single codebase and language. Many other languages have t

Re: [PHP] I want to write a Multi-threaded PHP Application

2006-04-27 Thread D. Dante Lorenso
Jochem Maas wrote: I've already written the multi-threaded server using Java. I want to do this in PHP, however, because the PHP "threads" can re-use PHP classes I've already written and hence standardize on a single codebase and language. Many other languages have threads (Java, C#, Python,

Re: [PHP] I want to write a Multi-threaded PHP Application

2006-04-27 Thread Jochem Maas
D. Dante Lorenso wrote: Gonzalo Monzón wrote: Use Python, it is the way to go if you're willing to use mt :-) I've already written the multi-threaded server using Java. I want to do this in PHP, however, because the PHP "threads" can re-use PHP classes I've already written and hence stan

Re: [PHP] I want to write a Multi-threaded PHP Application

2006-04-27 Thread D. Dante Lorenso
Gonzalo Monzón wrote: Use Python, it is the way to go if you're willing to use mt :-) I've already written the multi-threaded server using Java. I want to do this in PHP, however, because the PHP "threads" can re-use PHP classes I've already written and hence standardize on a single codebas

RE: [PHP] I want to write a Multi-threaded PHP Application

2006-04-26 Thread Richard Lynch
On Wed, April 26, 2006 6:05 pm, Warren Vail wrote: > "not likely" until at least PHP 8.0. However, my needs for a thread > are > very simple and might be able to avoid the complexities of shared One thing you could consider... If you had one "main" script that did a stream_select on multiple URL

RE: [PHP] I want to write a Multi-threaded PHP Application

2006-04-26 Thread Warren Vail
Wednesday, April 26, 2006 3:43 PM To: php-general@lists.php.net Subject: [PHP] I want to write a Multi-threaded PHP Application All, For years I have wanted to have the ability to create a new Thread in PHP similar to how it is done in the Java language. I understand the complexities this would i

[PHP] I want to write a Multi-threaded PHP Application

2006-04-26 Thread D. Dante Lorenso
All, For years I have wanted to have the ability to create a new Thread in PHP similar to how it is done in the Java language. I understand the complexities this would involve and have mentioned the idea to the PHP internals list once and subsequently had the idea shot down and declared "not