220 36357 <83d8a425-fd2f-41b6-9941-2a5deb27806d@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Nicol Bolas <jmckesson@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Sub-objects and their copy ellision
Date: Tue, 26 Dec 2017 07:25:27 -0800 (PST)
Lines: 83
Approved: news@gmane.org
Message-ID: <83d8a425-fd2f-41b6-9941-2a5deb27806d@isocpp.org>
References: <caca241d-3498-b79b-fbf3-e57d8b7c3518@technion.ac.il>
 <1c6eff77-d71f-4dd7-8c13-f609460a03f0@isocpp.org>
 <c14fe13b-a658-e295-40a6-1465638d18db@technion.ac.il>
 <3ec0bd22-b228-4026-bb49-aec5102918c7@isocpp.org>
 <CAKqmYPbdMjxUOp9u+Ercx+eYjvUJvAn+CZe5EDpgGd4vaz47ag@mail.gmail.com>
 <924751e5-c880-42aa-95ab-99ef1050be2e@isocpp.org>
 <80bbb75a-2a62-537a-3733-898225325a41@technion.ac.il>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_13377_1142503506.1514301927407"
X-Trace: blaine.gmane.org 1514301811 9644 195.159.176.226 (26 Dec 2017 15:23:31 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Tue, 26 Dec 2017 15:23:31 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCEKFTV6ZUMBB2GTRHJAKGQEMEQAFKI@isocpp.org Tue Dec 26 16:23:27 2017
Return-path: <std-proposals+bncBCEKFTV6ZUMBB2GTRHJAKGQEMEQAFKI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ua0-f199.google.com ([209.85.217.199])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCEKFTV6ZUMBB2GTRHJAKGQEMEQAFKI@isocpp.org>)
	id 1eTr4h-00029B-0x
	for gclcip-std-proposals@m.gmane.org; Tue, 26 Dec 2017 16:23:27 +0100
Original-Received: by mail-ua0-f199.google.com with SMTP id h30sf23077451uac.1
        for <gclcip-std-proposals@m.gmane.org>; Tue, 26 Dec 2017 07:25:30 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=Jx2V2oygUo2zuSYsR4RittRbkmOLW0UNEApiO9/pyN0=;
        b=w+DAvy9a1H2l9eZ4mBOTh/QWLAqLT9xGtj55I/4jLdS9Notuwb9crcDWqwx6Vm3Tq5
         pl/iU11ObVBRoV+YZFeyjMrJmfJzJ68aLPd/22rDNoD1ho7UmLq7hYoG+fPyn0ISpATQ
         qebKml1biNVG/WaEvNCuLkjXocKa5QGiAjXV0a594Q+cF1bn2qcHnHeVgSwLJ0DU8f8B
         nTWXC9iRkqIPLusepGTHaEY7PKDN8TZPaS2vPmlFXOIEpuxlDMUap+FviGkqmowhDpuA
         WTUS6OZuRaX1nPSVzUiBpXXXouZw5fB7Id/9l35Y3F9ljeK59x8GqoqXNMqFja97UOFw
         vCdg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=Jx2V2oygUo2zuSYsR4RittRbkmOLW0UNEApiO9/pyN0=;
        b=AYtEyqiGHyekmLtVA/DNxZ7ULk3EBiJZBM6sKYPdgjk6xAF6u96t9UyobZOuUbnL28
         Lb3ebjcsJ73yovtnnW+FSqpyoqUpSbyEnKvMr5uzDYhWxnAS6IJaYzV8EEjBsW9+dlDc
         jN4AI1vD1e7rJekFBKZtdcsA6O8OyfvnIEwI5rfWtGVA9GwwWlihepm+kAgfPCnc+j8O
         dyl+twCrAep2pHG3wqA++Y6WStbEAUJ4X19ldvnwaLajy892NYmNfxwc2Hism/iVC3sU
         RUIKfOZK2AdxIR3/dP0Mq4S/6itk3fLMIqd9uM30cx8jGANh6516I1r0/kC0YpKZRiC6
         EeGg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:date:from:to:message-id:in-reply-to:references
         :subject:mime-version: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=Jx2V2oygUo2zuSYsR4RittRbkmOLW0UNEApiO9/pyN0=;
        b=tb3VnkeyrBfyJ0sKH/a2XYaIfPryKp+n/JVz4GEsFXfCsQesxAkITk+5g4TMO7CMiq
         U/+fFTJnoDEP9ESY+fPzZDElETVVUx3RtLyjFQWefl0rXXKC3b42TDaILkJPoqeMAPNH
         uVSF6/QMDxNOXBic2rZZ24ZuHjvfIHeR6zifnauq7rRJGQ641+vnKSFdWPZzo5km3/1x
         YqW86mowtsWJD7h1QEO+tok7cnv9BokXhksc5RoAWZPNrjsxJyqOLaGDbCLaOuJ2jphH
         4Je4NUaghpfbcdjbT9nUmNMidhyqciZtXzZfJAEHbu4jCdrU5o6XQkX8z6JbHhcxpgyC
         fU9Q==
X-Gm-Message-State: AKGB3mLaSWAITV2482VLWAYyqz809YH2rhOgLOv4gpVL4NsViiSnqjay
	OTwgyisl4GHJxEWv/smBdwOJ7A==
X-Google-Smtp-Source: ACJfBosdvydg2BbT5pJ7x9sVPw6ffiPDrDxqKb/XCbfsEvvdfgNeTjnMIaaUp4WkQRMOCliNDHdewA==
X-Received: by 10.176.9.195 with SMTP id e3mr12971247uah.88.1514301929598;
        Tue, 26 Dec 2017 07:25:29 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.159.45.148 with SMTP id v20ls260549uaj.2.gmail; Tue, 26 Dec
 2017 07:25:28 -0800 (PST)
X-Received: by 10.31.2.144 with SMTP id 138mr2375948vkc.5.1514301928018;
        Tue, 26 Dec 2017 07:25:28 -0800 (PST)
In-Reply-To: <80bbb75a-2a62-537a-3733-898225325a41@technion.ac.il>
X-Original-Sender: jmckesson@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: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://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>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:36357
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/36357>

------=_Part_13377_1142503506.1514301927407
Content-Type: multipart/alternative; 
	boundary="----=_Part_13378_1409979297.1514301927407"

------=_Part_13378_1409979297.1514301927407
Content-Type: text/plain; charset="UTF-8"

On Tuesday, December 26, 2017 at 4:05:52 AM UTC-5, Eyal Rozenberg wrote:
>
> On 12/25/17 8:15 PM, Nicol Bolas wrote: 
> > On Monday, December 25, 2017 at 1:12:19 PM UTC-5, Antony Polukhin wrote: 
> > Why is this circumstance important enough to be /worth/ all of this 
> hassle? 
>
> Because right now compilers are entirely-or-partially prevented from 
> applying a useful optimization in some relatively-common cases.
>

I see little evidence that these cases are indeed "relatively-common" 
enough to bother with this.

> Then why take the time to change the standard to allow it? 
>
> Because now it (seems to) prevent it, and definitely doesn't encourage it.
>

Right, but that wasn't my question. My question was why we should take the 
time to standardize something that's such a corner case. That compilers can 
only apply such an optimization when the stars align just right.

-- 
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.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/83d8a425-fd2f-41b6-9941-2a5deb27806d%40isocpp.org.

------=_Part_13378_1409979297.1514301927407
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Tuesday, December 26, 2017 at 4:05:52 AM UTC-5, Eyal Ro=
zenberg wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-l=
eft: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">On 12/25/17 8:15=
 PM, Nicol Bolas wrote:
<br>&gt; On Monday, December 25, 2017 at 1:12:19 PM UTC-5, Antony Polukhin =
wrote:
<br>&gt; Why is this circumstance important enough to be /worth/ all of thi=
s hassle?
<br>
<br>Because right now compilers are entirely-or-partially prevented from
<br>applying a useful optimization in some relatively-common cases.<br></bl=
ockquote><div><br></div><div>I see little evidence that these cases are ind=
eed &quot;relatively-common&quot; enough to bother with this.</div><div><br=
></div><blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.=
8ex;border-left: 1px #ccc solid;padding-left: 1ex;">&gt; Then why take the =
time to change the standard to allow it?
<br>
<br>Because now it (seems to) prevent it, and definitely doesn&#39;t encour=
age it.<br></blockquote><div><br></div><div>Right, but that wasn&#39;t my q=
uestion. My question was why we should take the time to standardize somethi=
ng that&#39;s such a corner case. That compilers can only apply such an opt=
imization when the stars align just right.</div></div>

<p></p>

-- <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 />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/83d8a425-fd2f-41b6-9941-2a5deb27806d%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/83d8a425-fd2f-41b6-9941-2a5deb27806d=
%40isocpp.org</a>.<br />

------=_Part_13378_1409979297.1514301927407--

------=_Part_13377_1142503506.1514301927407--

.
