Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93070 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20781 invoked from network); 4 May 2016 14:40:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 May 2016 14:40:20 -0000 X-Host-Fingerprint: 140.146.203.193 unknown Received: from [140.146.203.193] ([140.146.203.193:14269] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 38/90-16256-DC90A275 for ; Wed, 04 May 2016 10:40:15 -0400 Message-ID: <38.90.16256.DC90A275@pb1.pair.com> To: internals@lists.php.net References: <18.B0.04700.FD2DC065@pb1.pair.com> Date: Wed, 4 May 2016 09:40:10 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 140.146.203.193 Subject: Re: [PHP-DEV] Re: async/await - is future reserved words in PHP 7.x? From: me@stephencoakley.com (Stephen Coakley) On 05/04/2016 05:59 AM, S.A.N wrote: > EventLoop interface, on development stage: > https://github.com/async-interop/event-loop That's a userland design for event loops; async/await and coroutines don't necessarily depend on an event loop. They could be added to the language without an event loop, and simply require the user to provide the event loop. My idea was to make a transition into async as simple as possible. Also, I'm partially responsible for the event loop interface above. :P > PHP wrappers for libev and libeio supported PHP 7. > https://pecl.php.net/package/ev > https://pecl.php.net/package/eio > > libuv - certainly better because it has everything you need and a huge > community. I agree; libuv is probably the best of the bunch, if we include an event loop library in future versions of PHP. It is not necessary to have a PHP wrapper for libuv, since if it was included in the interpreter itself we would be just using the C interface. > Very need async/await in the PHP core (based on generators). > Perhaps there are plans in core developers, for implement async/await? /Legend speaks of such plans, but they come and go in whispers. Like a shadow, or a mist from the east. The prophecy spake of such features targeting PHP8; lo, most believe it to be myth./ -- Stephen