Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84908 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31071 invoked from network); 15 Mar 2015 20:41:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Mar 2015 20:41:49 -0000 Authentication-Results: pb1.pair.com header.from=rdlowrey@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rdlowrey@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.182 as permitted sender) X-PHP-List-Original-Sender: rdlowrey@gmail.com X-Host-Fingerprint: 209.85.213.182 mail-ig0-f182.google.com Received: from [209.85.213.182] ([209.85.213.182:38635] helo=mail-ig0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 21/27-31306-B8EE5055 for ; Sun, 15 Mar 2015 15:41:49 -0500 Received: by igbue6 with SMTP id ue6so25164546igb.1 for ; Sun, 15 Mar 2015 13:41:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=NtsRRZA1jg9EgqUSLAGa0ZdYfZuoTzfweUZCNJx7jzY=; b=tpvYU6sYOOiKYQHUZyIkvilLAcc7IHK8xsh8ZbPsGAfnDIPLfPKOsikcxNGUD7LdpK tfTXT3cHiW/mrE882SpYho29iDsQzoZrz2DIZQaMIP9QUGe1R3Tpp8XCndrAuW4BIIHa lg4ZYMf7JJ+OwI+ozHm93n+JbUEAitPLBwD61A/aJvYge/i9mc7MSka8B/HlABuTsdvu v9t9rtX5R5NJRUo2vjP5fdk2H0zNpO0fBC0KNAvmvFJpTCec50XIBm6dRavr4HWRV4x+ DeKdlW4l8cutOPmhJVbyxS69/tARMbqX8w3v2fR+vaTdiU+wFxE5Ifo6+0Z+4UIyP5Ag dW/g== MIME-Version: 1.0 X-Received: by 10.42.27.80 with SMTP id i16mr75187966icc.9.1426452103141; Sun, 15 Mar 2015 13:41:43 -0700 (PDT) Sender: rdlowrey@gmail.com Received: by 10.50.156.198 with HTTP; Sun, 15 Mar 2015 13:41:43 -0700 (PDT) In-Reply-To: References: Date: Sun, 15 Mar 2015 16:41:43 -0400 X-Google-Sender-Auth: awhYqMazSqo2ZK_RKkOjX0RwKiI Message-ID: To: Damien Tournoud Cc: Daniel Lowrey , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=20cf3043529ee59e5e051159c29a Subject: Re: [PHP-DEV] [VOTE] Generator Delegation From: rdlowrey@php.net (Daniel Lowrey) --20cf3043529ee59e5e051159c29a Content-Type: text/plain; charset=UTF-8 On Sun, Mar 15, 2015 at 4:39 PM, Damien Tournoud wrote: > > 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 > I can appreciate your viewpoint :) We do what we can with the tools we have at our disposal. If you don't want to see it happen then I can live with that. It is, my job, as the RFC author to persuade people. Thanks for your honest input! --20cf3043529ee59e5e051159c29a--