Re: [apps-discuss] Gen-ART review of draft-bormann-cbor-04

"Joe Hildebrand (jhildebr)" <jhildebr@cisco.com> Mon, 12 August 2013 21:41 UTC

Return-Path: <jhildebr@cisco.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 47EAD21F9F44; Mon, 12 Aug 2013 14:41:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.635
X-Spam-Level:
X-Spam-Status: No, score=-10.635 tagged_above=-999 required=5 tests=[AWL=-0.036, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
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 BLiHwp8MECFP; Mon, 12 Aug 2013 14:41:49 -0700 (PDT)
Received: from rcdn-iport-6.cisco.com (rcdn-iport-6.cisco.com [173.37.86.77]) by ietfa.amsl.com (Postfix) with ESMTP id 0B18F21F9EE1; Mon, 12 Aug 2013 14:41:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1544; q=dns/txt; s=iport; t=1376343709; x=1377553309; h=from:to:cc:subject:date:message-id:in-reply-to: content-id:content-transfer-encoding:mime-version; bh=hh5P89+HJrpOPIUiHsJwPmEDK+1zKRZsomVxADyZp2A=; b=BcJibycpQD9yqDh0Xq1qUiN6cx0DVweS3rCBEf/zQDcv8tflNIYzn4lo Yk8f6bFGcDDnwkpWZ5vzhUTl1FMjkuKVDC4uQP4ep+Av3KX513tg/z0Bx 6X3yaKHVSeIidyuOz8ZdafXbKUetVCV2Uvhb2UqKyGoRGgQ281LQmbtgh E=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AgIFADtWCVKtJXG+/2dsb2JhbABbgwaBBb5XgRwWdIIkAQEBAwE6PwUNAQgOFBRCJQIEDgUIiAIGtnaQCjEHgxt2A5QNlSiDG4Iq
X-IronPort-AV: E=Sophos;i="4.89,864,1367971200"; d="scan'208";a="246479680"
Received: from rcdn-core2-3.cisco.com ([173.37.113.190]) by rcdn-iport-6.cisco.com with ESMTP; 12 Aug 2013 21:41:24 +0000
Received: from xhc-rcd-x13.cisco.com (xhc-rcd-x13.cisco.com [173.37.183.87]) by rcdn-core2-3.cisco.com (8.14.5/8.14.5) with ESMTP id r7CLfNG2019159 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Mon, 12 Aug 2013 21:41:23 GMT
Received: from xmb-rcd-x10.cisco.com ([169.254.15.159]) by xhc-rcd-x13.cisco.com ([173.37.183.87]) with mapi id 14.02.0318.004; Mon, 12 Aug 2013 16:41:23 -0500
From: "Joe Hildebrand (jhildebr)" <jhildebr@cisco.com>
To: Carsten Bormann <cabo@tzi.org>
Thread-Topic: [apps-discuss] Gen-ART review of draft-bormann-cbor-04
Thread-Index: AQHOjPNCXWeGtSFAj0iRwScRzl7yuJmG2+2AgAuVgwD//61EgA==
Date: Mon, 12 Aug 2013 21:41:23 +0000
Message-ID: <A723FC6ECC552A4D8C8249D9E07425A714199D03@xmb-rcd-x10.cisco.com>
In-Reply-To: <2B377A8B-C954-4DEE-B19C-506CE8B295A2@tzi.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/14.3.6.130613
x-originating-ip: [10.21.146.155]
Content-Type: text/plain; charset="us-ascii"
Content-ID: <720240F1A24B6246958F976DA5B2D52E@emea.cisco.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "draft-bormann-cbor-04.all@tools.ietf.org" <draft-bormann-cbor-04.all@tools.ietf.org>, "gen-art@ietf.org" <gen-art@ietf.org>, IETF Apps Discuss <apps-discuss@ietf.org>
Subject: Re: [apps-discuss] Gen-ART review of draft-bormann-cbor-04
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: Mon, 12 Aug 2013 21:41:55 -0000

On 8/12/13 2:37 PM, "Carsten Bormann" <cabo@tzi.org> wrote:

>        If section 3.6 stays, the numerics need more work.  +/- Infinity
>should be
>        treated like NaN.
>
>(Why?)

Having more than one way to encode +/- Infinity seems like a recipe for
generating slightly different canonical output.  For example, in my code
right now, I think I'm always generating a half-precision Infinity, and
I'm thinking about changing that to always be the 4-byte version.

I now see that this section is just a recipe for how to define a
canonicalization, not the actual rules you need to follow, and my comment
may be moot.  However, I suggest that section 3.6 is therefore not
terribly useful, and it might be removed without harming the document.

>        In Appendix D, shouldn't the input be unsigned or an array of
>bytes?
>
>It could also be unsigned short (which would be widened to int
>anyway), but in this case it shouldn't matter.
>(Array of bytes would just be slightly more tedious.)

Agree that it's merely a tedious transformation, but I think it would be a
lot more clear.  Semantically, the input isn't an integer of any size.
It's two bytes in a specific order.

>        Add PER.
>
>PER does need schema information even for parsing and would require
>its own little dissertation, so we left this off.

I think it's useful to call out an example that is explicitly
schema-ridden, particularly since it has been called out in this
conversation as something relevant.

-- 
Joe Hildebrand