Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93073 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33284 invoked from network); 4 May 2016 16:44:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 May 2016 16:44:52 -0000 Authentication-Results: pb1.pair.com smtp.mail=me@kelunik.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=me@kelunik.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kelunik.com from 81.169.146.219 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 81.169.146.219 mo4-p00-ob.smtp.rzone.de Received: from [81.169.146.219] ([81.169.146.219:41862] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DB/C2-16256-1072A275 for ; Wed, 04 May 2016 12:44:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1462380286; l=5725; s=domk; d=kelunik.com; h=Content-Type:Cc:To:From:Subject:Date:References:In-Reply-To: MIME-Version; bh=ktc2P/DDOrj/SYsOQFDQMku+DiCgZW4pgD7vJacEeWU=; b=AmYJ1XC8pXq2qhGtbg3ZGk2/05RpPdiw7tr3sr9W7SbYTkmZQgeVYUHJOsuXjhoSmIk qlCMf4t4iUuTJ/EFlMWTdh0fTBN+3C0oduG9QZJiJpInKMX/iPij1wo/94NAIQpcSfSmg mjPHGvvjTaA4FGkr1lG8D8QmPh4KlzHfK4Y= X-RZG-AUTH: :IWkkfkWkbvHsXQGmRYmUo9mls2vWuiu+7SLGvomb4bl9EfHtO3Q6 X-RZG-CLASS-ID: mo00 Received: from mail-wm0-f47.google.com ([74.125.82.47]) by smtp.strato.de (RZmta 37.26 AUTH) with ESMTPSA id w00951s44Gik4w1 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp384r1 with 384 ECDH bits, eq. 7680 bits RSA)) (Client did not present a certificate) for ; Wed, 4 May 2016 18:44:46 +0200 (CEST) Received: by mail-wm0-f47.google.com with SMTP id a17so104774561wme.0 for ; Wed, 04 May 2016 09:44:46 -0700 (PDT) X-Gm-Message-State: AOPr4FWxEcYkFsgam3gTuHDmjJSM03FXqQ2e9nTeMff37/WPD3e+8tKIhTpGT4uWvGOmyd+EimyJf94h+y5MuA== MIME-Version: 1.0 X-Received: by 10.194.11.97 with SMTP id p1mr9392497wjb.159.1462380286383; Wed, 04 May 2016 09:44:46 -0700 (PDT) Received: by 10.28.53.132 with HTTP; Wed, 4 May 2016 09:44:46 -0700 (PDT) In-Reply-To: <38.90.16256.DC90A275@pb1.pair.com> References: <18.B0.04700.FD2DC065@pb1.pair.com> <38.90.16256.DC90A275@pb1.pair.com> Date: Wed, 4 May 2016 18:44:46 +0200 X-Gmail-Original-Message-ID: Message-ID: To: Stephen Coakley Cc: PHP Internals Content-Type: multipart/alternative; boundary=047d7b4508e47f22f0053206f17f Subject: Re: [PHP-DEV] Re: async/await - is future reserved words in PHP 7.x? From: me@kelunik.com (Niklas Keller) --047d7b4508e47f22f0053206f17f Content-Type: text/plain; charset=UTF-8 2016-05-04 16:40 GMT+02:00 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. > Would be strange to have async / await in the language without an event loop, but it's possible, yes. > 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./ Why do we have to wait until PHP 8? Should be mostly backwards compatible and be fine in 7.2 or so. Issue is probably more deciding on an API. > > -- > Stephen > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --047d7b4508e47f22f0053206f17f--