220 40459 <CABPJVnSNtVyY-kp+2WjKKjSH7Arey-h36iuv8Ui=v6uO9vBe4A@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:56:15 +0100
Lines: 157
Approved: news@gmane.org
Message-ID: <CABPJVnSNtVyY-kp+2WjKKjSH7Arey-h36iuv8Ui=v6uO9vBe4A@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> <CABPJVnT71yWK6NOU2G80CM=oe2E_m+kX58MfML+YA=cYRfZeQw@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="000000000000781a480577d04b88"
X-Trace: blaine.gmane.org 1539111263 2307 195.159.176.226 (9 Oct 2018 18:54:23 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Tue, 9 Oct 2018 18:54:23 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDS7B7WQUYOBBW7T6POQKGQEQZLXCQY@isocpp.org Tue Oct 09 20:54:18 2018
Return-path: <std-proposals+bncBDS7B7WQUYOBBW7T6POQKGQEQZLXCQY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-it1-f198.google.com ([209.85.166.198])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDS7B7WQUYOBBW7T6POQKGQEQZLXCQY@isocpp.org>)
	id 1g9x98-0000Vy-5Q
	for gclcip-std-proposals@m.gmane.org; Tue, 09 Oct 2018 20:54:18 +0200
Original-Received: by mail-it1-f198.google.com with SMTP id m123-v6sf2960493ith.5
        for <gclcip-std-proposals@m.gmane.org>; Tue, 09 Oct 2018 11:56:29 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1539111388; cv=pass;
        d=google.com; s=arc-20160816;
        b=pweTxKhwiGn4EUja3Y11mYFqPFqYCh+AbnAn7j+/M1NgOg4nTfudzceiD2JmVPJqHh
         PyvS5vRLwqJQLXx3LimtzhpUsmNSL4FD5QrYHKbrqTB1RJJCoMKxZ9yeVoG1M4MkgWec
         mmVTT5eZ9R9Gmjd/ZVoo4tP6etrwUMb06wBFCB2/3asVUMZK+RSakPZYkxlWRHdQGzxk
         yIa2h1Bzgi84+aN/64eYg7H6sYkBWaR4xRNENbJck80RJslSZXV6WsUKUgq5yiXb5jEF
         SQqPdxsgWKQtBzPFxT1/6Apw/4txFpS3Gx1Yg/zLu5rq+Y9xuYc3Xw8L2HKF+/YM6qMj
         a5iQ==
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=3jMRFlj+uCgct/ENPRyji+yOclYjVZB7pcdOgTvupn8=;
        b=ZJvmGbg96//qOZijrP4np5PaEW4cGuY9U4SqsNEdbqzs3VG+l86ZqFrzwlNVyDG1ro
         gIlvukzWoWJfygOwxz4mZQgWAXgRafJfkn6tWNTOYDl//uFvopyh6Woa5ABKUiOTog9A
         hyuNJ5Wd+kZ0gbe76TSS/fxzcxi6fgN0OrUO1UDH7/OcCS1FE+JvHh5dzAjGw+Jv8x9L
         geqtX+RJ9m4K1LImZXf2iGmeTCSt5nX9czvrtHmPh/WVqJ9rUIFNtjJw5LyrgOBaTypP
         Wpjr5EpQRfYJViPKXPPRnWlo1fGJmVh9l4t5LsGLZtlwLAn25Kh87QJsxiZzl3pGn5wR
         pOxg==
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=3jMRFlj+uCgct/ENPRyji+yOclYjVZB7pcdOgTvupn8=;
        b=hVakBZFQ2mCUxTcCd+nQ8Za4x5UHMyw7UHCHkN6ZCKNHuuiN270NYsOmwUExbFXgL9
         +b1Kb5jtonPWSS7+e/0RvvdTtulfDNhr6bMPd5SCTF2ZCUW+b1BXWc1Orlxm3xxoofJu
         AabgmvkZzqptTRp0XLNvBSApScNlJzOr3QN8Hi8j4KAleOpkGKUaCWLaYd9h05YCt0zw
         WGjsYo4ZclfATmOVYzuhU0iPgiZxsPfoxBsJ1TDUzM7oQdUQxHKe0OeFXFVThfa256Lq
         iD4l3AiUGcids1In9ztyilSfBDT7hP9WNTVHXxrNbcwjzhk0BsnmlWWGmgsYP5IsGnBF
         67pA==
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=3jMRFlj+uCgct/ENPRyji+yOclYjVZB7pcdOgTvupn8=;
        b=UfLDI9ps241dMrruxNVtp2AtTyBypzR+Pb3ZCMXym3zDq08LFTvgGA4+nA7/n8j777
         96FGn6HZ8T8JMyGhOG/RyiTJJkt84XwMC2UhNCyNrwFHRarOeahZKvgO/GGYi8q3ESaA
         jIR4xiKgdYWwxKebiFmc1xAK/66/aYk1W2NBA0MxBoYEnWkCpD0uM4IhaEALzNRghp4j
         sYALTH3JlVWGxANDjK2h9YG/IuzOHtBlIrVW9mEA8icsQdQBTribCZcoWWkZI4ix1v7g
         1qUshD8wwRdGszz+QqfLSjHiMoKX3JRRkg8n57ecy3ZK/ANzkq6vlycC9oaumthCHCWq
         PmdQ==
X-Gm-Message-State: ABuFfoi8a+b7NqQMfmIfoVinsp3y7tBtCX2cde6G6QbV3xJP8MR9hBgW
	25H9OhgdFGmma0llf56MGR0=
X-Google-Smtp-Source: ACcGV63bvjmHRINIGGMo0jHcFPgghuY7EYw2/t6ofDWFMGZ5T9G2VGIpHF5162txWgePYXKRrFUI1A==
X-Received: by 2002:a24:2193:: with SMTP id e141-v6mr3021838ita.2.1539111388550;
        Tue, 09 Oct 2018 11:56:28 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:a6b:610a:: with SMTP id v10-v6ls324893iob.8.gmail; Tue, 09
 Oct 2018 11:56:27 -0700 (PDT)
X-Received: by 2002:a6b:d004:: with SMTP id x4-v6mr19123161ioa.299.1539111387332;
        Tue, 09 Oct 2018 11:56:27 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1539111387; cv=none;
        d=google.com; s=arc-20160816;
        b=SS1JRSSH+ECgDbRWsuTx/dwh9SNcLj+3uwJNGuKFEB0TaPnmD7sZ4X+ZOHV0G5xObz
         l+9BzUxdpfCkYL+NyTg0oQe49KIyNPxX+hOASrZ3Rm079TT5IrmQS8Ax9YDmyfms2qEa
         gom6F/NUrWhjfjo32pzQOx823hTA8XADZyIJphhjS/vp5TXLSkz8oAyZH+TDLQjWbr7D
         Lj6n4U3xom2VqyadbUE3liovt3KhI7eP15AWHDWGIhBCAHwRAwsO9awv4cAzlGHeOf2H
         GxPk1qmiAbx4BnbBaOkxFncED0HFUjSyUQKotAwdSvH135L45Vq9yKdj1aZ4pIrUAQZN
         hC6g==
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=9T1CuV1BakSWUNX4rtCYbPAX3zS3GEqVKCTkWxsuWfw=;
        b=CfvAhyCEGw/04li7yBOnWE8dgLYyEA3UNz5ZC0YU/xtYAvAG5EESmwVf9Zi/wZutWH
         F+mnjT4Syc/LaFo71uqc1t7z0UKmz9mw/3dg5ZaxL4njQKFbuTiGtBw6gq/WmFnooSCL
         cqDG8O8BqvEC8N6EsspOhfsyw83q54IKxMKZaf4rNNhrY6K2TV24lqMah4/kmiICSN7c
         RW9XNp2if+GRLWAVYDfpyNfdXJMDaWT6Ju4ZhmJj7jVSfYsGyHB1UUjgc076w5L2pbl8
         17aoALIRPzqcZu39o3F2TfK1+SR9nOA2TcBP1K6v6PCEEZgEXhIBL+mXzYBGggWFJhWD
         G64Q==
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 e80-v6sor4796200iof.130.2018.10.09.11.56.27
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Tue, 09 Oct 2018 11:56:27 -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:5104:: with SMTP id f4-v6mr18951955iob.114.1539111386613;
 Tue, 09 Oct 2018 11:56:26 -0700 (PDT)
In-Reply-To: <CABPJVnT71yWK6NOU2G80CM=oe2E_m+kX58MfML+YA=cYRfZeQw@mail.gmail.com>
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:40459
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/40459>

--000000000000781a480577d04b88
Content-Type: text/plain; charset="UTF-8"

On Tue, Oct 9, 2018, 19:53 John McFarlane <john@mcfarlane.name> wrote:

> 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.
>

I nearly forgot: here's much the same conclusion being made in the other
C++ fixed-point proposal.
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0106r0.html#prior_art

John

>
>> --
>> 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/CABPJVnSNtVyY-kp%2B2WjKKjSH7Arey-h36iuv8Ui%3Dv6uO9vBe4A%40mail.gmail.com.

--000000000000781a480577d04b88
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div class=3D"gmail_quote"><div dir=3D"ltr">On Tue, Oct 9, 2018, 19:53 John=
 McFarlane &lt;<a href=3D"mailto:john@mcfarlane.name">john@mcfarlane.name</=
a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 =
0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Mon, Oct 8, 2=
018, 20:45 Niall Douglas &lt;<a href=3D"mailto:nialldouglas14@gmail.com" ta=
rget=3D"_blank">nialldouglas14@gmail.com</a>&gt; wrote:</div><div class=3D"=
gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;b=
order-left:1px #ccc solid;padding-left:1ex"><blockquote class=3D"gmail_quot=
e" style=3D"margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-l=
eft:1ex">&gt; So, learned something new from WG14 today, namely that C stan=
dardised optional fixed point arithmetic back in 2004, with a second editio=
n in 2008. I didn&#39;t know that before. Here is a pre-publication draft o=
f 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" target=3D"_blank">http://www.open-std.org/jtc1/sc22/wg21/do=
cs/papers/2018/p0037r5.html#N1169</a><br>I&#39;m not sure it&#39;s ever com=
e up before. I assumed the advantages of parameterizing exponent were fairl=
y obvious.<br></div></blockquote></div><div><br></div><div>I nearly forgot:=
 here&#39;s much the same conclusion being made in the other C++ fixed-poin=
t proposal.</div><div><a href=3D"http://www.open-std.org/jtc1/sc22/wg21/doc=
s/papers/2015/p0106r0.html#prior_art">http://www.open-std.org/jtc1/sc22/wg2=
1/docs/papers/2015/p0106r0.html#prior_art</a><br></div><div><br></div><div>=
John</div><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" styl=
e=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div></=
div><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"m=
argin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br></di=
v>

<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>
</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/CABPJVnSNtVyY-kp%2B2WjKKjSH7Arey-h36i=
uv8Ui%3Dv6uO9vBe4A%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter"=
>https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CABPJVnSNtVyY=
-kp%2B2WjKKjSH7Arey-h36iuv8Ui%3Dv6uO9vBe4A%40mail.gmail.com</a>.<br />

--000000000000781a480577d04b88--

.
