Re: [Cbor] draft-mcnally-deterministic-cbor: rationale for not going with pre-encoded data (was: Updated Drafts for dCBOR I-D and Gordian Envelope Structured Data Format I-D [...])
Carsten Bormann <cabo@tzi.org> Wed, 31 May 2023 16:16 UTC
Return-Path: <cabo@tzi.org>
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 3B7A3C151B32 for <cbor@ietfa.amsl.com>; Wed, 31 May 2023 09:16:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.888
X-Spam-Level:
X-Spam-Status: No, score=-1.888 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01] 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 gDKNKZ0eXS4k for <cbor@ietfa.amsl.com>; Wed, 31 May 2023 09:16:40 -0700 (PDT)
Received: from smtp.zfn.uni-bremen.de (smtp.zfn.uni-bremen.de [134.102.50.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 16ACAC151998 for <cbor@ietf.org>; Wed, 31 May 2023 09:16:39 -0700 (PDT)
Received: from [192.168.217.124] (p548dc0f6.dip0.t-ipconnect.de [84.141.192.246]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4QWZC76KqDzDCdQ; Wed, 31 May 2023 18:16:35 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <59ADDAA3-EACF-4D10-934F-A18311815BB7@tzi.org>
Date: Wed, 31 May 2023 18:16:35 +0200
Cc: Christopher Allen <christophera@lifewithalacrity.com>, cbor@ietf.org, Wolf McNally <wolf@wolfmcnally.com>, Shannon.Appelcline@gmail.com
X-Mao-Original-Outgoing-Id: 707242595.575778-9e36bd45f7a2e1d6ed7c347ae60e4b9a
Content-Transfer-Encoding: quoted-printable
Message-Id: <2E441095-A02A-48F7-9A09-49C0858B67A6@tzi.org>
References: <CAAse2dEFB_FVP6_KkNANSYPW+yX4-M9pN3YkUq5=FTgLZnyWGw@mail.gmail.com> <ZHducp0jYdjNthbE@hephaistos.amsuess.com> <59ADDAA3-EACF-4D10-934F-A18311815BB7@tzi.org>
To: Christian Amsüss <christian@amsuess.com>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/DffCFZmZNFfJrd5N0baYdpDPPSk>
Subject: Re: [Cbor] draft-mcnally-deterministic-cbor: rationale for not going with pre-encoded data (was: Updated Drafts for dCBOR I-D and Gordian Envelope Structured Data Format I-D [...])
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.39
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: Wed, 31 May 2023 16:16:46 -0000
On 2023-05-31, at 18:10, Carsten Bormann <cabo@tzi.org> wrote: > > Imagine signing a current configuration in a YANG tree. (Which makes me shiver: typedef ieeefloat32 { type binary { length "4"; } description "An IEEE 32-bit floating point number. The format of this number is of the form: 1-bit sign 8-bit exponent 23-bit fraction The floating point value is calculated using: (-1)**S * 2**(Exponent-127) * (1+Fraction)"; } https://github.com/YangModels/yang/blob/main/vendor/cisco/xe/1681/openconfig-types.yang The description is wrong, but that should be obvious. But the real point of this example is that the model has introduced floating point values in a weird camouflage, and the dCBOR rules won’t apply here.) Grüße, Carsten
- [Cbor] Updated Drafts for dCBOR I-D and Gordian E… Christopher Allen
- Re: [Cbor] Updated Drafts for dCBOR I-D and Gordi… Carsten Bormann
- Re: [Cbor] Updated Drafts for dCBOR I-D and Gordi… Wolf McNally
- Re: [Cbor] Updated Drafts for dCBOR I-D and Gordi… Carsten Bormann
- Re: [Cbor] Updated Drafts for dCBOR I-D and Gordi… Jeremy O'Donoghue
- Re: [Cbor] Updated Drafts for dCBOR I-D and Gordi… Laurence Lundblade
- Re: [Cbor] Updated Drafts for dCBOR I-D and Gordi… Wolf McNally
- Re: [Cbor] Updated Drafts for dCBOR I-D and Gordi… Jeremy O'Donoghue
- Re: [Cbor] Updated Drafts for dCBOR I-D and Gordi… Carsten Bormann
- Re: [Cbor] Updated Drafts for dCBOR I-D and Gordi… Christian Amsüss
- Re: [Cbor] Updated Drafts for dCBOR I-D and Gordi… Carsten Bormann
- [Cbor] draft-mcnally-deterministic-cbor: rational… Christian Amsüss
- Re: [Cbor] draft-mcnally-deterministic-cbor: rati… Carsten Bormann
- Re: [Cbor] draft-mcnally-deterministic-cbor: rati… Carsten Bormann
- Re: [Cbor] Updated Drafts for dCBOR I-D and Gordi… Anders Rundgren
- Re: [Cbor] Updated Drafts for dCBOR I-D and Gordi… Carsten Bormann
- Re: [Cbor] Updated Drafts for dCBOR I-D and Gordi… Wolf McNally
- Re: [Cbor] Updated Drafts for dCBOR I-D and Gordi… Wolf McNally
- Re: [Cbor] Updated Drafts for dCBOR I-D and Gordi… Christopher Allen