Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Christopher Pitt:
Co-operative PHP Multitasking
Mar 30, 2015 @ 17:47:41

Christopher Pitt has posted a new article on Medium.com about when an "array is like an adventure" when in the context of co-operative PHP multitasking. In it he shows how to make code work asynchronously with out the use of extensions, only generators.

Last week I got the opportunity to share recent work with my colleagues, at SilverStripe. I was going to present Async PHP today, but since I covered ReactPHP last week; I decided to talk about something slightly different. So here’s a post about cooperative multitasking.

He starts with some basic arrays and other things that act like them and can be iterated through (Traversable). He talks about implementing custom iterators to act the same way and the use of IteratorAggregate to "cheat" a bit when making them. The he gets into generators, showing how they can be used to iterate similarly. He shows how it's possible to send data to a generator, throwing exceptions inside them and the use of "coroutines" to create asynchronous code. He builds up a queue system with this method and shows how they execute with some simple echo output. He also shows the use of RecoilPHP, another coroutine-based library, to replace the main kernel for a ReactPHP script. He also mentions IcicleIO as another option.

tagged: cooperative multitasking asynchronous code coroutine generator

Link: https://medium.com/@assertchris/co-operative-php-multitasking-ce4ef52858a0

TMCNet.com:
IBM System i Community Galvanizes Around PHP
Apr 30, 2007 @ 21:18:00

As mentioned on the Zend Developer Zone today, there's a new article posted over on the TMCNet.com website about the support and cooperation that IBM is giving PHPers all over the world running System i machines.

Over the past year, Zend and IBM have worked together to make Zend's popular PHP products available for V5R3 and V5R4 versions of i5/OS. Zend Core for i5/OS is a fully tested and enhanced version of open source PHP; Zend Platform for i5/OS is a PHP production environment that improves application management and performance; and Zend Studio for i5/OS is a PHP Integrated Development Environment (IDE) that includes all of the components necessary to support the lifecycle of PHP applications created on i5/OS.

Mark Shearer, general manager IBM System i also notes that one of the goals of the cooperative effort was one they've met successfully so far - to bring tools to System i users to allow them to quickly and easily develop applications in their environment.

The article also includes a small list of companies already using this technology including Parts Depot, MedDirect and HarrisData.

tagged: article ibm systemi zend cooperative effort article ibm systemi zend cooperative effort

Link:

TMCNet.com:
IBM System i Community Galvanizes Around PHP
Apr 30, 2007 @ 21:18:00

As mentioned on the Zend Developer Zone today, there's a new article posted over on the TMCNet.com website about the support and cooperation that IBM is giving PHPers all over the world running System i machines.

Over the past year, Zend and IBM have worked together to make Zend's popular PHP products available for V5R3 and V5R4 versions of i5/OS. Zend Core for i5/OS is a fully tested and enhanced version of open source PHP; Zend Platform for i5/OS is a PHP production environment that improves application management and performance; and Zend Studio for i5/OS is a PHP Integrated Development Environment (IDE) that includes all of the components necessary to support the lifecycle of PHP applications created on i5/OS.

Mark Shearer, general manager IBM System i also notes that one of the goals of the cooperative effort was one they've met successfully so far - to bring tools to System i users to allow them to quickly and easily develop applications in their environment.

The article also includes a small list of companies already using this technology including Parts Depot, MedDirect and HarrisData.

tagged: article ibm systemi zend cooperative effort article ibm systemi zend cooperative effort

Link:


Trending Topics: