220 40458 <CABPJVnT71yWK6NOU2G80CM=oe2E_m+kX58MfML+YA=cYRfZeQw@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: John McFarlane <john@mcfarlane.name>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Optional fixed point arithmetic was standardised
 into C in 2008. Why doesn't C++ adopt it?
Date: Tue, 9 Oct 2018 19:53:52 +0100
Lines: 135
Approved: news@gmane.org
Message-ID: <CABPJVnT71yWK6NOU2G80CM=oe2E_m+kX58MfML+YA=cYRfZeQw@mail.gmail.com>
References: <c02eff57-39bb-4e54-b719-6598fe7a1585@isocpp.org>
 <CAFk2RUY+QC2NN5qiSzyn_rOvJfY-B4F3t3RqJrUZVA2Jvmd77g@mail.gmail.com> <1f9ce37e-8a55-4e48-8f84-6ace99617160@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="000000000000f837b50577d042fc"
X-Trace: blaine.gmane.org 1539111121 24229 195.159.176.226 (9 Oct 2018 18:52:01 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Tue, 9 Oct 2018 18:52:01 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDS7B7WQUYOBBTPS6POQKGQEQF6J3SY@isocpp.org Tue Oct 09 20:51:57 2018
Return-path: <std-proposals+bncBDS7B7WQUYOBBTPS6POQKGQEQF6J3SY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-io1-f72.google.com ([209.85.166.72])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDS7B7WQUYOBBTPS6POQKGQEQF6J3SY@isocpp.org>)
	id 1g9x6q-0006CH-2o
	for gclcip-std-proposals@m.gmane.org; Tue, 09 Oct 2018 20:51:56 +0200
Original-Received: by mail-io1-f72.google.com with SMTP id c5-v6sf2307003ioa.0
        for <gclcip-std-proposals@m.gmane.org>; Tue, 09 Oct 2018 11:54:06 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1539111246; cv=pass;
        d=google.com; s=arc-20160816;
        b=Z+pt/4VNcrYRiRZgrRmgZ4/+cp20UCiJ1C6SwLwpySr/GmHAbzOEG0A5M2Xd9muXor
         HEz8WpivprbES78sGrHt+vN7I/JUv8ss5qCU0f5Mp8NhA6DaheXg/KMULa4GlJ7rmc+b
         N8AWHI7t3W9JbAJuglxPNT5qm8kL3vEOLtm68ATckSXfJWY+yfkmJqkNKsviF4UBW8G1
         pKPwiB99l1IsKwUS8RyuSyUm0Ks4hljJW1af8vCZYzHDEPMTATtE5sEHczfytpcEPv2s
         2jOl5tBOyiyXyWTgnH5c5O0upUnfZm2jgyuLNsy9FHMk+TUhYRVyUwx9/CRWfK/uXVbG
         BjEg==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date
         :from:in-reply-to:references:mime-version:dkim-signature;
        bh=BUsaaz0f468j5ahi/eMJqE5X0RmHPJGIr3dymqUmyZQ=;
        b=AJCW+APcaja6heiUkd+1KU487db7eZJYrgRp+RrvFSU2ZuZR3vaL/65QdzfFWkBtUJ
         H0IjzTw0fsFHGcRgi7323u7iBvtqTEl40+6JQ7Oi1TpPNNAMjzCx92yI5qMHHn2N7kXM
         +UY2wLJvu2Y6DLDLft8w03GU/5RToZ6YQoWHASs/jxngvsjmza+6ApsXa70zd1UtX43G
         vz75CKUMI0CxKcPhgIxfasr+LFydlzafYoQSyTvFeC/zSUvhCJG+ys6CKEUTiQGBmJya
         jhzwDM8ntUO0zJzstcwBp2yPt19KmE5pKQpLe3PeqxkrhTHXZRmIrJZjQwhmb8c+hQuR
         FJqA==
ARC-Authentication-Results: i=2; mx.google.com;
       spf=pass (google.com: domain of mcfarlane.john@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=mcfarlane.john@gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:references:in-reply-to:from:date:message-id:subject:to
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=BUsaaz0f468j5ahi/eMJqE5X0RmHPJGIr3dymqUmyZQ=;
        b=q1vVWkWVnRNvaA6Y6dPEO7K+NW1ZptacNxVYjKlD1f6a3tJkzIhNRwDNV6UM8EoBSZ
         sc8P0YV4bFDNg03NeGEQqlyqL6+r2q3zn8IOrX3fd6PMWu09ctyeUVRktQGH+GKiPUk2
         Nu0NklvGvWDCURb24+Qryq4UqOYLzasUfn2JtETdfPkJi+ZTg6Jk4MlDqP9+BnxE/iqP
         7v1FzAr2L96xToNAorgEDEiOMLdiiTkMDfHUguHnEAgOH9aYfwMAK/0UrgfdD/0Itisg
         pFWEdBPfk05tjBY1WDIfn/amyi8YrKmd9QGZufUogNg+NiZilQtMcwCIt3YgBqp4U/dv
         w3MA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:references:in-reply-to:from:date
         :message-id:subject:to: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=BUsaaz0f468j5ahi/eMJqE5X0RmHPJGIr3dymqUmyZQ=;
        b=qAOo4XUn/anU3Q6PJncRdmGnRSrpoLUthoMzvIgkfbKdcNTeQ2fE1zwPCzDQ42harf
         inXmGYGkEtISRyvpc1bFpoSwm5K0VsMzjhxRlkkGABLtNVOEgFv5IR3gGaJnQIla6G10
         8Lm9TZFKKkY1t04nbg2Bb1tMV9Io4ZZAe4KSe9SJ0rjM9tyhLEvb1gthTpGPMLletSlt
         EM4PRpDQTm5oXHoBPGZ/CPFXIF2XeQ41kNeCPK8mSqfoNkBpPuEHrFGgrSQyNIPInYce
         +bhJ8u7hkMT/ief/3zWXHMfcbvcPTyHDxUgJaHnQg12BOV89Th3TF0O+nOkS7zJE8vS/
         xu8A==
X-Gm-Message-State: ABuFfojOObpXSZxvm2xxBhohXgNLuBcCoU/wSdb8kunWc8sUYQX5PYz4
	+ei/SQySRfavwuHsQWG13Hk=
X-Google-Smtp-Source: ACcGV6199sDLiSYaaLDytZn3ycH+dHf/zFVUVV3up4D9qOgbkrZ8GtYymiBvz+dRoAEhp/5lbI7iiw==
X-Received: by 2002:a24:7445:: with SMTP id o66-v6mr2913614itc.20.1539111246209;
        Tue, 09 Oct 2018 11:54:06 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:a5e:8618:: with SMTP id z24-v6ls1672302ioj.0.gmail; Tue, 09
 Oct 2018 11:54:04 -0700 (PDT)
X-Received: by 2002:a6b:d611:: with SMTP id w17-v6mr20256603ioa.216.1539111244776;
        Tue, 09 Oct 2018 11:54:04 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1539111244; cv=none;
        d=google.com; s=arc-20160816;
        b=ucYsReSqtlCc4hS0IDXy0GaWST2cr+rN/F99ki9D6CYwni4Z1vEnvSxYgnJL8r7d1X
         zKIB/KP4ARJI3Ec8BaGPao7DXE4kZ1aAHxhMfrX50szP4fb+8ha8snaOFXt/fVYEVm3v
         RpNtKf25u9BzNhC+0nkb487otRqgsBZKnIwaKjnpvVZIsn/lpe+juDJFlff6UIvZHj2p
         m/F+uUSZHG02n73evEghKB/eosQZRewLKoO55qH8LsckFd6s27dprN3FWUlhmJbocUWg
         +cpIQXAU3aRuYKgd1FqHKa5tDPufysYJgk7OvUgx0vFxp9LSwybXDwmQTpy1Cnb9Mo39
         rcCA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:subject:message-id:date:from:in-reply-to:references:mime-version;
        bh=mduD7+ltksv+rSIN/HYCTLGfoM4zM6C/18SUnNZx3jU=;
        b=jaGsDvCNacuAbmYa4gb8Gf5h2s7BzRpoU6BzYRrejgJg1ndLSdPSo/t6OpZ2oU+dJi
         8Ll4mAAJiRhSBXW7JmP0nYX5OL7eHk+0QAFeAb8XjlBGTw1r7vWSUJpSUk6PznJJUr/e
         b8K6y9k9TppBuoeNVYpgWYKUXolO1SerhrElKn8qCsQHKcEEYT18vNZysOoAQQc7LCR/
         rQ81GE7VSaTSFyFW1/udFhKcSd2vwoyrtcdbE96A8dLEi3C1R/JAj4DPzQT+88h8Hysg
         jvK7NrcWdZnJw4MVbpRV2PEkYiwm+/wrRrNY0LuHXnfuApwDJVsHTrF9ocF1s3ejJU/s
         8riA==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=pass (google.com: domain of mcfarlane.john@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=mcfarlane.john@gmail.com
Original-Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65])
        by mx.google.com with SMTPS id d8-v6sor8635063iof.125.2018.10.09.11.54.04
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Tue, 09 Oct 2018 11:54:04 -0700 (PDT)
Received-SPF: pass (google.com: domain of mcfarlane.john@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65;
X-Received: by 2002:a6b:f003:: with SMTP id w3-v6mr19187500ioc.12.1539111244018;
 Tue, 09 Oct 2018 11:54:04 -0700 (PDT)
In-Reply-To: <1f9ce37e-8a55-4e48-8f84-6ace99617160@isocpp.org>
X-Original-Sender: john@mcfarlane.name
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of mcfarlane.john@gmail.com designates 209.85.220.65 as permitted
 sender) smtp.mailfrom=mcfarlane.john@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:40458
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/40458>

--000000000000f837b50577d042fc
Content-Type: text/plain; charset="UTF-8"

On Mon, Oct 8, 2018, 20:45 Niall Douglas <nialldouglas14@gmail.com> wrote:

> > So, learned something new from WG14 today, namely that C standardised
>> optional fixed point arithmetic back in 2004, with a second edition in
>> 2008. I didn't know that before. Here is a pre-publication draft of the
>> standard ISO/IEC TR 18037:2008:
>> >
>> > http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1169.pdf
>> >
>> > Why doesn't WG21 simply adopt this instead of the (library) fixed point
>> arithmetic proposals currently before it?
>>
>> Probably for the same reason why complex is a library type in C++;
>> WG21 thinks it can do better with a library approach than
>> with a built-in one.
>>
>
> Well, sure. But I really wish the authors of the relevant papers before
> WG21 described in their motivation why they think that a library approach
> is clearly superior to an already published standard. That's a fairly high
> bar, in my opinion, to meet when essentially proposing "I don't think the
> standardised way is sufficient for reasons A, B and C. Here's what I
> propose instead ...". And I don't remember such explanatory text in
> motivations. I was hoping somebody could link me to such a text, I could
> read it, and as someone without domain expertise in fixed point arithmetic,
> I could go away feeling satisfied WG21 is on the right track on this.
>
> Niall
>

Here's a brief mention of N1169:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0037r5.html#N1169
I'm not sure it's ever come up before. I assumed the advantages of
parameterizing exponent were fairly obvious.

>
> --
> 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/1f9ce37e-8a55-4e48-8f84-6ace99617160%40isocpp.org
> <https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/1f9ce37e-8a55-4e48-8f84-6ace99617160%40isocpp.org?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CABPJVnT71yWK6NOU2G80CM%3Doe2E_m%2BkX58MfML%2BYA%3DcYRfZeQw%40mail.gmail.com.

--000000000000f837b50577d042fc
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div>On Mon, Oct 8, 2018, 20:45 Niall Douglas &lt;<a href=3D"mailto:nialldo=
uglas14@gmail.com">nialldouglas14@gmail.com</a>&gt; wrote:</div><div class=
=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8=
ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class=3D"gmail_=
quote" style=3D"margin:0;margin-left:0.8ex;border-left:1px #ccc solid;paddi=
ng-left:1ex">&gt; So, learned something new from WG14 today, namely that C =
standardised optional fixed point arithmetic back in 2004, with a second ed=
ition in 2008. I didn&#39;t know that before. Here is a pre-publication dra=
ft of the standard ISO/IEC TR 18037:2008:
<br>&gt;
<br>&gt; <a href=3D"http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1169.p=
df" rel=3D"nofollow" target=3D"_blank">http://www.open-std.org/jtc1/sc22/wg=
14/www/docs/n1169.pdf</a>
<br>&gt;
<br>&gt; Why doesn&#39;t WG21 simply adopt this instead of the (library) fi=
xed point arithmetic proposals currently before it?
<br>
<br>Probably for the same reason why complex is a library type in C++;
<br>WG21 thinks it can do better with a library approach than
<br>with a built-in one.
<br></blockquote><div><br></div><div>Well, sure. But I really wish the auth=
ors of the relevant papers before WG21 described in their motivation why th=
ey think that a library approach is clearly superior to an already publishe=
d standard. That&#39;s a fairly high bar, in my opinion, to meet when essen=
tially proposing &quot;I don&#39;t think the standardised way is sufficient=
 for reasons A, B and C. Here&#39;s what I propose instead ...&quot;. And I=
 don&#39;t remember such explanatory text in motivations. I was hoping some=
body could link me to such a text, I could read it, and as someone without =
domain expertise in fixed point arithmetic, I could go away feeling satisfi=
ed WG21 is on the right track on this.</div><div><br></div><div>Niall</div>=
</blockquote></div><div><br></div><div>Here&#39;s a brief mention of N1169:=
<br><a href=3D"http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p003=
7r5.html#N1169">http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p00=
37r5.html#N1169</a><br>I&#39;m not sure it&#39;s ever come up before. I ass=
umed the advantages of parameterizing exponent were fairly obvious.<br></di=
v><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br></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" target=3D"_=
blank">std-proposals+unsubscribe@isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org" target=3D"_blank">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/1f9ce37e-8a55-4e48-8f84-6ace99617160%=
40isocpp.org?utm_medium=3Demail&amp;utm_source=3Dfooter" target=3D"_blank">=
https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/1f9ce37e-8a55-=
4e48-8f84-6ace99617160%40isocpp.org</a>.<br>
</blockquote></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/CABPJVnT71yWK6NOU2G80CM%3Doe2E_m%2BkX=
58MfML%2BYA%3DcYRfZeQw%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfoo=
ter">https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CABPJVnT7=
1yWK6NOU2G80CM%3Doe2E_m%2BkX58MfML%2BYA%3DcYRfZeQw%40mail.gmail.com</a>.<br=
 />

--000000000000f837b50577d042fc--

.
