220 40286 <356e6b9d-b632-4274-896d-957935c576c1@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Adrian H <adrian.hawryluk@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: std::between ?
Date: Tue, 2 Oct 2018 08:34:15 -0700 (PDT)
Lines: 87
Approved: news@gmane.org
Message-ID: <356e6b9d-b632-4274-896d-957935c576c1@isocpp.org>
References: <7b85d688-9013-407d-b7d3-10d28494e960@isocpp.org>
 <CAFdMc-36tAQ1JJxYOz3PEKv1qnGs=WPGN3NWWKCEwY+SgNdDXA@mail.gmail.com>
 <b917d650-33b0-459d-bba0-c0f03bc4db8d@isocpp.org> <CAFdMc-2=92DEL46jYrGPwESnUkwbYdrrWs=SfL3woc9A4H+6jQ@mail.gmail.com>
 <52d6bd1b-4afb-4f16-adde-8ee8b5ba1041@isocpp.org> <CAFdMc-3H6mrTgVNDe2ZGXmQ4WV9UQNv-EijJh=HnGHHHL7fh5w@mail.gmail.com>
 <bacc5cd9-230a-4865-858c-78566502cfef@isocpp.org>
 <CAFdMc-0wDSKSAGQFoj4GSBFyp1fD4jC4A_LrMw3k4=nj2jBRgQ@mail.gmail.com>
 <952795b3-b87b-4140-b4f2-2c9ad968b2f7@isocpp.org>
 <6d2bdffd-187d-44e7-90b2-4c158ee19fe4@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_1514_775975907.1538494455224"
X-Trace: blaine.gmane.org 1538494332 1358 195.159.176.226 (2 Oct 2018 15:32:12 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Tue, 2 Oct 2018 15:32:12 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCULLOGNUQIRB6E7Z3OQKGQELNAVNBQ@isocpp.org Tue Oct 02 17:32:08 2018
Return-path: <std-proposals+bncBCULLOGNUQIRB6E7Z3OQKGQELNAVNBQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-yw1-f69.google.com ([209.85.161.69])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCULLOGNUQIRB6E7Z3OQKGQELNAVNBQ@isocpp.org>)
	id 1g7Mec-0000EN-QN
	for gclcip-std-proposals@m.gmane.org; Tue, 02 Oct 2018 17:32:06 +0200
Original-Received: by mail-yw1-f69.google.com with SMTP id c67-v6sf1132714ywh.13
        for <gclcip-std-proposals@m.gmane.org>; Tue, 02 Oct 2018 08:34:17 -0700 (PDT)
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=R9ZV04kakEeDpNSpQ90zb9ViizahTmxOD08K2tvDavo=;
        b=ijWFrW2UaVozO/KVkwQt6ffm9GgcCd8e+uDYCd1Ycsv+Ir9v3JKrTWI3ht3yfILcYM
         6Yzr7n9Rt8jh0kH08qnei+d44stvF4JtwJ8PARBY6rk60nBTuufybKfVI4xZ1w9LANRk
         hLuwykMIoho++Zcr87HxVcH+RROMqJqwlHAp65VmeN44mjpiU7pJV6iW/MmN/M+JeJVy
         II5DO53PvQj0IeVh029KEiIAMEP/Hz4yQlwpx5qMYTsuHTip9DnzuYZSBhd7dYKpqTqq
         MSFVE0V1HKR2W5VpsFZvHgADyUiQaA/RgH8ixJWmpGxHsf3JU7Rg7Ae5xrvYVioq4Z1A
         fuKg==
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=R9ZV04kakEeDpNSpQ90zb9ViizahTmxOD08K2tvDavo=;
        b=G41Fh80nh/apFiRG5MlE0obstbOimwwx94SJAoC5TyJeDkDNlAgx9F9X/fUham40UR
         v7U45kqp6Q5wMg1Yvf5pp6o04NdXHZOB2BbTxUyWcPuI/cTok2leRQ0s8apf7ItSDMYJ
         LPO1WmL+arvquCqZjjj4hahi5GrFkAT4ytsbXnf0qkXjLAj0V9cVx1gKrzgotxSmyzMO
         VTg/+V4aAw+UNaUSmsl4fvFZOyyw0jINpF9WUJOzDKK7JXOP3adTENjRpI+RHZH1zA+i
         PZcEs4sSi+Yq4y/5TorMZ1zrmWj0P3dJLhWQURYvSK6KdvL3lVdGWLPWOW6IUcsO09Re
         8AVg==
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=R9ZV04kakEeDpNSpQ90zb9ViizahTmxOD08K2tvDavo=;
        b=bp0DOqH6lPZGnZGF3J4w2/IVqH/QZwnapZYImBqEDC2XVMkTSWUukrO2xwcFrc+QPA
         XNzcJ/OAMZsBMFlMtGloczqoUFknzNyU1Utg1I3Urf+chK99mhyODFb6373k0HpZSSnY
         cRSufUOjfsPZKXf/6A3OxZ22LsVD7Eo4VIvx07GM9YCVXV/jMENGPpwHby7hs92VfxQW
         4eHyQLVEd3Xz6ZAZ6cGOUm+Qcg4dOuABNQJVGt+nCmvvEXs6op5S5mz2QLW0+4T50aM1
         p7EPXL+XUZPgukvdd02PSUb2KqVOi6SbzHhkdika1r6t9dY3314RkbdyfbBAREUy2Hs0
         Ff2g==
X-Gm-Message-State: ABuFfojjAnh1rIoIWuR9XhudKTXqLVuwTM/dC2wwHbawozcKcu/o/mxz
	noE6c1hbSChqQjqRfL/jrDcK6Q==
X-Google-Smtp-Source: ACcGV61jeeLWoCG7Q9hO+Y7tPVtVDdwu1jmoRbs0szCSqbquPzzPFwfVfoZH1yJwwOBgbtY36kr0oQ==
X-Received: by 2002:a25:6c87:: with SMTP id h129-v6mr8147180ybc.31.1538494457015;
        Tue, 02 Oct 2018 08:34:17 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:a25:4206:: with SMTP id p6-v6ls3240054yba.9.gmail; Tue, 02
 Oct 2018 08:34:16 -0700 (PDT)
X-Received: by 2002:a25:7414:: with SMTP id p20-v6mr22345ybc.4.1538494455830;
        Tue, 02 Oct 2018 08:34:15 -0700 (PDT)
In-Reply-To: <6d2bdffd-187d-44e7-90b2-4c158ee19fe4@isocpp.org>
X-Original-Sender: adrian.hawryluk@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:40286
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/40286>

------=_Part_1514_775975907.1538494455224
Content-Type: multipart/alternative; 
	boundary="----=_Part_1515_449969710.1538494455224"

------=_Part_1515_449969710.1538494455224
Content-Type: text/plain; charset="UTF-8"

On Tuesday, October 2, 2018 at 11:31:32 AM UTC-4, Adrian H wrote:
>
> Wow.  I take it back.  The optimizer seems more than capable of removing 
> all of the cruft. gcc 8.2 output:
>
> https://godbolt.org/z/DecqoQ
>
> shows that there doesn't seem to be any boolean mid term storage and short 
> circuiting does appear to be happening.  I'm really impressed.
>
> Evan MS VC++ 2017 doesn't do too bad of a job.  Though it does leave a 
> bunch of unnecessary code in the binary, it doesn't actually execute it.  
> https://godbolt.org/z/N58hN4
>
> Truly impressive.  Seems that there is really no need for this feature 
> after all.
>
 
Maybe something like this this should be added to the std lib then.

A 

-- 
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/356e6b9d-b632-4274-896d-957935c576c1%40isocpp.org.

------=_Part_1515_449969710.1538494455224
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Tuesday, October 2, 2018 at 11:31:32 AM UTC-4, Adrian H=
 wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.=
8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"ltr"><div>W=
ow.=C2=A0 I take it back.=C2=A0 The optimizer seems more than capable of re=
moving all of the cruft. gcc 8.2 output:</div><div><br></div><div><a href=
=3D"https://godbolt.org/z/DecqoQ" target=3D"_blank" rel=3D"nofollow" onmous=
edown=3D"this.href=3D&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgod=
bolt.org%2Fz%2FDecqoQ\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFoL6qI6brxz0d=
MGMzJMb2fiE-l-w&#39;;return true;" onclick=3D"this.href=3D&#39;https://www.=
google.com/url?q\x3dhttps%3A%2F%2Fgodbolt.org%2Fz%2FDecqoQ\x26sa\x3dD\x26sn=
tz\x3d1\x26usg\x3dAFQjCNFoL6qI6brxz0dMGMzJMb2fiE-l-w&#39;;return true;">htt=
ps://godbolt.org/z/DecqoQ</a></div><div><br></div><div>shows that there doe=
sn&#39;t seem to be any boolean mid term storage and short circuiting does =
appear to be happening.=C2=A0 I&#39;m really impressed.</div><div><br></div=
><div>Evan MS VC++ 2017 doesn&#39;t do too bad of a job.=C2=A0 Though it do=
es leave a bunch of unnecessary code in the binary, it doesn&#39;t actually=
 execute it.=C2=A0 <a href=3D"https://godbolt.org/z/N58hN4" target=3D"_blan=
k" rel=3D"nofollow" onmousedown=3D"this.href=3D&#39;https://www.google.com/=
url?q\x3dhttps%3A%2F%2Fgodbolt.org%2Fz%2FN58hN4\x26sa\x3dD\x26sntz\x3d1\x26=
usg\x3dAFQjCNH03vJbJf35gNtF2f50jVG4LHZRXw&#39;;return true;" onclick=3D"thi=
s.href=3D&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgodbolt.org%2Fz=
%2FN58hN4\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH03vJbJf35gNtF2f50jVG4LHZ=
RXw&#39;;return true;">https://godbolt.org/z/N58hN4</a></div><div><br></div=
><div>Truly impressive.=C2=A0 Seems that there is really no need for this f=
eature after all.</div></div></blockquote><div>=C2=A0</div>Maybe something =
like this this should be added to the std lib then.<br><br><div>A=C2=A0</di=
v></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/356e6b9d-b632-4274-896d-957935c576c1%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/356e6b9d-b632-4274-896d-957935c576c1=
%40isocpp.org</a>.<br />

------=_Part_1515_449969710.1538494455224--

------=_Part_1514_775975907.1538494455224--

.
