RE: [PHP-DEV] TameJS syntax for Async/Parallel execution in PHP

2011-08-19 Thread Jonathan Bond-Caron
On Thu Aug 4 09:54 PM, Raymond Irving wrote: Hello, I came across this little library called TameJS (http://tamejs.org/) and fell in love with the it's syntax. This had me thinking if it was possible to add such features to a PHP CLI (or web app): Thanks for sharing, never heard of

Re: [PHP-DEV] TameJS syntax for Async/Parallel execution in PHP

2011-08-19 Thread Ulf Wendel
Am 19.08.2011 13:12, schrieb Jonathan Bond-Caron: On Thu Aug 4 09:54 PM, Raymond Irving wrote: Hello, I came across this little library called TameJS (http://tamejs.org/) and fell in love with the it's syntax. This had me thinking if it was possible to add such features to a PHP CLI (or web

Re: [PHP-DEV] TameJS syntax for Async/Parallel execution in PHP

2011-08-05 Thread Jezz Goodwin
This looks similar to Twisted in Python (http://twistedmatrix.com/trac/) and NodeJS (http://nodejs.org/) which are both non-blocking event driven IO engines. The actual event driven side of things could be written today in PHP. There's nothing stopping you from writing an event call stack

Re: [PHP-DEV] TameJS syntax for Async/Parallel execution in PHP

2011-08-05 Thread Jezz Goodwin
Ah, I've just done a bit of reading in to the PHP MySQL native driver. It is already possible to do async mysql calls. The documentation in mysqli::query (http://www.php.net/manual/en/mysqli.query.php) references MYSQL_ASYNC. So, if you're just using Mysql, I think there is enough

[PHP-DEV] TameJS syntax for Async/Parallel execution in PHP

2011-08-04 Thread Raymond Irving
Hello, I came across this little library called TameJS (http://tamejs.org/) and fell in love with the it's syntax. This had me thinking if it was possible to add such features to a PHP CLI (or web app): ?php await { // wait until all calls within this block is mysql_query_async($sql, $args,