Re: [Json] Proposal: the minimal edit
John Cowan <cowan@mercury.ccil.org> Sat, 22 June 2013 22:39 UTC
Return-Path: <cowan@ccil.org>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F3AC721F9E69 for <json@ietfa.amsl.com>; Sat, 22 Jun 2013 15:39:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.459
X-Spam-Level:
X-Spam-Status: No, score=-3.459 tagged_above=-999 required=5 tests=[AWL=0.140, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id neNeNidgrrCa for <json@ietfa.amsl.com>; Sat, 22 Jun 2013 15:39:08 -0700 (PDT)
Received: from earth.ccil.org (earth.ccil.org [192.190.237.11]) by ietfa.amsl.com (Postfix) with ESMTP id A27B721F9E57 for <json@ietf.org>; Sat, 22 Jun 2013 15:39:08 -0700 (PDT)
Received: from cowan by earth.ccil.org with local (Exim 4.72) (envelope-from <cowan@ccil.org>) id 1UqWSY-0004q3-UH; Sat, 22 Jun 2013 18:39:07 -0400
Date: Sat, 22 Jun 2013 18:39:06 -0400
From: John Cowan <cowan@mercury.ccil.org>
To: Carsten Bormann <cabo@tzi.org>
Message-ID: <20130622223906.GX31186@mercury.ccil.org>
References: <CAChr6SyN4Z3Hh8OFGHkK+AJN0+S09wMfjeobZ51GjKNL+GhPsw@mail.gmail.com> <CAHBU6ivhoUM9cfUnc1YfnyDdQnWQ=Mj10cSoYn0qouMQ0F94XA@mail.gmail.com> <CAChr6SyQDjik_BTojXdw3G7_B=W5iZXksuM15VYwGJqr8WHdhw@mail.gmail.com> <CAChr6SwbFfR5UQuU2ceJhDeGAhv5Zy0dKA3szzO_KGfjA7fx5Q@mail.gmail.com> <20130622205936.GV31186@mercury.ccil.org> <CAChr6SwJ5TkYw4TFxWv=9hZPU_jtKuSLDSrN9u+SzBBwo1aspA@mail.gmail.com> <20130622212219.GW31186@mercury.ccil.org> <8DB99A42-7666-443A-9C99-53F8A1AACF17@tzi.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <8DB99A42-7666-443A-9C99-53F8A1AACF17@tzi.org>
User-Agent: Mutt/1.5.20 (2009-06-14)
Sender: John Cowan <cowan@ccil.org>
Cc: R S <sayrer@gmail.com>, Tim Bray <tbray@textuality.com>, "json@ietf.org" <json@ietf.org>
Subject: Re: [Json] Proposal: the minimal edit
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.12
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: Sat, 22 Jun 2013 22:39:13 -0000
Carsten Bormann scripsit: > So maybe it is more useful to point out that parsers (and that > observation is not limited to JavaScript) might convert JSON's decimal > numbers to a (binary or other) form, losing precision and range in > the process. I had range rather than precision in mind: if you parse "[1, 10, 1E400]", you are likely to get either an exception or an array with 1.0, 10.0, and Inf in it. But my point is that ECMAScript implementations MUST NOT represent 1E400 other than as Inf, nor 1.9999999999999999999999999 as other than 2.0. The same is not true in other languages, notably various Lisps. > Section 4 now says: > > An implementation may set limits on the size of texts that it > accepts. An implementation may set limits on the maximum depth of > nesting. --> An implementation may set limits on the range of numbers. <-- > An implementation may set limits on the length and character contents > of strings. > > So maybe it is useful to point out that parsers (again, not just the > ones that try to conform to a version of ECMAscript) are also likely > to set limits on the precision of numbers +1 -- John Cowan http://www.ccil.org/~cowan cowan@ccil.org To say that Bilbo's breath was taken away is no description at all. There are no words left to express his staggerment, since Men changed the language that they learned of elves in the days when all the world was wonderful. --The Hobbit
- [Json] Proposal: the minimal edit R S
- Re: [Json] Proposal: the minimal edit Tim Bray
- Re: [Json] Proposal: the minimal edit Tim Bray
- Re: [Json] Proposal: the minimal edit Paul Hoffman
- Re: [Json] Proposal: the minimal edit R S
- Re: [Json] Proposal: the minimal edit Paul Hoffman
- Re: [Json] Proposal: the minimal edit Jorge
- Re: [Json] Proposal: the minimal edit John Cowan
- Re: [Json] Proposal: the minimal edit R S
- Re: [Json] Proposal: the minimal edit John Cowan
- Re: [Json] Proposal: the minimal edit R S
- Re: [Json] Proposal: the minimal edit John Cowan
- Re: [Json] Proposal: the minimal edit R S
- Re: [Json] Proposal: the minimal edit Tim Bray
- Re: [Json] Proposal: the minimal edit Carsten Bormann
- Re: [Json] Proposal: the minimal edit John Cowan
- Re: [Json] Proposal: the minimal edit Paul Hoffman
- Re: [Json] Proposal: the minimal edit Eliot Lear
- Re: [Json] Proposal: the minimal edit Norbert Lindenberg
- Re: [Json] Proposal: the minimal edit Norbert Lindenberg
- Re: [Json] Proposal: the minimal edit Norbert Lindenberg
- Re: [Json] Proposal: the minimal edit John Cowan
- Re: [Json] Proposal: the minimal edit Carsten Bormann
- Re: [Json] Proposal: the minimal edit Norbert Lindenberg
- Re: [Json] Proposal: the minimal edit John Cowan
- Re: [Json] Proposal: the minimal edit Paul Hoffman
- Re: [Json] Proposal: the minimal edit Tim Bray
- Re: [Json] Proposal: the minimal edit Carsten Bormann
- Re: [Json] Proposal: the minimal edit John Cowan
- Re: [Json] Proposal: the minimal edit Paul Hoffman
- Re: [Json] Proposal: the minimal edit Norbert Lindenberg
- Re: [Json] Proposal: the minimal edit Tim Bray
- Re: [Json] Proposal: the minimal edit Paul Hoffman
- Re: [Json] Proposal: the minimal edit John Cowan
- Re: [Json] Proposal: the minimal edit John Cowan
- Re: [Json] Proposal: the minimal edit Norbert Lindenberg
- Re: [Json] Proposal: the minimal edit Norbert Lindenberg
- Re: [Json] Proposal: the minimal edit Paul Hoffman
- Re: [Json] Proposal: the minimal edit R S
- Re: [Json] Proposal: the minimal edit Paul Hoffman
- Re: [Json] Proposal: the minimal edit Paul Hoffman
- Re: [Json] Proposal: the minimal edit John Cowan
- Re: [Json] Proposal: the minimal edit Paul Hoffman
- Re: [Json] Proposal: the minimal edit John Cowan
- Re: [Json] Proposal: the minimal edit Tim Bray
- Re: [Json] Proposal: the minimal edit Norbert Lindenberg
- Re: [Json] Proposal: the minimal edit R S
- Re: [Json] Proposal: the minimal edit Norbert Lindenberg
- Re: [Json] Proposal: the minimal edit John Cowan
- Re: [Json] Proposal: the minimal edit Paul Hoffman
- Re: [Json] Proposal: the minimal edit John Cowan
- Re: [Json] Proposal: the minimal edit R S
- Re: [Json] Proposal: the minimal edit Carsten Bormann
- Re: [Json] Proposal: the minimal edit Tim Bray
- Re: [Json] Proposal: the minimal edit R S
- Re: [Json] Proposal: the minimal edit Martin J. Dürst
- Re: [Json] Proposal: the minimal edit Bjoern Hoehrmann
- Re: [Json] Proposal: the minimal edit Carsten Bormann
- Re: [Json] Proposal: the minimal edit John Cowan
- Re: [Json] Proposal: the minimal edit John Cowan
- Re: [Json] Proposal: the minimal edit John Cowan
- Re: [Json] Proposal: the minimal edit Carsten Bormann
- Re: [Json] Proposal: the minimal edit Carsten Bormann
- Re: [Json] Proposal: the minimal edit John Cowan