220 22055 <CAL52AauKGnTr5404=E2L0yxuJup-MGmTDTmSodbajV8k4Bhqwg@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Giovanni Piero Deretta <gpderetta@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: Wed, 28 Oct 2015 12:23:12 +0000
Lines: 85
Approved: news@gmane.org
Message-ID: <CAL52AauKGnTr5404=E2L0yxuJup-MGmTDTmSodbajV8k4Bhqwg@mail.gmail.com>
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>
	<58628096-14ae-42b2-89d3-c0bd2183bbc0@isocpp.org>
	<561DC957.8080603@gmail.com>
	<a44dae17-5f63-4c60-a943-d74a1332b54c@isocpp.org>
	<d3723a3d-1b73-4c6c-bc7f-3d224d2ec8a2@isocpp.org>
	<2e09660f-d688-474a-8811-85fb041f68b8@isocpp.org>
	<f3dbc6ee-80cf-43f1-9b49-7ed1879de0cc@isocpp.org>
	<8b78abb4-16b6-4b65-8513-6e2c17317647@isocpp.org>
	<CAL52AasThHcBZUbyT1NfgzEe+qaWKuO9eE6pxS-qfXxxSSbcbQ@mail.gmail.com>
	<779be861-3b2a-427a-b36b-ad2874c81129@isocpp.org>
	<CAL52AasaxsP2i-Bh-kVrCoKad_Z08dUpL-0w=Lb2dyTGz3f9PQ@mail.gmail.com>
	<767364f8-785d-4f8f-9bc0-852df56ee4eb@isocpp.org>
	<f27fd4c9-86c4-44a7-8162-991a32a38e63@isocpp.org>
	<CA+wfc1-qmKY-yA1fPOmWjGuR7qTMY3PRVbjxtPaPn2FLad2hBA@mail.gmail.com>
	<d7653631-b45c-4952-a308-9919e84c538e@isocpp.org>
	<CA+wfc1-s0_TZUn_FcoPnEFTOiofM8oLwdy_4EWDmtK+wApratw@mail.gmail.com>
	<f03a6bdc-6719-4f4a-bcff-e39d819e2eff@isocpp.org>
	<CA+wfc1_16+NXesmOFUrOJpPa=X+RGm0Rr89CTe1mGFWK8JUAiA@mail.gmail.com>
	<0a728eee-e8e7-48ea-adf6-2a8dae63916e@isocpp.org>
	<CA+wfc1-b_TaJT-FQmZ3hEYzH+B16CaqcBd4wbgmf84gagegHYw@mail.gmail.com>
	<e9b4c568-2a00-4f25-8324-921ca1926abe@isocpp.org>
	<CA+wfc1_mDmHcfE8-peKxfL+_kFF1UrOt4daw=mEAuT_-Rvn9Ng@mail.gmail.com>
	<CAL52AasCidZMkCaMG+5YhhC5CR-iz8oKn2S5LckEfj2qTvFQ1A@mail.gmail.com>
	<CA+wfc19ZncdOVDVhPktbKi2aikqt2MEiq66a6=vL4xq=DpZDrA@mail.gmail.com>
	<6a4f863e-faf0-42ac-b85d-0951738350ab@isocpp.org>
	<CA+wfc18yTd6FSq4r7ecLpcWbVd2FOSRQpsxNePYG+Yx_=hneGw@mail.gmail.com>
	<f2a0876c-2015-4667-b4e0-5b07c964585d@isocpp.org>
	<CA+wfc1893wwBLF1sg_4TFPDZrF8TF8OPrv3UcdksA4wFa40qZA@mail.gmail.com>
	<eb18632e-6a94-476a-a82f-2744428d1ff1@isocpp.org>
	<CA+wfc1_D0YeMFtmh1wZqVAXN-8s6TUguBEjuBRMx17vK4sg5-w@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=001a1141ffca114a3705232942a2
X-Trace: ger.gmane.org 1446035001 31008 80.91.229.3 (28 Oct 2015 12:23:21 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 28 Oct 2015 12:23:21 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDEP3I7TGEILD7GCWECRUBHQ5RBFO@isocpp.org Wed Oct 28 13:23:20 2015
Return-path: <std-proposals+bncBDEP3I7TGEILD7GCWECRUBHQ5RBFO@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wi0-f200.google.com ([209.85.212.200])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDEP3I7TGEILD7GCWECRUBHQ5RBFO@isocpp.org>)
	id 1ZrPlA-0002JU-BE
	for gclcip-std-proposals@m.gmane.org; Wed, 28 Oct 2015 13:23:20 +0100
Original-Received: by wikv3 with SMTP id v3sf3255035wik.1
        for <gclcip-std-proposals@m.gmane.org>; Wed, 28 Oct 2015 05:23:14 -0700 (PDT)
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:content-type:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=5gW5Guy0eASCioVJl/7N0x/eayXf2aaBmSTmwzpgKBw=;
        b=LkJk9eZeBFvjyhpZUtJfLbNXnGFFdq0BU6EycmeYrPqVZ4HSIrf77ryJFKCiE6Cpma
         QeB++lacj/Xkerqk2hozxT3dXfHiZQZLEVjA18WTDfLuH0v6pVeEU2hISnzMrDk9HIhM
         rfui8TZcHCgURpUpOBwi+e4K96r9GqMuDSw/VNC9+FOVBHFxA+ItUiYudEsJjPsnXdDp
         VBKDtTpXrJ017DIaFXhj17piu8iekQvA1sFGJYPSd65C6boBv6lJK+0vxFgq8mrfddS3
         laatcywCLfHH+qxHJ5GIFtmGQsqVXr8qSjnNmJEpb2Lw8x14Kqc5q4/qyprLl/MQRoFx
         2XQQ==
X-Gm-Message-State: ALoCoQmy7iMeVY6GvgumNBDQ5Lz7f+Z15qPHcE8uAWg81RQjY6/mCk3UMXq1bG9nKG4BPP/BfONc
X-Received: by 10.180.208.71 with SMTP id mc7mr529967wic.1.1446034994587;
        Wed, 28 Oct 2015 05:23:14 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.25.87.205 with SMTP id l196ls100375lfb.79.gmail; Wed, 28 Oct
 2015 05:23:13 -0700 (PDT)
X-Received: by 10.112.154.7 with SMTP id vk7mr23079423lbb.48.1446034993120;
        Wed, 28 Oct 2015 05:23:13 -0700 (PDT)
Original-Received: from mail-lf0-x230.google.com (mail-lf0-x230.google.com. [2a00:1450:4010:c07::230])
        by mx.google.com with ESMTPS id 79si28491130lfp.99.2015.10.28.05.23.13
        for <std-proposals@isocpp.org>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 28 Oct 2015 05:23:13 -0700 (PDT)
Received-SPF: pass (google.com: domain of gpderetta@gmail.com designates 2a00:1450:4010:c07::230 as permitted sender) client-ip=2a00:1450:4010:c07::230;
Original-Received: by lfbn126 with SMTP id n126so2757127lfb.2
        for <std-proposals@isocpp.org>; Wed, 28 Oct 2015 05:23:12 -0700 (PDT)
X-Received: by 10.25.212.8 with SMTP id l8mr14777316lfg.118.1446034992611;
 Wed, 28 Oct 2015 05:23:12 -0700 (PDT)
Original-Received: by 10.112.189.194 with HTTP; Wed, 28 Oct 2015 05:23:12 -0700 (PDT)
Original-Received: by 10.112.189.194 with HTTP; Wed, 28 Oct 2015 05:23:12 -0700 (PDT)
In-Reply-To: <CA+wfc1_D0YeMFtmh1wZqVAXN-8s6TUguBEjuBRMx17vK4sg5-w@mail.gmail.com>
X-Original-Sender: gpderetta@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of gpderetta@gmail.com designates 2a00:1450:4010:c07::230 as permitted
 sender) smtp.mailfrom=gpderetta@gmail.com;       dkim=pass
 header.i=@gmail.com;       dmarc=pass (p=NONE dis=NONE) header.from=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:22055
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/22055>

--001a1141ffca114a3705232942a2
Content-Type: text/plain; charset=UTF-8

On 28 Oct 2015 12:07 p.m., "Oliver Kowalke" <oliver.kowalke@gmail.com>
wrote:
>
> 2015-10-28 12:56 GMT+01:00 Giovanni Piero Deretta <gpderetta@gmail.com>:
>>
>> But why do you need it? In the proposed interface contextes are non null
only when they point to an halted context.
>
>
> I want to handle the fiber of the main-context (==main()) as the other
fibers
> otherwise the implementation must take care if the code (for instance
condition_variable::wait() is not called in a fiber -> no suspend operation)
>

What do you think of my wait example? It doesn't really care where it is
being called from, it will work just fine, right?

If you want to carry around some persistent identity, like a fiber Id or
metadata, then yes, it will have to be switched manually, by that's
application specific and should belong in the minimal api.

> --
>
> ---
> You received this message because you are subscribed to a topic in the
Google Groups "ISO C++ Standard - Future Proposals" group.
> To unsubscribe from this topic, visit
https://groups.google.com/a/isocpp.org/d/topic/std-proposals/L5ZsY1SYnrA/unsubscribe
..
> To unsubscribe from this group and all its topics, 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/.

-- 

--- 
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/.

--001a1141ffca114a3705232942a2
Content-Type: text/html; charset=UTF-8

<p dir="ltr"><br>
On 28 Oct 2015 12:07 p.m., &quot;Oliver Kowalke&quot; &lt;<a href="mailto:oliver.kowalke@gmail.com">oliver.kowalke@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; 2015-10-28 12:56 GMT+01:00 Giovanni Piero Deretta &lt;<a href="mailto:gpderetta@gmail.com">gpderetta@gmail.com</a>&gt;:<br>
&gt;&gt;<br>
&gt;&gt; But why do you need it? In the proposed interface contextes are non null only when they point to an halted context.<br>
&gt;<br>
&gt;<br>
&gt; I want to handle the fiber of the main-context (==main()) as the other fibers<br>
&gt; otherwise the implementation must take care if the code (for instance condition_variable::wait() is not called in a fiber -&gt; no suspend operation)<br>
&gt;</p>
<p dir="ltr">What do you think of my wait example? It doesn&#39;t really care where it is being called from, it will work just fine, right?</p>
<p dir="ltr">If you want to carry around some persistent identity, like a fiber Id or metadata, then yes, it will have to be switched manually, by that&#39;s application specific and should belong in the minimal api.</p>
<p dir="ltr">&gt; -- <br>
&gt;<br>
&gt; --- <br>
&gt; You received this message because you are subscribed to a topic in the Google Groups &quot;ISO C++ Standard - Future Proposals&quot; group.<br>
&gt; To unsubscribe from this topic, visit <a href="https://groups.google.com/a/isocpp.org/d/topic/std-proposals/L5ZsY1SYnrA/unsubscribe">https://groups.google.com/a/isocpp.org/d/topic/std-proposals/L5ZsY1SYnrA/unsubscribe</a>.<br>
&gt; To unsubscribe from this group and all its topics, send an email to <a href="mailto:std-proposals%2Bunsubscribe@isocpp.org">std-proposals+unsubscribe@isocpp.org</a>.<br>
&gt; To post to this group, send email to <a href="mailto:std-proposals@isocpp.org">std-proposals@isocpp.org</a>.<br>
&gt; Visit this group at <a href="http://groups.google.com/a/isocpp.org/group/std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/</a>.<br>
</p>

<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 email to <a href="mailto:std-proposals+unsubscribe@isocpp.org">std-proposals+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href="mailto:std-proposals@isocpp.org">std-proposals@isocpp.org</a>.<br />
Visit this group at <a href="http://groups.google.com/a/isocpp.org/group/std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/</a>.<br />

--001a1141ffca114a3705232942a2--

.
