Re: [Json] I-JSON Topic #5: Numbers

Tim Bray <tbray@textuality.com> Tue, 27 May 2014 19:00 UTC

Return-Path: <tbray@textuality.com>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4562B1A06DA for <json@ietfa.amsl.com>; Tue, 27 May 2014 12:00:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level:
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
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 xHILLRtrH2wR for <json@ietfa.amsl.com>; Tue, 27 May 2014 12:00:22 -0700 (PDT)
Received: from mail-ve0-f175.google.com (mail-ve0-f175.google.com [209.85.128.175]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D32AE1A06F2 for <json@ietf.org>; Tue, 27 May 2014 12:00:21 -0700 (PDT)
Received: by mail-ve0-f175.google.com with SMTP id jw12so11115746veb.6 for <json@ietf.org>; Tue, 27 May 2014 12:00:18 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=dZHqScxFywc5Pa3SFsKoBYI/XNBX2ymYFSYtHbtdJOo=; b=fBnljXUaDVzGXszUYVHjmHaMYfttfgIppliiOwsux4k5wUJMCXEXpXRDcDp/fHmckU 5gp/YclohTOOFi1hTiSn1HkTtD3+JelLLSARuq4d690mdaENSQ/PkWCE30Psoc/FJWSu c+VZW92jfBgCwgtKhxf1Xsy1RNAsd5UmSCcdof7Mk9nLIwplgttFdNpnE9eXre/T8GA1 N53hsH8SJiEYg4UD7b2022/+BpsopFXLTNbtlzoIfsmIQjRWkbeQNNdyctRbdVJ0aRxu 9y73VdgUQEpjbkaqRjUvB3SBTH+ryq5KXVND8n1yZ0m/21osgSSAbpCBks92sAe8Qic1 79NA==
X-Gm-Message-State: ALoCoQmCsaY8xXRPk3fVtsqB92So1IZqCtE3qTgl8bX7vrFKOyus+RfprTiuvrbc3DBzTSDKQnpJ
X-Received: by 10.52.125.198 with SMTP id ms6mr24430370vdb.28.1401217218004; Tue, 27 May 2014 12:00:18 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.220.98.73 with HTTP; Tue, 27 May 2014 11:59:57 -0700 (PDT)
X-Originating-IP: [206.12.10.242]
In-Reply-To: <20140527184341.GB16220@mercury.ccil.org>
References: <255B9BB34FB7D647A506DC292726F6E115461FFE59@WSMSG3153V.srv.dir.telstra.com> <20140521020731.GG9283@mercury.ccil.org> <CFA21B5C.4A721%jhildebr@cisco.com> <255B9BB34FB7D647A506DC292726F6E1154629E87D@WSMSG3153V.srv.dir.telstra.com> <CAHBU6isO7oooeN8rH8emx-xuOrs2yzBUrhyJNYYAyzK2-QfF0w@mail.gmail.com> <CAK3OfOih-YO-ncbSc3dVv_O7uHfjRxCDjUpzHmkFG5Dj7kb-xg@mail.gmail.com> <5384C118.4060402@cisco.com> <14DB352D-3D0C-458A-90BE-38BCA8CC98DD@tzi.org> <CAHBU6isjZjfoga_g9efiK1L=Pf40ZQXg8War+k9JDM13quHPOQ@mail.gmail.com> <DF223160-A135-4B8E-A895-53A4BF63AA1E@tzi.org> <20140527184341.GB16220@mercury.ccil.org>
From: Tim Bray <tbray@textuality.com>
Date: Tue, 27 May 2014 13:59:57 -0500
Message-ID: <CAHBU6isodCAt-wnWNv18HECXntrGDWH-302tb30H8akp_gjCsQ@mail.gmail.com>
To: John Cowan <cowan@mercury.ccil.org>
Content-Type: multipart/alternative; boundary=bcaec51a730c8860bd04fa664e8c
Archived-At: http://mailarchive.ietf.org/arch/msg/json/KyfiEXJZB9QnUZv6H8uTVo3DjvI
Cc: Nico Williams <nico@cryptonector.com>, Carsten Bormann <cabo@tzi.org>, Matt Miller <mamille2@cisco.com>, IETF JSON WG <json@ietf.org>
Subject: Re: [Json] I-JSON Topic #5: Numbers
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "JavaScript Object Notation \(JSON\) WG mailing list" <json.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/json>, <mailto:json-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/json/>
List-Post: <mailto:json@ietf.org>
List-Help: <mailto:json-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/json>, <mailto:json-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 27 May 2014 19:00:24 -0000

​You guys are convincing me we should leave the text the way it is.

Except for maybe add a sentence along the lines of “Implementors are
advised that the conversion between textual and binary representation of
numeric quantities is known to be a source of difficulties and, in certain
circumstances, data loss.”  A suitable read-more-here reference would be
welcome; Maybe that Goldberg reference Carsten mentioned?


On Tue, May 27, 2014 at 1:43 PM, John Cowan <cowan@mercury.ccil.org> wrote:

> Carsten Bormann scripsit:
>
> > > An I-JSON sender MUST NOT expect a receiver to treat a non-zero number
> > > whose absolute value is greater than 1e308 or less than 1e-308 as
> > > an exact value.
> >
> > I think James and I have successfully argued that this sentence is
> broken.
>
> I agree.
>
> --
> John Cowan          http://www.ccil.org/~cowan        cowan@ccil.org
> You are a child of the universe no less than the trees and all other
> acyclic
> graphs; you have a right to be here.  --DeXiderata by Sean McGrath
>



-- 
- Tim Bray (If you’d like to send me a private message, see
https://keybase.io/timbray)