Re: [Cbor] Status of Appendix A in RFC 8949
Carsten Bormann <cabo@tzi.org> Fri, 05 May 2023 06:53 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 47A88C151984 for <cbor@ietfa.amsl.com>; Thu, 4 May 2023 23:53:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, 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 ouYmaw6TuC94 for <cbor@ietfa.amsl.com>; Thu, 4 May 2023 23:53:04 -0700 (PDT)
Received: from smtp.zfn.uni-bremen.de (smtp.zfn.uni-bremen.de [IPv6:2001:638:708:32::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 CA140C151548 for <cbor@ietf.org>; Thu, 4 May 2023 23:53:01 -0700 (PDT)
Received: from smtpclient.apple (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 4QCLwp0XllzDCdx; Fri, 5 May 2023 08:52:58 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.500.231\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <8233a692-df84-f093-96bf-fe99c03adfc5@gmail.com>
Date: Fri, 05 May 2023 08:52:44 +0200
Cc: "cbor@ietf.org" <cbor@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <31111796-3CF7-4F8F-A805-4CBE1124E9D8@tzi.org>
References: <8233a692-df84-f093-96bf-fe99c03adfc5@gmail.com>
To: Anders Rundgren <anders.rundgren.net@gmail.com>
X-Mailer: Apple Mail (2.3731.500.231)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/gwbc231pzv1ehbzKq582-8hcWUQ>
Subject: Re: [Cbor] Status of Appendix A in RFC 8949
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: Fri, 05 May 2023 06:53:09 -0000
> In > https://www.rfc-editor.org/rfc/rfc8949.html#name-examples-of-encoded-cbor-da > there is a table with some example values given in Diagnostic Notation and how they are to be encoded in CBOR. > > A problem with this is that the appendix is not marked as "non-normative" although it it is (apparently…) It is not marked as informative because it is normative. As far as examples can be normative, of course. But if your CBOR diagnostic notation implementation does not handle these examples as given, it is not a CBOR diagnostic notation implementation. > based on Rule 2 in section 4.2.2. CBOR diagnostic notation is a readable representation for what is actually being interchanged. If your are changing a 4.0 to a 4, this becomes visible at this level. > Why is that a problem? Well, in > https://www.ietf.org/archive/id/draft-mcnally-deterministic-cbor-01.html#name-reduction-of-floating-point > Rule 1 is (apparently...) applied, which means that "-4.0" would return 0x23 rather than 0xf9c400 proposed in Appendix A as well as by Carsten's CBOR playground (https://cbor.me/) Again, diagnostic notation for 0x23 is “-4”. Both “-4” and “-4.0” actually have multiple encodings each, with a defined preferred encoding. > Taking CBOR to the world of shrink-wrapped software comparable to Open API will undoubtedly require a CBOR interoperability profile. You keep saying that. > In such a profile, deterministic encoding is a side effect. Not at all, as deterministic encoding also does things like determining map ordering, which many applications (and thus their “profiles”) do not need. Grüße, Carsten
- [Cbor] Status of Appendix A in RFC 8949 Anders Rundgren
- Re: [Cbor] Status of Appendix A in RFC 8949 Carsten Bormann
- Re: [Cbor] Status of Appendix A in RFC 8949 Carsten Bormann
- Re: [Cbor] Status of Appendix A in RFC 8949 Anders Rundgren
- Re: [Cbor] Status of Appendix A in RFC 8949 Anders Rundgren
- Re: [Cbor] Status of Appendix A in RFC 8949 Anders Rundgren
- Re: [Cbor] Status of Appendix A in RFC 8949 Carsten Bormann
- Re: [Cbor] Status of Appendix A in RFC 8949 Anders Rundgren
- Re: [Cbor] Status of Appendix A in RFC 8949 Carsten Bormann
- Re: [Cbor] Status of Appendix A in RFC 8949 Laurence Lundblade
- Re: [Cbor] Status of Appendix A in RFC 8949 Anders Rundgren
- Re: [Cbor] Status of Appendix A in RFC 8949 Brian E Carpenter
- Re: [Cbor] Status of Appendix A in RFC 8949 Anders Rundgren
- Re: [Cbor] Status of Appendix A in RFC 8949 Laurence Lundblade
- Re: [Cbor] Status of Appendix A in RFC 8949 Anders Rundgren