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
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
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
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
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,