Re: [Cbor] dCBOR moving from numerically-typeless systems

Carsten Bormann <cabo@tzi.org> Sun, 25 June 2023 16:30 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 41B05C15152F for <cbor@ietfa.amsl.com>; Sun, 25 Jun 2023 09:30:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.899
X-Spam-Level:
X-Spam-Status: No, score=-6.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-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 C71jw9T2iGg5 for <cbor@ietfa.amsl.com>; Sun, 25 Jun 2023 09:30:05 -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 0DE53C15108F for <cbor@ietf.org>; Sun, 25 Jun 2023 09:30:03 -0700 (PDT)
Received: from client-0227.vpn.uni-bremen.de (client-0227.vpn.uni-bremen.de [134.102.107.227]) (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 4QpxK42CQ0zDCbN; Sun, 25 Jun 2023 18:30:00 +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: <D94A8AF2-401A-4A2F-AA0A-6097169DD0E0@wolfmcnally.com>
Date: Sun, 25 Jun 2023 18:29:59 +0200
Cc: cbor@ietf.org
X-Mao-Original-Outgoing-Id: 709403399.780053-9664110c399b330000495e0b0cc0b179
Content-Transfer-Encoding: quoted-printable
Message-Id: <E3A5B1D3-3847-4EC4-9470-8E27F4403F82@tzi.org>
References: <2B1FA8CC-AD83-4E58-BE27-B6504F555694@wolfmcnally.com> <8551021E-A1A2-4764-B0DF-D3E7591EC9B6@tzi.org> <FD5D8771-E1CF-4C63-A141-054DE0085399@wolfmcnally.com> <D714A0A4-7452-4C45-8542-7A57A75C9748@tzi.org> <35A71381-A9DD-479C-A7D5-9B06F70B6F50@wolfmcnally.com> <3CE988BD-C87E-4A0C-ADA8-79124FE1FB51@tzi.org> <382FB8D4-03B8-4B92-B7BA-B3760D77D258@wolfmcnally.com> <7AAE85BD-AD41-445C-B747-B80523B068ED@tzi.org> <D94A8AF2-401A-4A2F-AA0A-6097169DD0E0@wolfmcnally.com>
To: Wolf McNally <wolf@wolfmcnally.com>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/I9P7vsMGCvUOoDisLV57espJz30>
Subject: Re: [Cbor] dCBOR moving from numerically-typeless systems
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: Sun, 25 Jun 2023 16:30:07 -0000

On 2023-03-12, at 23:02, Wolf McNally <wolf@wolfmcnally.com> wrote:
> 
> it *can’t* be a requirement as not all CBOR is valid dCBOR, and by extension not all JSON can be converted to dCBOR,

Non sequitur.

Of course not all CBOR is valid dCBOR.
You could design dCBOR so that all valid CBOR can be converted to valid dCBOR, but you chose to (slightly) subset the generic data model instead.
I’d say, quite appropriate for dCBOR’s area of application.

The part I don’t understand is about JSON: JSON’s generic data model already is a pretty heftily proper subset of CBOR.
(JSON does not define a generic data model, but I-JSON RFC 7493 does record the common assumptions that are needed to make JSON’s generic data model interoperable).  
What is in there that can’t be converted to your design of dCBOR?

Grüße, Carsten