Re: [apps-discuss] Concise Binary Object Representation (CBOR)

Phillip Hallam-Baker <hallam@gmail.com> Thu, 23 May 2013 20:49 UTC

Return-Path: <hallam@gmail.com>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 654A821F983C for <apps-discuss@ietfa.amsl.com>; Thu, 23 May 2013 13:49:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599, HTML_MESSAGE=0.001, NO_RELAYS=-0.001]
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 4QbawWqSXBGF for <apps-discuss@ietfa.amsl.com>; Thu, 23 May 2013 13:49:00 -0700 (PDT)
Received: from mail-la0-x232.google.com (mail-la0-x232.google.com [IPv6:2a00:1450:4010:c03::232]) by ietfa.amsl.com (Postfix) with ESMTP id B3DB321F9375 for <apps-discuss@ietf.org>; Thu, 23 May 2013 13:08:33 -0700 (PDT)
Received: by mail-la0-f50.google.com with SMTP id ed20so3702769lab.37 for <apps-discuss@ietf.org>; Thu, 23 May 2013 13:08:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Fh4d3M/nx+NpMKUS9/lrkJBNnw685MNNLkWEgqGYrNM=; b=i09vJJ7Ym63VLjEGgTavLEvEBrykCj8MJFKPQzXaYN46gqBr7F/iQqjjQb2pVsK+cc EGiABAdWzlLSg5EZhQtT0zd+cQx6BYQBxWBHx9g22kdA4EUa0rpZHTm4c0l0PjRRIW/Q NOPJIikUoFawaXRfnzhdB4gnD+4YwvstKCvnKLorN/HeoUjEnatFD1DcjID1Fwlc0Sed t5/U9P2uxBEYP/ZhaA+Xd/qnqpaNWVjXGhAAuUfP5lu4sA316oP2Wep1DrcvJNgUDxDP SwjNRZQ935tYpl1bsiK2AVHjeG4H5Ql/XFVIjmy/nYE4RS58XemI6oNX3BbxfV/mxQ5J VO8w==
MIME-Version: 1.0
X-Received: by 10.112.89.8 with SMTP id bk8mr1209634lbb.73.1369339712324; Thu, 23 May 2013 13:08:32 -0700 (PDT)
Received: by 10.112.200.169 with HTTP; Thu, 23 May 2013 13:08:31 -0700 (PDT)
In-Reply-To: <0A6FC529-F95D-4F2D-9BCF-F0C7ED24CD54@tzi.org>
References: <61CB1D18-BABC-4C77-93E6-A9E8CDA8326B@vpnc.org> <CAK3OfOhVRqUp+xn8mBj8_x8pgubc7bhWebzsFLvoj+ieWmr5gg@mail.gmail.com> <142483A4-2E80-43F1-B3BE-B5B01650BB8F@tzi.org> <CAK3OfOim44hRaRoFh8vKfK5SPVAnvTGiBV4cizvw30K=ZQPJHQ@mail.gmail.com> <84317001-DB56-4DBE-9D1E-A4E605BC07A0@tzi.org> <alpine.LSU.2.00.1305231811430.30305@hermes-2.csi.cam.ac.uk> <CAMm+LwibNh4mYU2+o6h8Vk1763PXMXx66t7utftAqy_J8TAQzA@mail.gmail.com> <0A6FC529-F95D-4F2D-9BCF-F0C7ED24CD54@tzi.org>
Date: Thu, 23 May 2013 16:08:31 -0400
Message-ID: <CAMm+LwjOf2i8qSxasOUzkK+yffq7HetuEc0m5ouZF1PrQGvLWA@mail.gmail.com>
From: Phillip Hallam-Baker <hallam@gmail.com>
To: Carsten Bormann <cabo@tzi.org>
Content-Type: multipart/alternative; boundary="001a11c37a0a214a8304dd683fc7"
Cc: Paul Hoffman <paul.hoffman@vpnc.org>, General discussion of application-layer protocols <apps-discuss@ietf.org>
Subject: Re: [apps-discuss] Concise Binary Object Representation (CBOR)
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 23 May 2013 20:49:10 -0000

On Thu, May 23, 2013 at 3:55 PM, Carsten Bormann <cabo@tzi.org> wrote:

> On May 23, 2013, at 21:31, Phillip Hallam-Baker <hallam@gmail.com> wrote:
>
> > Completely off topic here but raised by the discussion. JSON needs to
> address NaN encoding.
> >
> > NaN is essential for exchange of numeric data in scientific
> applications. JSON is going to be used in those applications. It would be
> better to have one way to use JSON in scientific applications rather than
> have different work arounds emerge.
>
> The applications I have seen trying to address the problem have simply
> used null to encode NaN.
> There is rarely a case when you need to be able to express both null and
> NaN in one place (use CBOR, then :-).
>

There are many work-arounds possible. A standard should only have one.



> A bigger problem is -Infinity/Infinity, but similar hacks can be used
> there, too (say, use false/true, or stringify).
>
> > There is an ongoing effort to document JSON, this should be included in
> those efforts.
>
> JSON MUST NOT change, so I don't think I agree with that (neither does the
> proposed charter of the WG).
>

I don't think we have ever accepted a standard that declares it can't be
changed. We have certainly changed all the ones we started with. Even ASCII
was changed.

There are several ways that NaN and +/- infinity can be introduced without
changing JSON syntax. The point is there should only be one way that code
does so.


-- 
Website: http://hallambaker.com/