220 21729 <d1f75390-7dce-484e-9ac3-342026de25be@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Gor Nishanov <gornishanov@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: is await an extension of the do-notation? (was Re:
 Re: Resumable expressions p0114r0 vs async/await P0057R0)
Date: Tue, 13 Oct 2015 17:11:57 -0700 (PDT)
Lines: 62
Approved: news@gmane.org
Message-ID: <d1f75390-7dce-484e-9ac3-342026de25be@isocpp.org>
References: <639f0012-8cb4-4db3-82a6-8d042a3497f9@isocpp.org>
 <401aa118-ed0b-4c7b-92cf-3fbd706eff9d@isocpp.org>
 <fcbcc1c4-535c-4fa2-a17d-4acffe84a4b5@isocpp.org>
 <1d15dbc4-e0c1-4df1-86db-014e11f14d26@isocpp.org>
 <56114953.4030701@wanadoo.fr> <561B403D.4030403@gmail.com>
 <CAOfiQqkKvZfVatJ1Bz4qSvGc-g6iep0xeP1B1=J1-gCu43NXxg@mail.gmail.com>
 <561C07D1.3080304@gmail.com>
 <CAOfiQqnR4GYCttwu8G-44_UEN4WekW19uorEvf-5VC3vOpej-g@mail.gmail.com>
 <561C213F.1060009@gmail.com>
 <fb82d876-8a54-4c28-8e53-297018470cf6@isocpp.org>
 <561C3875.2050701@gmail.com>
 <86924069-44d0-447f-bf8a-a42e46579832@isocpp.org>
 <561D79A7.8080007@gmail.com>
 <894616d6-9609-4038-b2bc-d2c62df21e0f@isocpp.org>
 <99bdb3ae-9214-4440-8572-4c47a61eda46@isocpp.org>
 <78f1c83a-f866-4f64-aba2-939078fdc58b@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_8063_105748413.1444781517886"
X-Trace: ger.gmane.org 1444781521 17383 80.91.229.3 (14 Oct 2015 00:12:01 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 14 Oct 2015 00:12:01 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBC47RF4IW4GRBTV362YAKGQEVERLKFI@isocpp.org Wed Oct 14 02:12:00 2015
Return-path: <std-proposals+bncBC47RF4IW4GRBTV362YAKGQEVERLKFI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-oi0-f71.google.com ([209.85.218.71])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC47RF4IW4GRBTV362YAKGQEVERLKFI@isocpp.org>)
	id 1Zm9fk-0004lF-7I
	for gclcip-std-proposals@m.gmane.org; Wed, 14 Oct 2015 02:12:00 +0200
Original-Received: by oiar126 with SMTP id r126sf52268487oia.2
        for <gclcip-std-proposals@m.gmane.org>; Tue, 13 Oct 2015 17:11:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :content-type:x-original-sender:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=3lSRMV4waIYOC7n2zsKSgrbc4yrRIaM2YUDAbgjWqws=;
        b=fd9z/Ygy4UKZDQ5iNGTLNfz2j6A6cAIEYw3GytKonGNVFPiQdB+z2JDxsUdImZ/ywj
         HoBB+2iL98VZX5T6Ci0FWuhT8f4xZILev2WIlAL6+qXBr6Y3sMNxIQOPPDnucO9hR49u
         sxv+QQWyJcZxkBveO2ZLOSMxCkCOlCfZzF3x8IRJEX7REjURs2Xy8SMVE+E4QTn4+XpD
         mvh65lkGw15iiYqANSn/ubE5RZaqxUouu8JE0rSwqKaT0/UNBYJZQSUCxK1rLYORMLaT
         kfv9rv9PwlySEpe+X/0UAE4A03NhzSvLE/XhSulC7biLaqQc9KNZb3Amgso5edQHDWMZ
         aT1g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:date:from:to:message-id:in-reply-to:references
         :subject:mime-version:content-type:x-original-sender:reply-to
         :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post
         :list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=3lSRMV4waIYOC7n2zsKSgrbc4yrRIaM2YUDAbgjWqws=;
        b=KGTkduS9Hw501AD7MPJzrKSIbL2XuwoIOisOAFcyZlLJVuyAwGSrlS+uESDfMgpVUm
         8WQFEmvxFWH+t0TizY4OsivsOuJe5NWH9bAXzYNPcqAFMkh/vdGrIZ2QyoUPCPGvUNiG
         AJxqkNtk6lQ4wvOK5Tn/Wb3rVFNVFf+QCAbVE6WpN5jTMCfP+g74fPgi9sfXBDf7xr34
         P09DTv6jyo1d0xai/dzgjc06PSrHyuHbvmlb/bpqYKXJ6CKYHBo4hB14zGjpNyBr12Z7
         qCLZvFDZ85lJp477oU+5bxYx2Bj53NBAlffx0LJj4KQ4mz+pAdArropPullrnVHhGxhL
         39Zg==
X-Gm-Message-State: ALoCoQm9FHeiSZ9cHZ8Ov9SmNPEld9rpoQiTI33ijUX7J7LMiCL4yv55YI6R5+jldidkaX/SY2WX
X-Received: by 10.182.98.196 with SMTP id ek4mr186756obb.17.1444781519333;
        Tue, 13 Oct 2015 17:11:59 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.112.2 with SMTP id im2ls1138225igb.40.canary; Tue, 13 Oct
 2015 17:11:58 -0700 (PDT)
X-Received: by 10.50.30.102 with SMTP id r6mr285696igh.3.1444781518650;
        Tue, 13 Oct 2015 17:11:58 -0700 (PDT)
In-Reply-To: <78f1c83a-f866-4f64-aba2-939078fdc58b@isocpp.org>
X-Original-Sender: GorNishanov@gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: std-proposals@isocpp.org
X-Google-Group-Id: 399137483710
List-Post: <http://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:21729
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/21729>

------=_Part_8063_105748413.1444781517886
Content-Type: multipart/alternative; 
	boundary="----=_Part_8064_1205241062.1444781517886"

------=_Part_8064_1205241062.1444781517886
Content-Type: text/plain; charset=UTF-8

Okay. Slightly less cryptic reply. Coroutine frame must be stationary once 
the coroutine starts running.
Resumable Expressions abandoned movability/copyability of the lambda* that 
was present in earlier resumable lambda proposal. Due to the reasons 
highlighted in the thread I linked earlier. Thus, the resumable expressions 
is in exactly the same boat as P0057.

The difference is that in Resumable Expressions you must do type erasure by 
hand which is difficult to eliminate.
Whereas in P0057 compiler decides whether it needs to do type erasure or 
not, thus, allowing to optimize it out when unnecessary.


-- 

--- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

------=_Part_8064_1205241062.1444781517886
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Okay. Slightly less cryptic reply. Coroutine frame must be=
 stationary once the coroutine starts running.<div>Resumable Expressions ab=
andoned movability/copyability of the lambda* that was present in earlier r=
esumable lambda proposal. Due to the reasons highlighted in the thread I li=
nked earlier. Thus, the resumable expressions is in exactly the same boat a=
s P0057.</div><div><br></div><div>The difference is that in Resumable Expre=
ssions you must do type erasure by hand which is difficult to eliminate.</d=
iv><div>Whereas in P0057 compiler decides whether it needs to do type erasu=
re or not, thus, allowing to optimize it out when unnecessary.<br><br><br><=
/div></div>

<p></p>

-- <br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

------=_Part_8064_1205241062.1444781517886--
------=_Part_8063_105748413.1444781517886--

.
