220 21625 <fb82d876-8a54-4c28-8e53-297018470cf6@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: Mon, 12 Oct 2015 15:18:24 -0700 (PDT)
Lines: 70
Approved: news@gmane.org
Message-ID: <fb82d876-8a54-4c28-8e53-297018470cf6@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>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_6558_1284308517.1444688304233"
X-Trace: ger.gmane.org 1444688313 10811 80.91.229.3 (12 Oct 2015 22:18:33 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Mon, 12 Oct 2015 22:18:33 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBC47RF4IW4GRBMPD6CYAKGQE7OANYGI@isocpp.org Tue Oct 13 00:18:29 2015
Return-path: <std-proposals+bncBC47RF4IW4GRBMPD6CYAKGQE7OANYGI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ig0-f197.google.com ([209.85.213.197])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC47RF4IW4GRBMPD6CYAKGQE7OANYGI@isocpp.org>)
	id 1ZllQI-00053P-8z
	for gclcip-std-proposals@m.gmane.org; Tue, 13 Oct 2015 00:18:26 +0200
Original-Received: by igcxw12 with SMTP id xw12sf4903180igc.0
        for <gclcip-std-proposals@m.gmane.org>; Mon, 12 Oct 2015 15:18:25 -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=ocKfJBBz6bnI4lvpZNBkU1jSBZqmyTH1jmxfU9XBZUE=;
        b=UCU9Yxr82dwAU/9WzYNrKbiQnRv9umGO4juDrJCeC6JJsR2m237l74+zW1mh/yepTZ
         0AjtkkyQNUCFFLCd9goURAOfo20rj8APrPNJsQb4kVQKDczSJ8DYi4ZcTDHWcorwHzfg
         hjLs+wzKlOgSPN1iM5GIlHKwJwiBJx0CLcfS7jKfUlUnQRE9NJvmi3BUk82fo/q4GWs0
         SSa20D1Ce85pRnfdNdgbJNEjZfhLRwp0IDT2REXXSKnYJpJGtPtOULxd5XlpeolWknKp
         PNT1K79Qv+niSh5am1tskWwNUa/x8F2HPODd0xCEJe9izic7HFmEZGkXS9HBtBdptNXg
         MiXw==
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=ocKfJBBz6bnI4lvpZNBkU1jSBZqmyTH1jmxfU9XBZUE=;
        b=c2DSfiMiPySFsXkMhqOf9XxO/ZNU9yNfCadc3UVj7SUidA2yuZCRCQYh1BrMTHI6CO
         9gEFpWSghKWUJ75IfSNd7V1aQnKUeWz/E7FYok5aD+tDoH1o8gzc4GIoMiy5RtXSNx2k
         LR6CaP/4Mcxw3tQ/SJOQfuDJmYPJjhZnyyhWUxDksOs0jAgzoYu7Q6h+GU2HuI0zs42a
         1zLZofmKOI27VjWKXAo8j5S3NEhhqF4Qg26RvO19CXSUV/v9ERLyQwxbd2VlS0bvB3ra
         /KNWZ4ino3UYyPQtcSGkzyNRhVDdfi7q8RhAL1ZWQYsTNnVwUJtSeDzmPj+vuRo842Ee
         Yfmw==
X-Gm-Message-State: ALoCoQmF20ZlKVRs+xLl4fArl67FqqRed+0m1xx+Mpm3qJYStnyewXaAEW81XEDV9rPrWI6kXs/R
X-Received: by 10.182.50.170 with SMTP id d10mr25890602obo.48.1444688305617;
        Mon, 12 Oct 2015 15:18:25 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.43.227 with SMTP id z3ls1238030igl.16.canary; Mon, 12 Oct
 2015 15:18:24 -0700 (PDT)
X-Received: by 10.50.32.42 with SMTP id f10mr52263igi.11.1444688304983;
        Mon, 12 Oct 2015 15:18:24 -0700 (PDT)
In-Reply-To: <561C213F.1060009@gmail.com>
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:21625
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/21625>

------=_Part_6558_1284308517.1444688304233
Content-Type: multipart/alternative; 
	boundary="----=_Part_6559_1090410128.1444688304233"

------=_Part_6559_1090410128.1444688304233
Content-Type: text/plain; charset=UTF-8



On Monday, October 12, 2015 at 2:08:21 PM UTC-7, Evgeny Panasyuk wrote:
>
> Same applies here - I want to copy/move/fork/serialize/etc coroutines, 
> and I agree to pay for possibility of problems with locals lifetime 
> issues. 


Write a proposal. It is trivial to add, clone(), checkpoint(), save(), 
restore() members to coroutine_handle<>.  Coroutine handle is just a 
pointer to a blob of memory representing the current state of the coroutine.

In fact, you can probably hack it up today using VS 2015 RTM, by providing 
your own allocator and learning the size and location of the memory block 
representing the coroutine state. Once you now it, you can pretty much do 
whatever you want with it. 

-- 

--- 
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_6559_1090410128.1444688304233
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><br>On Monday, October 12, 2015 at 2:08:21 PM UTC-7, E=
vgeny Panasyuk wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;m=
argin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Same appl=
ies here - I want to copy/move/fork/serialize/etc coroutines,=20
<br>and I agree to pay for possibility of problems with locals lifetime=20
<br>issues. </blockquote><div><br></div><div>Write a proposal. It is trivia=
l to add, clone(), checkpoint(), save(), restore() members to coroutine_han=
dle&lt;&gt;. =C2=A0Coroutine handle is just a pointer to a blob of memory r=
epresenting the current state of the coroutine.</div><div><br></div><div>In=
 fact, you can probably hack it up today using VS 2015 RTM, by providing yo=
ur own allocator and learning the size and location of the memory block rep=
resenting the coroutine state. Once you now it, you can pretty much do what=
ever you want with it.=C2=A0</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_6559_1090410128.1444688304233--
------=_Part_6558_1284308517.1444688304233--

.
