Re: [Bimi] [rfc-i] SVG P/S Feedback

Brian E Carpenter <brian.e.carpenter@gmail.com> Mon, 31 August 2020 02:14 UTC

Return-Path: <brian.e.carpenter@gmail.com>
X-Original-To: bimi@ietfa.amsl.com
Delivered-To: bimi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 84BD63A0CA5 for <bimi@ietfa.amsl.com>; Sun, 30 Aug 2020 19:14:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.046
X-Spam-Level:
X-Spam-Status: No, score=-3.046 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.948, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EQFBCACLCuWq for <bimi@ietfa.amsl.com>; Sun, 30 Aug 2020 19:14:24 -0700 (PDT)
Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 273843A0CA4 for <bimi@ietf.org>; Sun, 30 Aug 2020 19:14:24 -0700 (PDT)
Received: by mail-pj1-x1036.google.com with SMTP id mt12so2326142pjb.4 for <bimi@ietf.org>; Sun, 30 Aug 2020 19:14:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=XA6XCYfQ1GHOdZ83qV/YK6/nuIYi2+ddPOqOOzZktBQ=; b=i8yvmdcKSfjpeaKw/1qUPw9yYbPkap8W4OYZ3t6Wz5LX5CYdMDMAhsU7Z2B9zjKu0J mlsn/ejqOgS+XvRdyAdb03RLCfIUhothy1ZeXzF9l7MxOS7vFopSBjbUmqndi7Xj2rx2 l1uQx9rjTYLoO/8ov545rQ9MHnGNLWqZyR12xOuqH8xhq5jEsN3GGmEyyT6SAsJf68r0 61NfUEIFy8BJCrstdpceQHZ9BICI80mcaeXp7Zs5SNBhmSfNPgDCXaoL2+bi6oc1sKGL gmjNGr4IAv4JS08FXINHGexOnqEUlX0KiFLLC/cCoEfnlakgHmx5gUqYn81gMcOCZ8wN pSAA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=XA6XCYfQ1GHOdZ83qV/YK6/nuIYi2+ddPOqOOzZktBQ=; b=sOymyODVucpmcIZn/rkhwOv708SW+pCD+CsX+bO5yvSyduWxLQY8NxY8gNwL0nJqm6 tkZKq3gO2DYl9cfxlbpXSaxvYYILiH7Rv+ifMVRMMdbU6YcyHowsajNgnpRtUfb/d8tV DIwkxs5nk5W4NoiUHJnjKifjC93T9gxbS54BrksrJ5A15IgeuIDxCvPi2QbtTZ3JMvsJ PxvWcMD+NPKfX+M6AII/g/HaHE3DGvuha83isH98k9EEQtBOP0WU3mgIdl4hJIvO6eK6 bK1HXKANJg2/Fr5IViz/ivZYO8v1SZnErKDqfBBYzEtUeU+o0udjcMKC6Rd8Ocht3pm+ 8OCQ==
X-Gm-Message-State: AOAM533IW0y7zfsGrmUzRasBhnzpe6ouccbx3pVPwPTqjPclwlROHObW vwrLBIRGCWlnF6nO8sGPmpEGQG1FofUwUw==
X-Google-Smtp-Source: ABdhPJyAea/Yb53gkb3+bWEeLD91okhWwIACpmobXfeS25JVa9drgHP5Kk2e9hM/baJL+SdJzb8hww==
X-Received: by 2002:a17:90a:a50d:: with SMTP id a13mr8665962pjq.180.1598840063347; Sun, 30 Aug 2020 19:14:23 -0700 (PDT)
Received: from [192.168.178.20] ([151.210.139.192]) by smtp.gmail.com with ESMTPSA id r144sm5637901pfc.63.2020.08.30.19.14.20 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Aug 2020 19:14:22 -0700 (PDT)
To: "Martin J. Dürst" <duerst@it.aoyama.ac.jp>, Leonard Rosenthol <lrosenth@adobe.com>, "rfc-interest@rfc-editor.org" <rfc-interest@rfc-editor.org>
Cc: "'BIMI (IETF)'" <bimi@ietf.org>
References: <MN2PR11MB4351CC443B406196C3953D1BF7520@MN2PR11MB4351.namprd11.prod.outlook.com> <70eadfe5-16f6-47d9-4cb8-f4f9bffdd355@gmail.com> <013c01d67d8e$5b952f60$12bf8e20$@acm.org> <f2df89d0-73c5-49b5-c18c-ec0ac16dfa1c@gmail.com> <290BCC09-02FB-4289-9D1A-2FD00B476E78@adobe.com> <53a7ca18-792f-ef67-24f9-e84e5e154989@gmail.com> <64DF8A7C-A219-45D9-9FE6-25D4CC8143EF@adobe.com> <fccae6e7-dc47-426b-56bb-1da2da7235b4@gmail.com> <d227632e-482f-30af-c26d-1d122afbefb7@it.aoyama.ac.jp>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Message-ID: <5bcbf185-837a-e582-ab11-3f0af7202ba7@gmail.com>
Date: Mon, 31 Aug 2020 14:14:18 +1200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1
MIME-Version: 1.0
In-Reply-To: <d227632e-482f-30af-c26d-1d122afbefb7@it.aoyama.ac.jp>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/bimi/yIbljBdyXU9rXP21r_YIFXl0sKk>
Subject: Re: [Bimi] [rfc-i] SVG P/S Feedback
X-BeenThere: bimi@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Brand Indicators for Message Identification <bimi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/bimi>, <mailto:bimi-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/bimi/>
List-Post: <mailto:bimi@ietf.org>
List-Help: <mailto:bimi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/bimi>, <mailto:bimi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 31 Aug 2020 02:14:26 -0000

On 31-Aug-20 13:52, Martin J. Dürst wrote:
> Hello Brian, others,
> 
> On 31/08/2020 08:36, Brian E Carpenter wrote:
>> On 31-Aug-20 10:09, Leonard Rosenthol wrote:
>>> Brian - not sure what you are looking at, but in SVG 1.1 (https://www.w3.org/TR/SVG11/single-page.html#types-DataTypeNumber), I see the following definition for a `<number>`
> 
> [snip]
> 
>> Yes, and that's all fine. But when you start converting formats, and the round trip converts
>> 32.459999 into 32.424, there's clearly a problem of how real numbers work in a particular hardware and floating point library, and/or a difference in how real numbers are handled in the two formats. So specifying how real numbers are represented in various SGML dialects is only part of the problem.
>>
>> I'm no expert on this, but https://en.wikipedia.org/wiki/IEEE_754 tells me that it's very complex and there are many cans of worms.
> 
> Floating point numbers are what they are, even if many people, including 
> engineers, tend to ignore or suppress the details.
> 
> The programming language Ruby has some pointers to information about 
> floating point numbers on the otherwise quite small top page of their 
> bug tracker (https://bugs.ruby-lang.org/). The reason for this is the 
> frequency with which we get bug reports about floating point number 
> calculations that turn out not to be bugs.
> 
> For people interested in details, I suggest reading "What Every Computer 
> Scientist Should Know About Floating-Point Arithmetic"
> (https://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html).
> 
> Btw, if a conversion changes 32.459999 into 32.424, then we indeed have 
> a serious problem. Floating point arithmetic isn't that inaccurate, even 
> on the worst hardware. If the conversion is from 32.459999 to 32.46, on 
> the other hand, then that's entirely possible, and shouldn't create any 
> problems in patent litigation.

The case in point involves two particular converters from SVG to PDF and
back, so it's presumably a complex interaction between those two formats
and how the converters work, rather than a gross error in the floating point
implementations. I don't think we need to debug it, but simply to note
that if we stick to the current doctrine that the xml2rfcv3 file *is*
the canonical form of an RFC, we will be OK. If we try to define a
reversible translation to another format, I think we would come to deeply
regret it.

   Brian
 
> 
>> Regards
>>      Brian
>