[Cbor] Re: I-D Action: draft-mcnally-deterministic-cbor-10.html
"lgl island-resort.com" <lgl@island-resort.com> Mon, 17 June 2024 03:57 UTC
Return-Path: <lgl@island-resort.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 D8F1AC1840D1 for <cbor@ietfa.amsl.com>; Sun, 16 Jun 2024 20:57:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.908
X-Spam-Level:
X-Spam-Status: No, score=-1.908 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uvnN_-rlKaxg for <cbor@ietfa.amsl.com>; Sun, 16 Jun 2024 20:57:45 -0700 (PDT)
Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2109.outbound.protection.outlook.com [40.107.244.109]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D26B0C19ECB8 for <cbor@ietf.org>; Sun, 16 Jun 2024 20:57:40 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l2V9oeLZWEfVA13NqqTaKHToBGPa8trO9xdLkoo47WKF1vDegP3M3H/OVowiHMAuRUUv1Cy2/5pDt4mqqCwS8T7KVrEPP8dopfacDKQU4HNClmL0kl+mT6trp0hG5vtTIsK+38LWBqA83h3U+wtigxVyUfBD7SoFPrOsIqyFHAApzdxFAokij8ixNM8GVMXpLXB3pTwJIFUmyJZ0CIbqRde0Xr7bgcsqqHUJuCPmTiWReOOOXxLJA4vWXRYRT7i/OSWTsEjSJxz9lBZ3uTYPsn3SDMw+UUL41Ddl95iIJT1zAzkpG3e9PIMyqTJyDk8xHaRVXWScn+gAuSEVNOtRgA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=32OC3lWgdnY5/YLBL8fUasUBUIrvddihaiYL/QueTys=; b=F9xUdzf7a+i2GVH23qyMvWK6Ycjxic5tu7bknun5WH0Yy84fJJidovnO/wdpz1SDCb1yNwLJSFSsjrHtDZq0ddL3/CZmQmS9Qy6bP+eDEdw7JLtcaFddfTRYwWwp6WRsbFoJ7CATwiJiH/CvW37ew9pJxD03/IUfNu/7oerixxvfHa1dC+LBYNjnIkSlsBaCfoqv4hMJ7cO6V/DOsMM0sv0RvX9Vp2zfJWPF3Po0qM8SBTW0SrIniUiFLCkovC2Eybtkc4sbWfE0i74Abpc3c0lPUS1RSA9sgqpN3tf4JPzwbyySHxYA4AMvf2kcJsHiONce1pywzyIlZKdUVGk6sg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=island-resort.com; dmarc=pass action=none header.from=island-resort.com; dkim=pass header.d=island-resort.com; arc=none
Received: from PH7PR22MB3092.namprd22.prod.outlook.com (2603:10b6:510:13b::8) by MN0PR22MB5601.namprd22.prod.outlook.com (2603:10b6:208:4be::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.30; Mon, 17 Jun 2024 03:57:37 +0000
Received: from PH7PR22MB3092.namprd22.prod.outlook.com ([fe80::8515:3aa6:3ced:15e]) by PH7PR22MB3092.namprd22.prod.outlook.com ([fe80::8515:3aa6:3ced:15e%5]) with mapi id 15.20.7677.029; Mon, 17 Jun 2024 03:57:37 +0000
From: "lgl island-resort.com" <lgl@island-resort.com>
To: Anders Rundgren <anders.rundgren.net@gmail.com>
Thread-Topic: [Cbor] I-D Action: draft-mcnally-deterministic-cbor-10.html
Thread-Index: AQHawBanz6Id2g4gTki5ykLSq1TEsLHLTZAAgAAHMQA=
Date: Mon, 17 Jun 2024 03:57:37 +0000
Message-ID: <21B2E20D-C9E8-48DE-BCAD-C843F2CCFE4A@island-resort.com>
References: <a962e326-ab3f-4857-a1ee-2042cf87f32a@gmail.com> <F3E4450A-EA4B-437E-9C58-5DB3972A152C@island-resort.com> <6601a16c-2b2e-45b2-b4e8-7bd4ba136401@gmail.com>
In-Reply-To: <6601a16c-2b2e-45b2-b4e8-7bd4ba136401@gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=island-resort.com;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: PH7PR22MB3092:EE_|MN0PR22MB5601:EE_
x-ms-office365-filtering-correlation-id: 5c6b9604-aa8d-415f-16a3-08dc8e81a067
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;ARA:13230037|1800799021|376011|366013|38070700015;
x-microsoft-antispam-message-info: EiJL2hsHQhvgE1qLNPHsm9ROXyKoDF9p1WmxxbhSgXwt9XlTBEpASysZ2W0l0a7mMvguTRVcZ7NFR7uZh7yjpeeQrlsJkbdV1NBKergErmeffSE+FjU03+jHpX+VZ9QprduyukQkMvuGfdJeFVIGKHIKI5UwwFYsijoh7l/We7JFrH0Z2Rvd1v1IPRT6A/Th5SFfaRO3dry+5AFv3nSxp0G+UBS5Ze5sucK5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BpZw0wZhtWey0C3xPBr88eANSnNB+MWuzo1Hdf8v51qHpZadsV0gD1mzY=
x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7PR22MB3092.namprd22.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230037)(1800799021)(376011)(366013)(38070700015);DIR:OUT;SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: fmJsqo4GYG6HgvLEfSIPahJmSQ75q2QZPPugEHHNb702vqdGSD03eI7cZKLfdP2TG2QAkwEilCCyUYvpnIO62b+/Q4gEb1HQOkv0U7onUitYrOvPwD2Rusp1lDKmidKooAL7zzzwPm70V/dUuoV3l5cbj0Gp6QPQt7+RivLSWb83C92Vi0QctjlKP6kRqEPH4tNFP0tUnFRO5hUfhELAAz7a4i0xIrcSuoj01ND3pg1c3uMoH+Av2U3/x0vgs3LAEbjFvbN9y0u7AUIk8NxtHps9LneyNktv+vDmk9LHQu1SZOS6rAZh5J4P00sXxBlIn25ewQL4Luo7XxcuxJzgK6ZiwH7Ds3JdvTx3JjfIXeUb+jbL/yhyWoQkpo9ID8ZY6ZGuFo+qaEQlGFFyL5bxncl/irBY+HA69fiqNtSX/8v+NhKP2p1K1DI1hNJAyWxvO2iQP39CFeO0/bOprzGOyq7tHd+1kmviEI0t4BUpmrynRFxTRdQseq0pxFwBt+lPEGwlV1+GQqH2ouSwcRpZYLo6VI+0sc+3msggzblrv95HRWWoekx7+3MxVph7dTf6gfu9HCJmCM0823whP9kQNdQNzqXvgek3mw8UPTFaLLKkpXvdFWG5YvlBvQBX7X4lA4wMVmIcTMcl4neIMj37Y7ZgwI9SLdfR+Xv2BfBa/74n8twQcEiy5NSio7fsF4lb0pIe99gh4t/d6VSg8jLbG7eDiWbI/qEhUZV3iVCEqeYQaQWSKwX09IyVEUyHP+weoU2HH3owPL+smplex6RqxDcUH7ZBfW0qVis72a1u3VoKtmA6An4D6vdMJdVBWK6SkvhdndYASCopaMPvCVwuEzbmhThG0udiUxzffeB9tL+DTt9Jy1QEU8Wlxllcm8e2TAkCrDkLaLCXhYWKApYuOEDz4ID6kmTeIuMkdydN07bKsBns//iLBuQIOEFzc8zeGGy8PhlsjwI+b6QbkMBTBjKUKf5q89BoFqfiCFIbeMfItkz7x40Q7s2GqtEJ8/zDB7M7xWI3au47NkthiUr1HJLJFd2Yz88O6kAXDJVYKredhraFgnHN7b3T83ZXM4wE9sdPuLbrk8Vk7sB44x1PUHEb1FlZQ+f/VCVIdJiNXBjHTPAdJmmxN9CdzbVh5bFyLcjvfOG2ir0muL6wicBuyJYcBEo05v7vmvfnW34U/4/Pf4sXFgWSh/f4hxeG7WBwoyTN7l9cbqFsTEFxpKYC/Gto8r4OHwO/RYEexUlHdZFvSfNAVreuo6+p/QfgdNpfPEw9DXLe94lUEANXgc/vthRCyP8vyPdcHcoQI7AyYmshrppcxct9bd6Vppcse3fWeV8hNtm2moucJLAZf7L5/KlLo7mp1V+nMoXvC6IoOExBKRmOqLM1nt7UP+6FF7Noh0k+kVwIDZ7gqvQ4w2bjQDRcnZnIsOya2vRwoKuv2TJWyfDJpDe4FeTtsK2yRBuq0Ccc96wbOX1Pb2C+lkg1LQVQBVJ9ZXEqnQbhjZFWMiV0S1Nou9WriJWpNskyg6WbRWykB/dp2gJ5uZGopXu1C66NsqyZb5lmrR5nQmLfM87TsMtzLQpHQwKIqqBf2DLWQrFezscwuXwoQZoASHgtmA==
Content-Type: text/plain; charset="utf-8"
Content-ID: <A06E5642E8B44A4786EA8F66C2901609@namprd22.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: island-resort.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: PH7PR22MB3092.namprd22.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 5c6b9604-aa8d-415f-16a3-08dc8e81a067
X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jun 2024 03:57:37.2429 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: ad4b5b91-a549-4435-8c42-a30bf94d14a8
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: buVQuucLJc7y/n8K8ePHWX08mJoU2myHM1QVPuwFspZ9xQUaOoRjOQX3M2VEH73/gwuMZ4dHvkfdZFG+rC59Zw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR22MB5601
Message-ID-Hash: GCBEB64BQYMVNJRPO32LRHWWP7U5ORG4
X-Message-ID-Hash: GCBEB64BQYMVNJRPO32LRHWWP7U5ORG4
X-MailFrom: lgl@island-resort.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-cbor.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: "cbor@ietf.org" <cbor@ietf.org>
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [Cbor] Re: I-D Action: draft-mcnally-deterministic-cbor-10.html
List-Id: "Concise Binary Object Representation (CBOR)" <cbor.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/NQ74R5ltTq_QnzMrMvMprfGf4wk>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Owner: <mailto:cbor-owner@ietf.org>
List-Post: <mailto:cbor@ietf.org>
List-Subscribe: <mailto:cbor-join@ietf.org>
List-Unsubscribe: <mailto:cbor-leave@ietf.org>
> On Jun 16, 2024, at 8:31 PM, Anders Rundgren <anders.rundgren.net@gmail.com> wrote: > > On 2024-06-16 19:57, lgl island-resort.com wrote: >> On Jun 16, 2024, at 7:50 AM, Anders Rundgren <anders.rundgren.net@gmail.com> wrote: >>> >>> 2.3 Numeric Reduction >>> To provide deterministic encoding in platforms that do not separate integer >>> and floating point values (like JavaScript), numbers must be canonicalized. >>> Numeric reduction ensures that semantically equal numeric values (e.g. 2 and 2.0) >>> are encoded into identical byte streams (e.g. 0x02) by encoding "Integral floating point values" >>> (floating point values with a zero fractional part) as integers when possible. >>> >>> Since this is the essence of dCBOR, I would drop all other parts of dCBOR, since similar restrictions and limitations can be found in just about any other CBOR-using application as well. >> There’s only two other things: >> 1) requirement to validate (the requirement to validate dCBOR implies validation of CDE which implies the requirement to reject dup map keys). > > Wouldn't that better belong to CDE? Duplicate keys are already invalid CBOR. I don’t think so. That would be a very big change from RFC 8949 where CDE is already pretty much defined and because dup detection is one of the more complex and expensive things to in a CBOR decoder in programming environments without a map concept. >> 2) restriction of simple types to true, false and null >> Agreed that the numeric reduction is the center of dCBOR, but I don’t mind that these other things are part of it too. >> If some protocol wants dCBOR numeric reduction plus the simple value undefined, they can just say so in a specification and it will be OK. Seems like the main problem is that they won’t be able to use the “.dcbor” CDDL control. > > Assume you have an application that is rather using CDE and it outlaws all simple types except for true, false and null. Would the authors be encouraged writing a specific profile document and run it trough the IETF? I hope not. I hope not too, but I still don’t mind that dCBOR has this restriction. I don’t feel strongly either way. I also find the whole notion of CBOR application profiles introduced in the CDE document excessive. LL
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Anders Rundgren
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… lgl island-resort.com
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Anders Rundgren
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… lgl island-resort.com
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Anders Rundgren
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Anders Rundgren
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Anders Rundgren
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Wolf McNally
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Wolf McNally
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Anders Rundgren
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Joe Hildebrand
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Carsten Bormann
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Anders Rundgren
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Anders Rundgren
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Wolf McNally
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Carsten Bormann
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Anders Rundgren
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Wolf McNally
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Anders Rundgren
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Christopher Allen
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Anders Rundgren
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Wolf McNally
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Anders Rundgren
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… lgl island-resort.com
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Wolf McNally
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Carsten Bormann
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Anders Rundgren
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Anders Rundgren
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Wolf McNally
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Anders Rundgren
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Carsten Bormann
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Wolf McNally