Re: [Cbor] Suresh Krishnan's No Objection on draft-ietf-cbor-cddl-06: (with COMMENT)

Suresh Krishnan <Suresh@kaloom.com> Thu, 22 November 2018 04:56 UTC

Return-Path: <Suresh@kaloom.com>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E4A59130FD9; Wed, 21 Nov 2018 20:56:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=kaloom.com
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 L1MOApg96zFb; Wed, 21 Nov 2018 20:56:44 -0800 (PST)
Received: from CAN01-TO1-obe.outbound.protection.outlook.com (mail-eopbgr670137.outbound.protection.outlook.com [40.107.67.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C35BD130DE4; Wed, 21 Nov 2018 20:56:43 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kaloom.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ppYL4f2ucQwGE/UK3rbA/OfgWv135R/39QkpzhDZbcY=; b=nXv5T2CqmlkwgorHz6JWWGuUFG+F96XksxF82iy0Zea7yvfJskss45Q+1D445x8x+I6uZEG+FOktPRqaXQeIwk9oRpuOpdpnkXt2PGuITv9+x16ZYs6Z/TiGTUy5Isdt1iEprx+qTHNunTq9OnGLt5J4je+ZmkJ3Un8clWB8OFg=
Received: from YTOPR0101MB1819.CANPRD01.PROD.OUTLOOK.COM (52.132.44.159) by YTOPR0101MB2314.CANPRD01.PROD.OUTLOOK.COM (52.132.51.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.26; Thu, 22 Nov 2018 04:56:42 +0000
Received: from YTOPR0101MB1819.CANPRD01.PROD.OUTLOOK.COM ([fe80::5cb8:6da5:fffa:d207]) by YTOPR0101MB1819.CANPRD01.PROD.OUTLOOK.COM ([fe80::5cb8:6da5:fffa:d207%3]) with mapi id 15.20.1294.048; Thu, 22 Nov 2018 04:56:41 +0000
From: Suresh Krishnan <Suresh@kaloom.com>
To: Carsten Bormann <cabo@tzi.org>
CC: The IESG <iesg@ietf.org>, "cbor@ietf.org" <cbor@ietf.org>, Barry Leiba <barryleiba@computer.org>, "cbor-chairs@ietf.org" <cbor-chairs@ietf.org>, "draft-ietf-cbor-cddl@ietf.org" <draft-ietf-cbor-cddl@ietf.org>
Thread-Topic: [Cbor] Suresh Krishnan's No Objection on draft-ietf-cbor-cddl-06: (with COMMENT)
Thread-Index: AQHUgdmYtwZ0KIvfY0Kq+tn7BRrez6VbO86A
Date: Thu, 22 Nov 2018 04:56:41 +0000
Message-ID: <9C4CA15B-8E19-4DA9-8B1F-3206A1922B9E@kaloom.com>
References: <154281081024.11490.7408989329662108022.idtracker@ietfa.amsl.com> <1D4773AD-0BC0-4ADB-890A-D1BE74B7BD2D@tzi.org>
In-Reply-To: <1D4773AD-0BC0-4ADB-890A-D1BE74B7BD2D@tzi.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Suresh@kaloom.com;
x-originating-ip: [45.19.110.76]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; YTOPR0101MB2314; 6:w6wRGRfJUyyUbaQG4qe+e3nYlwaNES0OULVw5524s39pqPdX8CGRJTGNifL8UcPZkUm9HRUeldr+R52CMbpz9syiaLiLXC+dcgzec6z7mEdyGhncxz/YK6Rszzh81dfMMOY0NuXdT7xdlmDwnLl+85U7TNEoml2npnvKIWX2n5oXG3SGz7TkhlCtVYwyOPQ6QdLic7GyCbOYVZYR/QBndx2Sb/Iz7W1zC4N/P9Tq7CxfYRUZ9zc+5kyRDn15o2tFItYaCEZ7gqGA+Hq4UnXBvvtXwwGmYsPKV/u8sTemsB10ZtQD+mJzu6lmUuiqPVtAGDC0fV7sgsX8ROqaUQfBF70zWzBG8pS31s5OUWU6HZAqraj2Gtrbk/xjY5bqGQOujqyddiJbHUZlGkT2MXGvRF4+/QFJP58ecvOuWip0N8fVQpfMaF5uRCeWJhg6Dgz7ntFyq4YIRf3EDtNWB5X8/Q==; 5:qQv7i/LodiMkALzVqStKA6GaQYBtF9cIdbLMs/jVZxJmfQWuDpQPdi+LBS4A2GyHrwmcKR+vi5POEA8sOgFjTG7+Po08hmHdIFJdxCnNqt1aHuPxzB/0iuEUQ2kMQGUU0iTkmrX53ZAyM5ZhRKRxyUapRM5LGnxIWzqYpRa2JzY=; 7:ZSWfTr0WrG6zpuGSAeb6VCU0tdWKT9y/pXKh7LtfKgUO+xfe3NVqZNWWOtPB2PtOlgMbeSQtuGvoFdWxnvO0UU05on0sQggwdkKo/5F2qufGC0wBhjKy0rQ95N7/yjT8mccXERMWSeo67rRSulL3gw==
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-correlation-id: abdc3074-dc6e-4d3c-cc28-08d65036e4f8
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390098)(7020095)(4652040)(7021145)(8989299)(4534185)(7022145)(4603075)(4627221)(201702281549075)(8990200)(7048125)(7024125)(7027125)(7023125)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:YTOPR0101MB2314;
x-ms-traffictypediagnostic: YTOPR0101MB2314:
x-microsoft-antispam-prvs: <YTOPR0101MB23141127B3B1921A956B2BACB4DB0@YTOPR0101MB2314.CANPRD01.PROD.OUTLOOK.COM>
x-exchange-antispam-report-test: UriScan:(120809045254105);
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231442)(944501410)(52105112)(148016)(149066)(150057)(6041310)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(2016111802025)(6043046)(201708071742011)(7699051)(76991095); SRVR:YTOPR0101MB2314; BCL:0; PCL:0; RULEID:; SRVR:YTOPR0101MB2314;
x-forefront-prvs: 0864A36BBF
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(396003)(39840400004)(136003)(366004)(376002)(346002)(189003)(199004)(51914003)(68736007)(2906002)(66066001)(97736004)(14454004)(508600001)(6486002)(4326008)(76176011)(26005)(5660300001)(7736002)(6436002)(25786009)(36756003)(2616005)(11346002)(476003)(2900100001)(33656002)(21615005)(186003)(72206003)(82746002)(8936002)(53936002)(236005)(54906003)(6512007)(86362001)(606006)(81166006)(316002)(81156014)(54896002)(3846002)(6116002)(8676002)(256004)(6306002)(966005)(486006)(106356001)(53546011)(102836004)(6506007)(80792005)(229853002)(105586002)(446003)(99286004)(6246003)(71190400001)(71200400001)(83716004)(6916009); DIR:OUT; SFP:1102; SCL:1; SRVR:YTOPR0101MB2314; H:YTOPR0101MB1819.CANPRD01.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: kaloom.com does not designate permitted sender hosts)
x-microsoft-antispam-message-info: cfK9rSGLWDtUk4GoZFaWCHKC4dLPW4p9XOZN4ysx08FQpLLRmckmDE7pDhot/GOQlKNLpqc8ThABkq+O3qsR4lR2bjo1jrh091uAh0IhR7SW8i3346YB6DP66KX3LdG3sp3iVemf7WfHrlcoaE2AUKodDQfKW0ovmfS15K0QCm8UkS+zKLo+iG1Upokw1IrGVp+VM/RXFg5JjU6ZxMbKlf93xmRsHdZQmvob9tnMM1rLGSixunUFlGDOj1G09ybVYi8C9H8PyKty7fuRzmJyUAIFiafncnfDzUj6ocgZC/xO6fE+1BlG9Cegg8kHLhKxltH3MUvoXab2rhKAnrMW2hbU74N5I0/HKz9+Hh8Fvog=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_9C4CA15B8E194DA98B1F3206A1922B9Ekaloomcom_"
MIME-Version: 1.0
X-OriginatorOrg: kaloom.com
X-MS-Exchange-CrossTenant-Network-Message-Id: abdc3074-dc6e-4d3c-cc28-08d65036e4f8
X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Nov 2018 04:56:41.8129 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 47d58e26-f796-48e8-ac40-1c365c204513
X-MS-Exchange-Transport-CrossTenantHeadersStamped: YTOPR0101MB2314
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/N6oWxATu7CZV_DLqp8FW3HdxBPg>
Subject: Re: [Cbor] Suresh Krishnan's No Objection on draft-ietf-cbor-cddl-06: (with COMMENT)
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Concise Binary Object Representation \(CBOR\)" <cbor.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cbor>, <mailto:cbor-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor/>
List-Post: <mailto:cbor@ietf.org>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cbor>, <mailto:cbor-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 22 Nov 2018 04:56:47 -0000


On Nov 21, 2018, at 3:34 PM, Carsten Bormann <cabo@tzi.org<mailto:cabo@tzi.org>> wrote:

Hi Suresh,

On Nov 21, 2018, at 15:33, Suresh Krishnan <suresh@kaloom.com<mailto:suresh@kaloom.com>> wrote:

Suresh Krishnan has entered the following ballot position for
draft-ietf-cbor-cddl-06: No Objection

When responding, please keep the subject line intact and reply to all
email addresses included in the To and CC lines. (Feel free to cut this
introductory paragraph, however.)


Please refer to https://www.ietf.org/iesg/statement/discuss-criteria.html
for more information about IESG DISCUSS and COMMENT positions.


The document, along with other ballot positions, can be found here:
https://datatracker.ietf.org/doc/draft-ietf-cbor-cddl/



----------------------------------------------------------------------
COMMENT:
----------------------------------------------------------------------

* Section 3.8.1

Looks like there is an off-by-one error here. Shouldn't

BYTES_N == 256**N

be

BYTES_N == 256**N-1

That would be correct if the line said

   “0..BYTES_N”, where BYTES_N == 256**N-1.

But it says:

   "0...BYTES_N”, where BYTES_N == 256**N.

where “…” is the half-closed range operator that is closed on the left and open on the right, i.e., does not include the upper bound in the interval (“..” is closed on both sides and therefore does).
Please see Section 2.2.2.1 about the two range operators “..” and “…”.

(And, yes, I’m now aware that Swift uses “...” for the closed and “..<“ for the half-closed range operator (originally the latter even was “..”, the other way around from CDDL…).  Nice, but we nailed down those for CDDL quite a while ago, based on the range operators in Ruby, which are in turn somewhat, but not quite, based on those in Perl, which of course were informed by subranges in Pascal, where “..” also is a closed range.  Maybe we can add “..<“ for more visual attention in CDDL 2.0, keeping “...” to also mean half-closed.)

Grüße, Carsten

PS.: Yes, I admit I constructed the example to induce attentive readers to do a double-take, so they look up the two range operators again.
Apparently, it kind of almost worked :-)

Haha. Touché. Agree that a more distinct visual callout would be helpful in the future. Thanks for the clarification.

Regards
Suresh