Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84906 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28157 invoked from network); 15 Mar 2015 20:39:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Mar 2015 20:39:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=damz@damz.org; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=damz@damz.org; sender-id=pass Received-SPF: pass (pb1.pair.com: domain damz.org designates 74.125.82.50 as permitted sender) X-PHP-List-Original-Sender: damz@damz.org X-Host-Fingerprint: 74.125.82.50 mail-wg0-f50.google.com Received: from [74.125.82.50] ([74.125.82.50:35460] helo=mail-wg0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 70/86-31306-F0EE5055 for ; Sun, 15 Mar 2015 15:39:45 -0500 Received: by wgdm6 with SMTP id m6so25298804wgd.2 for ; Sun, 15 Mar 2015 13:39:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=damz.org; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=sqch2c6zQ0yQz3IBWrOHo8wus2vGPeuC8RRUDoySUMk=; b=qyLcnByiCMNClKcSVMCsAW1NG8CnZ3BEfV80smhOrywml6qRC6HOLJtSlHURxYH58W MCq+IxHx+xtn1EhsPkjW7ga11EIq9j+SgHDnC3ua/aOO/JXEj0NfkPyU8wF+f26vC8zA hh1XX17e5t0T8u+DroUVri9c7xKBplDpRusIc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=sqch2c6zQ0yQz3IBWrOHo8wus2vGPeuC8RRUDoySUMk=; b=LK1U/Ha2MS/BaLvD16UskvIoku57Z1vvUQ3GQkDQTrOCCEko8HMcIc6nKA0qR73odd R5JusAVfsdtIFG0D6qzHtS5oWvnNmihvGS7VTuL83WjWFg0JWKTu9d36oItNopjsY6jw gbAUap3bgsTdGzMlPms2kEttmNVn8q/seKFsBN3INLt+v9bbHgOMlj7ao9+1oUfIXOvM tg27SVCfkV4/ZMx03l8kwwClMi6zFcx7jwYtt3Xv6YL1SSpfgb9Hk+W04J2uHVyqPsCF EEYx1yaYgOeuRvvba6hgtVNdzTv6z37446ujUBx8d9OCL8+BTAxv+0OYj/CCfjomblYI NtUQ== X-Gm-Message-State: ALoCoQmOaCu+LWhdvEOcrh8rD5DNXg9GfSEut5Koi5a0NjxrYL5xW3ha96pVnb9w0hnMAJMtAB5q MIME-Version: 1.0 X-Received: by 10.194.24.35 with SMTP id r3mr55974904wjf.125.1426451980506; Sun, 15 Mar 2015 13:39:40 -0700 (PDT) Received: by 10.28.177.10 with HTTP; Sun, 15 Mar 2015 13:39:40 -0700 (PDT) X-Originating-IP: [81.220.155.251] In-Reply-To: References: Date: Sun, 15 Mar 2015 21:39:40 +0100 Message-ID: To: Daniel Lowrey Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=047d7b5d8d9d966dba051159bb06 Subject: Re: [PHP-DEV] [VOTE] Generator Delegation From: damz@damz.org (Damien Tournoud) --047d7b5d8d9d966dba051159bb06 Content-Type: text/plain; charset=UTF-8 On Sun, Mar 15, 2015 at 9:35 PM, Daniel Lowrey wrote: > This is actually a *vastly* inferior solution to language-level support > for generator returns. greenlet/gevent does it this way because these > libraries were created before Python supported generator delegation (and > continue supporting Python 2.5). When you have generator returns you don't > need any of that additional cruft. Instead, a language supporting generator > returns can simply yield promises (or whatever concurrency primitive you > prefer). Period. > Hi Daniel, I actually disagree here. Using generators as coroutine is a hack, and is vastly inferior to having actual coroutine support in the language, but obviously we do what we can with the language we have. (Yes, I am in the camp that *really* dislike explicit yielding.) I do understand where this is coming from, so changing my vote to yes on the other RFC. Damien --047d7b5d8d9d966dba051159bb06--