Re: [Cbor] Updated Drafts for dCBOR I-D and Gordian Envelope Structured Data Format I-D & IANA Tag Registration

Christian Amsüss <christian@amsuess.com> Wed, 31 May 2023 15:19 UTC

Return-Path: <christian@amsuess.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 55B55C14CE4F for <cbor@ietfa.amsl.com>; Wed, 31 May 2023 08:19:04 -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 U6ZGwGUz6x7A for <cbor@ietfa.amsl.com>; Wed, 31 May 2023 08:19:01 -0700 (PDT)
Received: from smtp.akis.at (smtp.akis.at [IPv6:2a02:b18:500:a515::f455]) (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 76967C15108C for <cbor@ietf.org>; Wed, 31 May 2023 08:18:58 -0700 (PDT)
Received: from poseidon-mailhub.amsuess.com (095129206250.cust.akis.net [95.129.206.250]) by smtp.akis.at (8.17.1/8.17.1) with ESMTPS id 34VFIsKD026748 (version=TLSv1.2 cipher=ECDHE-ECDSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 May 2023 17:18:54 +0200 (CEST) (envelope-from christian@amsuess.com)
X-Authentication-Warning: smtp.akis.at: Host 095129206250.cust.akis.net [95.129.206.250] claimed to be poseidon-mailhub.amsuess.com
Received: from poseidon-mailbox.amsuess.com (unknown [IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bf]) by poseidon-mailhub.amsuess.com (Postfix) with ESMTP id 9FDC221DC7; Wed, 31 May 2023 17:18:53 +0200 (CEST)
Received: from hephaistos.amsuess.com (hephaistos.lan [IPv6:2a02:b18:c13b:8010::d5b]) by poseidon-mailbox.amsuess.com (Postfix) with ESMTPSA id 6EE252385B; Wed, 31 May 2023 17:18:53 +0200 (CEST)
Received: (nullmailer pid 31912 invoked by uid 1000); Wed, 31 May 2023 15:18:53 -0000
Date: Wed, 31 May 2023 17:18:53 +0200
From: Christian Amsüss <christian@amsuess.com>
To: Wolf McNally <wolf@wolfmcnally.com>
Cc: "cbor@ietf.org" <cbor@ietf.org>, Carsten Bormann <cabo@tzi.org>
Message-ID: <ZHdlXYVgQUjHsiGt@hephaistos.amsuess.com>
References: <CAAse2dEFB_FVP6_KkNANSYPW+yX4-M9pN3YkUq5=FTgLZnyWGw@mail.gmail.com> <4EBE3640-5F7F-46B8-961A-D1872A6A0CA4@tzi.org> <463016EF-0DAB-45D4-AB30-53FB2B76F52B@wolfmcnally.com> <DD0E7621-EE3A-496E-9D2C-1CD00E2D92F9@tzi.org> <PH0PR02MB7256A94640C7C02C75C3795FF2779@PH0PR02MB7256.namprd02.prod.outlook.com> <62FCDF82-9766-431F-A996-BF820D5564C5@island-resort.com> <EA5A4131-F715-437C-A9AD-FF6220D1A3B3@wolfmcnally.com> <EC48004E-8A52-4F32-ACF2-865A3911156E@tzi.org>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="qcgTJ42abaqWhDYP"
Content-Disposition: inline
In-Reply-To: <EC48004E-8A52-4F32-ACF2-865A3911156E@tzi.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/XWvqM2T5VClzjrBInbpvNp3Ch7o>
Subject: Re: [Cbor] Updated Drafts for dCBOR I-D and Gordian Envelope Structured Data Format I-D & IANA Tag Registration
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 15:19:04 -0000

On Wed, May 31, 2023 at 12:35:03PM +0200, Carsten Bormann wrote:
> What I’m trying to point out here is that mixing this issue with
> deterministic encoding might be blurring it more than helping.

To put a point from earlier in the interim into mail-referencable form:

Maybe the numeric part can be better expressed as a variant of the CBOR
information model. Applications would describe that they're not built on
the (strongly typed) CBOR information model, but described in terms of
the more losely typed numeric-types-are-interchangable information
model. That model might have different APIs to interact with; for
example, a weakly typed language may have a `.append_int()` and an
`.append_float()` function in the encoder of CBOR, whereas the
numeric-types-are-intercangable (dCBOR) encoder has a
`.append_numeric()` function -- most of its API will be similar, though.

That model may also describe that numeric arrays are always expanded,
or encoded as numeric arrays under some particular conditions (but I
guess it'll be always-expanded), or for even weaker typed languages also
define a high-level "maybe UTF8" type that gets encoded as tstr or bstr
depending on its content.

The model would then describe how to do the number reduction, and CBOR
deterministric encoding (as described as sufficient in section 3.1 of
mcnally-deterministic-cbor-01).

BR
Christian