Re: [Json] Proposal: the minimal edit

Tim Bray <tbray@textuality.com> Sat, 22 June 2013 22:02 UTC

Return-Path: <tbray@textuality.com>
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 CCCD821F9DF2 for <json@ietfa.amsl.com>; Sat, 22 Jun 2013 15:02:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.709
X-Spam-Level:
X-Spam-Status: No, score=0.709 tagged_above=-999 required=5 tests=[AWL=-0.648, BAYES_00=-2.599, FH_RELAY_NODNS=1.451, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_PBL=0.905, RCVD_IN_SORBS_DUL=0.877, RDNS_NONE=0.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 7GErgIw6Pd4u for <json@ietfa.amsl.com>; Sat, 22 Jun 2013 15:02:31 -0700 (PDT)
Received: from mail-ve0-x22b.google.com (mail-ve0-x22b.google.com [IPv6:2607:f8b0:400c:c01::22b]) by ietfa.amsl.com (Postfix) with ESMTP id 565CD21F9DC6 for <json@ietf.org>; Sat, 22 Jun 2013 15:02:31 -0700 (PDT)
Received: by mail-ve0-f171.google.com with SMTP id b10so7573801vea.30 for <json@ietf.org>; Sat, 22 Jun 2013 15:02:30 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=jPnIhMXarJQjE34A9gljFPYpvvOl3uK/Y8b7+/1CYqw=; b=TptCIHrdRk5FzobP0GT2pSZSKWHzFD1nexvUmwbyMe8mXANjwDkS/QlR5VTF6zwghM cVSeMesLZH7DZKfcCb9+5D3PAAg/7NJfCKKFw6rsgohJqMt9fshdOSEIDhu3EChhLoMc h4orUgv9HViIZu8xSkPzZFwt7AnVscOSz/kiB1hMcebybl6pNQHYfhuC662BrVz7iCym 3fh6p/VncAUjtj5D7i3uWspT8wiUVjhXCIcG0OrfOlcCafUyQSEtN4SBu/RruOjh4Ruk ++/iwHnAF8aP/FtHOw6VeIqlJ4Kp4CEdh+UGmSUaf+gajFTmHg3fZh0nX/yxbMC4L1CE wKxg==
MIME-Version: 1.0
X-Received: by 10.220.123.131 with SMTP id p3mr8265166vcr.69.1371938550783; Sat, 22 Jun 2013 15:02:30 -0700 (PDT)
Received: by 10.220.219.200 with HTTP; Sat, 22 Jun 2013 15:02:30 -0700 (PDT)
X-Originating-IP: [24.84.235.32]
In-Reply-To: <20130622205936.GV31186@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>
Date: Sat, 22 Jun 2013 15:02:30 -0700
Message-ID: <CAHBU6iuaQXaYxXrjsfBtK9RzOk-13dRf25y3CbemwnmT4dTyww@mail.gmail.com>
From: Tim Bray <tbray@textuality.com>
To: John Cowan <cowan@mercury.ccil.org>
Content-Type: multipart/alternative; boundary="089e013cbb22f92f2a04dfc55511"
X-Gm-Message-State: ALoCoQlLtmmLpzrgLI4I8KelAaTDGxcI2ULuMjPJ95d81B81mr8IcVBHHyDeIkA5ortxr5lCMhXs
Cc: "json@ietf.org" <json@ietf.org>, R S <sayrer@gmail.com>
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:02:36 -0000

Since there are those who (gasp!) are not native speakers of IEEE Floats,
it’s probably helpful to say something like “which have 53 bits of
precision (2**53 is roughly 9.007 * 10**15)”


On Sat, Jun 22, 2013 at 1:59 PM, John Cowan <cowan@mercury.ccil.org> wrote:

> R S scripsit:
>
> > + N. Differences from ECMAScript
> > +
> > + ECMAScript implementations produce and consume primitive JSON values at
> > + the root level of JSON documents.
> > +
> > + ECMAScript implementations generate and consume unpaired Unicode
> > + surrogate code points in JSON documents.
> > +
> > + When there are duplicate names within an object, ECMAScript parsers
> > + overwrite the value corresponding to such names with the value that
> > + appears last in the serialization.
>
> To which I add:
>
> + ECMAScript parsers only accept, and ECMAScript generators only generate,
> + numbers that correspond to the finite values of binary 64-bit IEEE
> + 754:2008 floating point numbers.
>
> We'll need a non-normative reference, too:
>
>     IEEE Computer Society (August 29, 2008). IEEE Standard for
>     Floating-Point Arithmetic. IEEE.  doi:10.1109/IEEESTD.2008.4610935.
>     ISBN 978-0-7381-5753-5. IEEE Std 754-2008.
>
> --
> Time alone is real                      John Cowan <cowan@ccil.org>
>   the rest imaginary
> like a quaternion       --phma          http://www.ccil.org/~cowan
>