
From nobody Fri Feb  4 10:13:20 2022
Return-Path: <mcr@sandelman.ca>
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 5D9303A1EFD for <cbor@ietfa.amsl.com>; Fri,  4 Feb 2022 10:13:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nXFd_fPPh4WO for <cbor@ietfa.amsl.com>; Fri,  4 Feb 2022 10:13:04 -0800 (PST)
Received: from relay.sandelman.ca (relay.cooperix.net [IPv6:2a01:7e00:e000:2bb::1]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B31BD3A1EA8 for <cbor@ietf.org>; Fri,  4 Feb 2022 10:12:48 -0800 (PST)
Received: from dooku.sandelman.ca (desktop4.sandelman.ca [209.87.249.16]) by relay.sandelman.ca (Postfix) with ESMTPS id 443F61F44B for <cbor@ietf.org>; Fri,  4 Feb 2022 18:12:45 +0000 (UTC)
Received: by dooku.sandelman.ca (Postfix, from userid 179) id 744991A03ED; Fri,  4 Feb 2022 13:12:43 -0500 (EST)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: cbor@ietf.org
X-Attribution: mcr
X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 26.3
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature"
Date: Fri, 04 Feb 2022 13:12:43 -0500
Message-ID: <289545.1643998363@dooku>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/fxZtAhcARspIqZyQzCE1i4FRg40>
Subject: [Cbor] eliding CBOR diagnostic notation binary contents
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 04 Feb 2022 18:13:18 -0000

--=-=-=
Content-Type: text/plain


In draft-ietf-anima-constrained-voucher we want to show examples, but some of
the hex strings are too long to fit easily, and there is little point in
wasting space for them.
(We include base64 encodings of the entire CBOR object)

please see https://github.com/anima-wg/constrained-voucher/pull/217/files

we try to consistently use / comment / in the diagnostic format, but we also
do:
   change from:
         h'1234',         // request_voucher
   to:
         h'<request_voucher>',  / byte string as detailed below /

I'm a little bit uncomfortable with <foobar> in the hex.
While h'1234' was syntactically valid, it was completely invalid contents.

Is there another choice?
Does this call out for some additional syntax for diagnostic format?
Something that is officially invalid, but that can be parsed and complained
about more clearly?



--
Michael Richardson <mcr+IETF@sandelman.ca>, Sandelman Software Works
 -= IPv6 IoT consulting =-




--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQGzBAEBCgAdFiEEow/1qDVgAbWL2zxYcAKuwszYgEMFAmH9bJsACgkQcAKuwszY
gEP6uQv9F7omoQzTdW5G8V/hLgaxohnMMwPXEbnmk1lAh8Z3bgJKmIrajV9uBueT
TBAoqq0GZ0Ih8ysErMVyu38XTCuEV75HVit5VBnVUWYHoeibLPzDZKrVsn8SIwqM
b3wxIU2uVcXXRlkOmluvaAylCuoEznGwzeZB6GgoHuqp84mL31jBufuMH2zsKcOh
T6L0JEZp6Vsnbir/uCQuiW83B4VtwtvorCuuS6NFXerqOxHVlR7a+UQThs5kU2AK
yFZTj2icFP19Cr9mzi7dAMdAxNnHCyo0NlCVFNpfW/CS2UN+AMyJwS1V43EOsq2L
AuFtTgDdZhg270hFNM5esKatOE4giGShfYRD2pIATTQp+21PSHDuUCcrvQhcRGeE
GD7DhWqBd8R/epztQJYTqh4AAzR4kXTecDnRpiKLasMxOwYV05CtWRSXSUjQuETC
RXsF9rEc16wUZZT4P5jirzVUOZs2+Vzok9846jgkld3bgvdjfr9vTcc0MpCODoKc
TCtZGupA
=Dqgw
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Fri Feb  4 11:15:10 2022
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 5B6D53A2009 for <cbor@ietfa.amsl.com>; Fri,  4 Feb 2022 11:15:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Uz-vTkHGJP4P for <cbor@ietfa.amsl.com>; Fri,  4 Feb 2022 11:15:05 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [134.102.50.15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C73473A2006 for <cbor@ietf.org>; Fri,  4 Feb 2022 11:15:04 -0800 (PST)
Received: from smtpclient.apple (p5089ad4f.dip0.t-ipconnect.de [80.137.173.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4Jr4x06C7BzDCcB; Fri,  4 Feb 2022 20:15:00 +0100 (CET)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.40.0.1.81\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <289545.1643998363@dooku>
Date: Fri, 4 Feb 2022 20:14:45 +0100
Cc: cbor@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <982B35D9-8541-4AB6-88DE-55018DB5BB6B@tzi.org>
References: <289545.1643998363@dooku>
To: Michael Richardson <mcr+ietf@sandelman.ca>
X-Mailer: Apple Mail (2.3693.40.0.1.81)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/N4GnY1e0Bdx-_wnGVPkrbHKPLtc>
Subject: Re: [Cbor] eliding CBOR diagnostic notation binary contents
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 04 Feb 2022 19:15:09 -0000

On 4. Feb 2022, at 19:12, Michael Richardson <mcr+ietf@sandelman.ca> =
wrote:
>=20
> Does this call out for some additional syntax for diagnostic format?

Additional syntax for elisions makes a lot of sense to me.
Not sure there needs to be a h=E2=80=99=E2=80=A6=E2=80=99 around that =
(why not b64=E2=80=99=E2=80=A6=E2=80=99, by the way?).
We also probably want to put in elisions for a map or array, e.g.,

[1, 2, =E2=80=A6]

or

{
  a: b;
  c: d;
  =E2=80=A6
}

Being able to indicate more type information about what is being elided =
borders on reinventing CDDL, but maybe there is a place for such a =
marriage.

Gr=C3=BC=C3=9Fe, Carsten



From nobody Fri Feb  4 12:30:14 2022
Return-Path: <mcr+ietf@sandelman.ca>
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 144A63A223B for <cbor@ietfa.amsl.com>; Fri,  4 Feb 2022 12:30:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=sandelman.ca
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jHAFbrO9rfvz for <cbor@ietfa.amsl.com>; Fri,  4 Feb 2022 12:30:02 -0800 (PST)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [209.87.249.19]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B46DC3A2237 for <cbor@ietf.org>; Fri,  4 Feb 2022 12:30:01 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by tuna.sandelman.ca (Postfix) with ESMTP id 856B438B80; Fri,  4 Feb 2022 15:37:23 -0500 (EST)
Received: from tuna.sandelman.ca ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id VGCjoj_fvMQF; Fri,  4 Feb 2022 15:37:20 -0500 (EST)
Received: from sandelman.ca (obiwan.sandelman.ca [IPv6:2607:f0b0:f:2::247]) by tuna.sandelman.ca (Postfix) with ESMTP id 9B2E838B7F; Fri,  4 Feb 2022 15:37:20 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sandelman.ca; s=mail; t=1644007040; bh=U/CGeS5OIAhE9XVmaXeEmSBqO9tBljfs3PfL/MO2/AE=; h=From:To:Subject:In-Reply-To:References:Date:From; b=WNF9+6I1B7ibB4WXl3cZJsjXtAV8sSfSA1j5E8IxAxoNULAEq3/ObC6weXVSRmxaa 68ZbKGe54S4BmPwXxDZvqx8TCnnHZBTghrR1AcIepM8sdFWqDX1wRYnitgeYVXotkM 5+hyrOqLPAJqAb2PTxhzgKfPmf2MZ/tdPm/QMvGJ3nGbFcRW/H3J9riQyzH+hjp/FG Nnj68dTpCU36N76OO8HHG2dH4khPuhQzHWkeRJRhuccs1RWTQZO54HP1wD42hzbiw0 Jp10GQtsimXwJh9VVD8BALSR4ZbAU9WVr6b1aHpANDYLn4UVrV+VZQRhaI5Ee5qJi/ I+6azze9PHqdg==
Received: from localhost (localhost [IPv6:::1]) by sandelman.ca (Postfix) with ESMTP id 328206CE; Fri,  4 Feb 2022 15:29:57 -0500 (EST)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: Carsten Bormann <cabo@tzi.org>, cbor@ietf.org
In-Reply-To: <982B35D9-8541-4AB6-88DE-55018DB5BB6B@tzi.org>
References: <289545.1643998363@dooku> <982B35D9-8541-4AB6-88DE-55018DB5BB6B@tzi.org>
X-Mailer: MH-E 8.6+git; nmh 1.7+dev; GNU Emacs 26.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature"
Date: Fri, 04 Feb 2022 15:29:57 -0500
Message-ID: <27168.1644006597@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/bsBotu7i3AyFxm4z0y6oQijJvFk>
Subject: Re: [Cbor] eliding CBOR diagnostic notation binary contents
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 04 Feb 2022 20:30:12 -0000

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


Carsten Bormann <cabo@tzi.org> wrote:
    > Additional syntax for elisions makes a lot of sense to me.
    > Not sure there needs to be a h=E2=80=99=E2=80=A6=E2=80=99 around that=
 (why not b64=E2=80=99=E2=80=A6=E2=80=99, by the
    > way?).

b64() would disingenious, I think.
As for why h'...',  I might want to do h'30...AB' providing just a tiny bit=
 of context.

I agree that going beyond that is verging on CDDL.

=2D-
Michael Richardson <mcr+IETF@sandelman.ca>   . o O ( IPv6 I=C3=B8T consulti=
ng )
           Sandelman Software Works Inc, Ottawa and Worldwide





--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iPMEAQEKAB0WIQSk7ZHEG9TCGBNASfm/sjw/rPYc8wUCYf2MxAAKCRC/sjw/rPYc
83+zBf43SfsoKDRMFCprSxxc55HgdBYipDbLFGd7AJDHVTVrqqA33kMaT2Jk7ELL
AMmEKXn2KnEVF5lNug0tQiWJuVnBNuyJplfdwVDPlParzyJH+V0iYr3enuYa6SuH
7ncsUN2Z4mNCLh802g3elHTanz9Qd8TGg2OHXODi2fxfzWcKrud5NM3+WWyHIdKV
PRulJuqd8kJ2g9wBz46Z/R2rPAuM+XPLVhaV52KVs3+7HlF7LyDUBNFQdlimsODJ
+PWyVEs=
=0+ur
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Mon Feb  7 19:16:47 2022
Return-Path: <barryleiba@gmail.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 147E23A11C2 for <cbor@ietfa.amsl.com>; Mon,  7 Feb 2022 19:16:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.399
X-Spam-Level: 
X-Spam-Status: No, score=-1.399 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2mpyEiAphCSO for <cbor@ietfa.amsl.com>; Mon,  7 Feb 2022 19:16:41 -0800 (PST)
Received: from mail-vs1-f46.google.com (mail-vs1-f46.google.com [209.85.217.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 133853A11BD for <cbor@ietf.org>; Mon,  7 Feb 2022 19:16:41 -0800 (PST)
Received: by mail-vs1-f46.google.com with SMTP id a19so1934350vsi.2 for <cbor@ietf.org>; Mon, 07 Feb 2022 19:16:40 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=n/L2djMdj5YrJq7WMDINMzr62NJZ1aKIYRfN7T2mqYc=; b=zBwT00JWLBd9vaxKtZ8xi2YwuGhkPiPV4YrLMRiP//DAX5opdLhrXrOuKmBuGN+6Fo h3UBIfEfwLfr3L+kQdTIw2nA2CnCX9clNVcMWvjWiHd52pu0jxBTRHuAWHKMbPjUbThL tvnhv+PZuW2BmIMmM1EulWy6xrsvwikAvoLg83aNGFsklGBrGMoksegfCZJbo0hvZFvo h8ZuAh3yxncMX/ZH6ZLFO2WlN8mK+NB4UsRb0Q3o9CNOF1FnyKLsEjyeOb/i9JldO39V Oe8PIQ5g7j36Ko2lclVWCirKO4wTpiKrrm2d5fRC1xqpv8FWKSk2SzQISeig/imdj8v+ 3Fpw==
X-Gm-Message-State: AOAM530kTz6HvtZv3FDDCqp5yx2H25x8qLt6I+5ad5wAMKNnb0+OX5s5 TwV0chHM3A+Lo5Trc+TGxhsyTe39YKUM1IbiiL2T/gZ0B1k=
X-Google-Smtp-Source: ABdhPJxwPFsojTMx3q1ikIYRgXPLBxAiGXENVKGXq4/LrUur5wxEWFbGsYyGMQbH15/74H/fKrDekJaG/R22YL9Sxwo=
X-Received: by 2002:a67:c390:: with SMTP id s16mr950435vsj.61.1644290199628; Mon, 07 Feb 2022 19:16:39 -0800 (PST)
MIME-Version: 1.0
References: <163707702504.30387.8402584115975093888@ietfa.amsl.com> <CALaySJJM9HGoC_fcqNRXDypZKwxRKYqa16Kwy+obNoPYHMY9_A@mail.gmail.com>
In-Reply-To: <CALaySJJM9HGoC_fcqNRXDypZKwxRKYqa16Kwy+obNoPYHMY9_A@mail.gmail.com>
From: Barry Leiba <barryleiba@computer.org>
Date: Mon, 7 Feb 2022 22:16:28 -0500
Message-ID: <CALaySJ+ma=WN046=BcTR98MW+g6V9mDks_nqD6Wy5+eeE_XyrQ@mail.gmail.com>
To: cbor@ietf.org
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/DY0VN64wJ7O7urnrvdc8mkDs6BY>
Subject: [Cbor] Reminder: CBOR WG Virtual Meeting on 2022-02-09
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Tue, 08 Feb 2022 03:16:45 -0000

Reminder:
The next CBOR WG Virtual Meeting is this Wednesday, 9 Feb, at 15:00
UTC.  Information for this
meeting is here:

Datatracker: https://datatracker.ietf.org/meeting/interim-2022-cbor-03/session/cbor
Notes: https://notes.ietf.org/notes-ietf-interim-2022-cbor-03-cbor
Meetecho: https://meetings.conf.meetecho.com/interim/?short=d613f852-1d74-4567-9194-bf4f8ef3a671

Please go to the notes and add to the agenda.

Please go to the notes and add your name to volunteer to help take notes.

And we'll see you on Wednesday.

Barry


From nobody Tue Feb  8 08:12:26 2022
Return-Path: <internet-drafts@ietf.org>
X-Original-To: cbor@ietf.org
Delivered-To: cbor@ietfa.amsl.com
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 1D59B3A105C; Tue,  8 Feb 2022 08:12:24 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: internet-drafts@ietf.org
To: <i-d-announce@ietf.org>
Cc: cbor@ietf.org
X-Test-IDTracker: no
X-IETF-IDTracker: 7.44.0
Auto-Submitted: auto-generated
Precedence: bulk
Reply-To: cbor@ietf.org
Message-ID: <164433674404.12800.16351942094084419995@ietfa.amsl.com>
Date: Tue, 08 Feb 2022 08:12:24 -0800
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/fDXiki9N2IOfYYReS3_H0WsYpuY>
Subject: [Cbor] I-D Action: draft-ietf-cbor-file-magic-08.txt
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Tue, 08 Feb 2022 16:12:24 -0000

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Concise Binary Object Representation Maintenance and Extensions WG of the IETF.

        Title           : On storing CBOR encoded items on stable storage
        Authors         : Michael Richardson
                          Carsten Bormann
	Filename        : draft-ietf-cbor-file-magic-08.txt
	Pages           : 17
	Date            : 2022-02-08

Abstract:
   This document defines an on-disk format for CBOR objects that is
   friendly to common on-disk recognition systems such as the Unix
   file(1) command.


The IETF datatracker status page for this draft is:
https://datatracker.ietf.org/doc/draft-ietf-cbor-file-magic/

There is also an HTML version available at:
https://www.ietf.org/archive/id/draft-ietf-cbor-file-magic-08.html

A diff from the previous version is available at:
https://www.ietf.org/rfcdiff?url2=draft-ietf-cbor-file-magic-08


Internet-Drafts are also available by rsync at rsync.ietf.org::internet-drafts



From nobody Tue Feb  8 08:15:05 2022
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 C1A5D3A1148 for <cbor@ietfa.amsl.com>; Tue,  8 Feb 2022 08:14:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZqPrqtGPUf08 for <cbor@ietfa.amsl.com>; Tue,  8 Feb 2022 08:14:53 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [IPv6:2001:638:708:32::15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D364D3A10B3 for <cbor@ietf.org>; Tue,  8 Feb 2022 08:14:52 -0800 (PST)
Received: from [192.168.217.118] (p5089ad4f.dip0.t-ipconnect.de [80.137.173.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4JtSlD5RNgzDCd5; Tue,  8 Feb 2022 17:14:48 +0100 (CET)
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: <164433674404.12800.16351942094084419995@ietfa.amsl.com>
Date: Tue, 8 Feb 2022 17:14:48 +0100
X-Mao-Original-Outgoing-Id: 666029688.276121-cc9c1578f003bfb5819e8004c3ead936
Content-Transfer-Encoding: quoted-printable
Message-Id: <0A949844-B862-4266-81D2-AB202589F6F8@tzi.org>
References: <164433674404.12800.16351942094084419995@ietfa.amsl.com>
To: cbor@ietf.org
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/O8oTdBY7BKPt3coGzg2tI6zaUC8>
Subject: Re: [Cbor] I-D Action: draft-ietf-cbor-file-magic-08.txt
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Tue, 08 Feb 2022 16:15:04 -0000

This version is meant to include all the details we have discussed.
Maybe we can sign this off together in tomorrow=E2=80=99s interim.

Gr=C3=BC=C3=9Fe, Carsten


> On 2022-02-08, at 17:12, internet-drafts@ietf.org wrote:
>=20
>=20
> A New Internet-Draft is available from the on-line Internet-Drafts =
directories.
> This draft is a work item of the Concise Binary Object Representation =
Maintenance and Extensions WG of the IETF.
>=20
>        Title           : On storing CBOR encoded items on stable =
storage
>        Authors         : Michael Richardson
>                          Carsten Bormann
> 	Filename        : draft-ietf-cbor-file-magic-08.txt
> 	Pages           : 17
> 	Date            : 2022-02-08
>=20
> Abstract:
>   This document defines an on-disk format for CBOR objects that is
>   friendly to common on-disk recognition systems such as the Unix
>   file(1) command.
>=20
>=20
> The IETF datatracker status page for this draft is:
> https://datatracker.ietf.org/doc/draft-ietf-cbor-file-magic/
>=20
> There is also an HTML version available at:
> https://www.ietf.org/archive/id/draft-ietf-cbor-file-magic-08.html
>=20
> A diff from the previous version is available at:
> https://www.ietf.org/rfcdiff?url2=3Ddraft-ietf-cbor-file-magic-08

Gr=C3=BC=C3=9Fe, Carsten



From nobody Tue Feb  8 08:59:02 2022
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 9C4473A0AB7 for <cbor@ietfa.amsl.com>; Tue,  8 Feb 2022 08:59:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level: 
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hk22jh2mJajk for <cbor@ietfa.amsl.com>; Tue,  8 Feb 2022 08:58:55 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [134.102.50.15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 73BF23A0C42 for <cbor@ietf.org>; Tue,  8 Feb 2022 08:58:39 -0800 (PST)
Received: from [192.168.217.118] (p5089ad4f.dip0.t-ipconnect.de [80.137.173.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4JtTjm419qzDCbc; Tue,  8 Feb 2022 17:58:36 +0100 (CET)
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: <27168.1644006597@localhost>
Date: Tue, 8 Feb 2022 17:58:36 +0100
Cc: cbor@ietf.org
X-Mao-Original-Outgoing-Id: 666032316.014138-fc59ef63aeb834f74ea71ad4c17a00a1
Content-Transfer-Encoding: quoted-printable
Message-Id: <D6BA4596-C08F-4CDF-AEB4-20C264D3BB34@tzi.org>
References: <289545.1643998363@dooku> <982B35D9-8541-4AB6-88DE-55018DB5BB6B@tzi.org> <27168.1644006597@localhost>
To: Michael Richardson <mcr+ietf@sandelman.ca>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/O09_wGFBmEy38tSDMOxZX7FQjP8>
Subject: Re: [Cbor] eliding CBOR diagnostic notation binary contents
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Tue, 08 Feb 2022 16:59:01 -0000

https://tzi.de/~cabo/cbor-elision.pdf

Let=E2=80=99s talk about that tomorrow.

Gr=C3=BC=C3=9Fe, Carsten


From nobody Wed Feb  9 04:41:45 2022
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 6CBDB3A07B2 for <cbor@ietfa.amsl.com>; Wed,  9 Feb 2022 04:41:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level: 
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hkTSyNr7Us1b for <cbor@ietfa.amsl.com>; Wed,  9 Feb 2022 04:41:38 -0800 (PST)
Received: from smtp.akis.at (smtp.akis.at [IPv6:2a02:b18:500:a515::f455]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6D9183A096B for <cbor@ietf.org>; Wed,  9 Feb 2022 04:41:36 -0800 (PST)
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 219CfUpd038192 (version=TLSv1.2 cipher=ECDHE-ECDSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 9 Feb 2022 13:41:31 +0100 (CET) (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 (poseidon-mailbox.amsuess.com [IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bf]) by poseidon-mailhub.amsuess.com (Postfix) with ESMTP id 04BA6D0; Wed,  9 Feb 2022 13:41:30 +0100 (CET)
Received: from hephaistos.amsuess.com (91.141.66.123.wireless.dyn.drei.com [91.141.66.123]) by poseidon-mailbox.amsuess.com (Postfix) with ESMTPSA id 8BF95FD; Wed,  9 Feb 2022 13:41:29 +0100 (CET)
Received: (nullmailer pid 317448 invoked by uid 1000); Wed, 09 Feb 2022 12:41:28 -0000
Date: Wed, 9 Feb 2022 13:41:28 +0100
From: Christian =?iso-8859-1?Q?Ams=FCss?= <christian@amsuess.com>
To: Carsten Bormann <cabo@tzi.org>
Cc: Michael Richardson <mcr+ietf@sandelman.ca>, cbor@ietf.org
Message-ID: <YgO2eOiH5gMdwSGd@hephaistos.amsuess.com>
References: <289545.1643998363@dooku> <982B35D9-8541-4AB6-88DE-55018DB5BB6B@tzi.org> <27168.1644006597@localhost> <D6BA4596-C08F-4CDF-AEB4-20C264D3BB34@tzi.org>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ciS6WU3MfgnNB8qm"
Content-Disposition: inline
In-Reply-To: <D6BA4596-C08F-4CDF-AEB4-20C264D3BB34@tzi.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/8BJJFY8LO0RBXJsAroY26-FrccM>
Subject: Re: [Cbor] eliding CBOR diagnostic notation binary contents
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 09 Feb 2022 12:41:44 -0000

--ciS6WU3MfgnNB8qm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Feb 08, 2022 at 05:58:36PM +0100, Carsten Bormann wrote:
> https://tzi.de/~cabo/cbor-elision.pdf

Interesting, though I'm not sure I've made up my mind about it yet (then
again, shouldn't before presentation and discussion anyway).

The slides draw a connection to EDN, and I wonder: Why can EDN be purely
on the diagnostic side, while this would need an extra tag? Could
diag2cbor just leave all `...` empty (or replace them with Lorem Ipsum)
and cbor2diag just never generate any dots by default, possibly
recognize Lorem Ipsum with similar heurstics it uses, or generate dots
when explicitly asked to?

Or, conversely, would it be useful to have a tag there as well, even if
it is (as 888 is) only used when something like
"debug-roundtrip-friendly CDDL" is used?

And if neither, what sets them apart?

BR
Christian

--=20
To use raw power is to make yourself infinitely vulnerable to greater power=
s.
  -- Bene Gesserit axiom

--ciS6WU3MfgnNB8qm
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEECM1tElX6OodcH7CWOY0REtOkveEFAmIDtnUACgkQOY0REtOk
veHoHhAAtUKZNczgitOF/tuT0cttTRLtY4Ou95LZrfnwg481lluib0OfehlGnjJl
ZDikxbKqpu8vx9rbR3lp8RiwPoXbl8E+iqjx+2XQZjJGqtH9h2a6v/hmPmu9h2td
MjLBwk3DVslxUVOy46Hm58NZTMcYYXvcv7BWYXYdDUR+fwKZ4X09yus9d4CEVifg
Zt3vHDy02wJhlRH4d79qxWbJYUNvyuV/vUDgDG1Ad2Pu/7+Biv/MucZzD744Mv6z
85CY944s47lljSPMI689w3kGT2Pa5eFvmeZ78etbP68TN9OcuWHyVQVIwNstfsVu
TxmUUaLAslk0jA0+BsNf+wBfACrzuGni8jzxW5VnzD3B5GHzt0ZHrN0o29fPmWxl
AfPTgdFHrTM7JOx0NHXTLFanAL5WJ/jB5poZosxWgjCdNh+DLpW6LTQpybFDSF8Y
n8YQSFYFfNpnFR5Ibg8pKoUWsfiedgFz4kobfkLhZMKBMlNd11cViIxCi2KevTiW
vCi+H6AP5OrFipK47P/+2xf+EqKtGfHm63tKu/MDBvioiddNuZouoaEIYOpJfcPX
6RGuL+jEFtfVAWVO/BfksW4OVQQ0hnAF+ARsl6E3NQMa3H/5hlZW57ivLckMQ09+
vcXsHkdVe1k7Clvdo9fAR893Wae+7N1uEHI+SQJYD7fL4rUEp5k=
=83et
-----END PGP SIGNATURE-----

--ciS6WU3MfgnNB8qm--


From nobody Wed Feb  9 04:52:20 2022
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 67F903A0139 for <cbor@ietfa.amsl.com>; Wed,  9 Feb 2022 04:52:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TBy9TD3x13vE for <cbor@ietfa.amsl.com>; Wed,  9 Feb 2022 04:52:16 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [134.102.50.15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4D88E3A011D for <cbor@ietf.org>; Wed,  9 Feb 2022 04:52:16 -0800 (PST)
Received: from [192.168.217.118] (p5089ad4f.dip0.t-ipconnect.de [80.137.173.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4Jv0C16dLdzDCdB; Wed,  9 Feb 2022 13:52:13 +0100 (CET)
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: <YgO2eOiH5gMdwSGd@hephaistos.amsuess.com>
Date: Wed, 9 Feb 2022 13:52:13 +0100
Cc: Michael Richardson <mcr+ietf@sandelman.ca>, cbor@ietf.org
X-Mao-Original-Outgoing-Id: 666103933.222356-96134cff8fd970622ffe2d030cac17ae
Content-Transfer-Encoding: quoted-printable
Message-Id: <13A46D26-E131-42C8-B325-C57857246699@tzi.org>
References: <289545.1643998363@dooku> <982B35D9-8541-4AB6-88DE-55018DB5BB6B@tzi.org> <27168.1644006597@localhost> <D6BA4596-C08F-4CDF-AEB4-20C264D3BB34@tzi.org> <YgO2eOiH5gMdwSGd@hephaistos.amsuess.com>
To: =?utf-8?Q?Christian_Ams=C3=BCss?= <christian@amsuess.com>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/uvfE8h_11a_3oDV8dPfrSrTH4OQ>
Subject: Re: [Cbor] eliding CBOR diagnostic notation binary contents
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 09 Feb 2022 12:52:20 -0000

> The slides draw a connection to EDN, and I wonder: Why can EDN be =
purely
> on the diagnostic side, while this would need an extra tag?=20


That is indeed a good question.

On one hand, one wants to use dt=E2=80=992022-02-09T15:00Z=E2=80=99 to =
be processed as a number 1644418800.  On the other hand, when showing =
CBOR, 1644418800 is not detectable as something that should be shown as =
dt=E2=80=992022-02-09T15:00Z=E2=80=99 =E2=80=94 there would need to be =
an annotation that makes the diagnostic writer do so, and maybe we =
indeed need tags for annotations (which, in some cases, would however =
need to be presented as a tag when they themselves are the subject of =
diagnostics).

The elision is a bit different, as the intention is not to have an =
application specific notation for some data item, but to indicate that =
the data item is not known/not provided.  As proposed, a tag can be used =
for representing that, which can be used to make the relationship =
between the tag and the elision syntax be bidirectional.  Except when =
you actually want to look at the tag in detail=E2=80=A6

The cbor-diag tools now have half a dozen flags (see also the similar =
flags in cbor.me).  We probably don=E2=80=99t want to proliferate them =
too much, and they are less useful as global flags than they would be as =
annotations=E2=80=A6  At some point cbor-diag will be able to use a data =
definition (such as in CDDL) to add annotations to the CBOR items kept =
separately; that will then be easier to use.

Gr=C3=BC=C3=9Fe, Carsten


From nobody Wed Feb  9 07:46:40 2022
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 03D493A0C10; Wed,  9 Feb 2022 07:46:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8lEoLr9AAaIl; Wed,  9 Feb 2022 07:46:24 -0800 (PST)
Received: from smtp.akis.at (smtp.akis.at [IPv6:2a02:b18:500:a515::f455]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E75EA3A0BB5; Wed,  9 Feb 2022 07:46:19 -0800 (PST)
Received: from poseidon-mailhub.amsuess.com ([IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bd]) by smtp.akis.at (8.17.1/8.17.1) with ESMTPS id 219FkFOV049016 (version=TLSv1.2 cipher=ECDHE-ECDSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 9 Feb 2022 16:46:15 +0100 (CET) (envelope-from christian@amsuess.com)
X-Authentication-Warning: smtp.akis.at: Host [IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bd] claimed to be poseidon-mailhub.amsuess.com
Received: from poseidon-mailbox.amsuess.com (hermes.amsuess.com [10.13.13.254]) by poseidon-mailhub.amsuess.com (Postfix) with ESMTP id 62443D0; Wed,  9 Feb 2022 16:46:14 +0100 (CET)
Received: from hephaistos.amsuess.com (91.141.59.229.wireless.dyn.drei.com [91.141.59.229]) by poseidon-mailbox.amsuess.com (Postfix) with ESMTPSA id 10B197F; Wed,  9 Feb 2022 16:46:14 +0100 (CET)
Received: (nullmailer pid 327929 invoked by uid 1000); Wed, 09 Feb 2022 15:46:13 -0000
Date: Wed, 9 Feb 2022 16:46:13 +0100
From: Christian =?iso-8859-1?Q?Ams=FCss?= <christian@amsuess.com>
To: cbor@ietf.org, draft-ietf-cbor-file-magic@ietf.org
Message-ID: <YgPhxUmjDUqLTEtK@hephaistos.amsuess.com>
References: <164442074235.12313.4216473952031101282@ietfa.amsl.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="n04uR2Ku3bPc/Nsd"
Content-Disposition: inline
In-Reply-To: <164442074235.12313.4216473952031101282@ietfa.amsl.com>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/hbR1n_d48Rk3eDE8V_RuErce4QM>
Subject: [Cbor] =?utf-8?q?=F0=9F=94=94_2nd_WGLC_on_cbor-file-magic-08?=
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 09 Feb 2022 15:46:38 -0000

--n04uR2Ku3bPc/Nsd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hello CBOR group,

while the first WGLC on cbor-file-magic showed the WG's approval of the
document in general, there has been a large addition[1] that, even
though not normative, does alter the set of use cases.

Unless any objections are raised before Wednesday 16th (one week from
now), this document will be sent on to the IESG for approval and
publication, along with the shepherd writeup I'm assembling.

Best regards,
Christian


[1]: https://www.ietf.org/rfcdiff?url2=draft-ietf-cbor-file-magic-08.txt&url1=draft-ietf-cbor-file-magic-02.txt

  The main addition is appendix C, most other changes are editorial.

--n04uR2Ku3bPc/Nsd
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEECM1tElX6OodcH7CWOY0REtOkveEFAmID4cEACgkQOY0REtOk
veESEw/+Lqf7klCpYbDEuhkWLjninWeYX31uGInOE1Ppt6UCAhNU92n+k/v6EBR0
5xjkY0T+uhZXzVh5JP7fyBDUXyo8Q/6Ut1+zmzpA3dYPvRaYfvM6IordU4RE4p5a
MvfHnOwtvoEQszzY97PfIDT1B7CFP0QSz5Pv6WFR65GltOdsBWl0q+YueyHfaUPL
drZJHNEFUNfvOjfkKYNXxuSS0kAJXDRzYt9WfVHYIOQf9jL3An69qOJ8O5qBfxuO
Q3tWAI6MfXmhLBoJKa4Hv+JzMKKpueI9gCvJtciGZPD32rd2+nxguhP0QNL0qlOd
GSrr3jiohFbm/kpLeamwPMEIH6USoc+s6gc4vkYB2PfjlPKNyN4IGqW2o19uDutg
EqA6usEA+XXGPmwik8jJfLPgsVJRJNi9SxHBPy3Re24/tNsmNWVw2QQHVeHmhOVe
7TisjLea4BLgVCfYW6vA6v6AVenzpeaq1ck+tp0pm2exl9bWc8TRAAgo24g45f2S
UZHC21G+FcTGAwdRfJa7f9cfvn25L2Qv6NvT1wl6TWjbbOTcl8umKZj+roSdpz3a
bDSj7BtRiddT50OJMWyge6qzEAjU69TXAX6iVYoaYTKDTh9GiRmYTWoIzZDEExmF
GyuTJilVvl98zRPYeXoEtexd/02iQd5/x61fIwQb8/ZxT4UgPlc=
=8u1x
-----END PGP SIGNATURE-----

--n04uR2Ku3bPc/Nsd--


From nobody Wed Feb  9 07:51:09 2022
Return-Path: <barryleiba@gmail.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 DC74B3A0BB8; Wed,  9 Feb 2022 07:51:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.4
X-Spam-Level: 
X-Spam-Status: No, score=-1.4 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=no autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vzgA5mZh5ksT; Wed,  9 Feb 2022 07:51:06 -0800 (PST)
Received: from mail-vk1-f178.google.com (mail-vk1-f178.google.com [209.85.221.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1B5323A0B8F; Wed,  9 Feb 2022 07:51:06 -0800 (PST)
Received: by mail-vk1-f178.google.com with SMTP id d27so1411641vkn.5; Wed, 09 Feb 2022 07:51:06 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XaJmS1JXXSy37cTLGVfUFHH9BjKFGsrq84GPhPH2Sx4=; b=5K1bZQoFLTyUtIwamw6TpCtshbCQ7AcCpxuAQRjIoGUSR+K7NkIrHLWILUKYphyN6j SX2xgN2iPoxogip09lwRzIVC+gjti16a3lcqawpYk9atknIM9HKgp9FL17zZG/p1luFM zcizZiTrUdPNfmm1c+zw+0OGR1oOBv8AbWuUVlse4PIsoZSYWCq6aG1iTX/ue5AIk1bA 2VsRoC1WMhMY/CugSj3WMGus+WivZkexBlQ+VyY1qkKZN4wih3xbdp2F+boZpMwi1KuP FoLUDpDjLXmwVMw+YU2XRAQG6YRfBvuwkosPiDcuUOg7nqaNIZenq7DNJzcGOvMJc2bI VKMg==
X-Gm-Message-State: AOAM531Cc3mapfNuwhUWh36D9bw288MRTmj5+Eg0QfnrHkXmfaMOSdJy MjcWMd3z+asd0cwkU2XDOFj2wawc4TQ2FIK6bXYRTaOi
X-Google-Smtp-Source: ABdhPJw/exxf9Zck9aKAxk9RNdxoqavjSvgPV6q+mxg/fIfTq/kZA+XiWqhHA12DawvvDBzx1qoBIHfAagluLNEWSsU=
X-Received: by 2002:a05:6122:91d:: with SMTP id j29mr970307vka.8.1644421864724;  Wed, 09 Feb 2022 07:51:04 -0800 (PST)
MIME-Version: 1.0
References: <164442074235.12313.4216473952031101282@ietfa.amsl.com> <YgPhxUmjDUqLTEtK@hephaistos.amsuess.com>
In-Reply-To: <YgPhxUmjDUqLTEtK@hephaistos.amsuess.com>
From: Barry Leiba <barryleiba@computer.org>
Date: Wed, 9 Feb 2022 10:50:53 -0500
Message-ID: <CALaySJ+Ct1xOL8kjjq+xTW_MHdPEnYPzw0d9Fs34jt54tP95MA@mail.gmail.com>
To: cbor@ietf.org
Cc: draft-ietf-cbor-file-magic@ietf.org
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/yHOvubD-F7mF0EZNQN7fsESxjRo>
Subject: Re: [Cbor] =?utf-8?q?=F0=9F=94=94_2nd_WGLC_on_cbor-file-magic-08?=
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 09 Feb 2022 15:51:09 -0000

> while the first WGLC on cbor-file-magic showed the WG's approval of the
> document in general, there has been a large addition[1] that, even
> though not normative, does alter the set of use cases.
>
> Unless any objections are raised before Wednesday 16th (one week from
> now), this document will be sent on to the IESG for approval and
> publication, along with the shepherd writeup I'm assembling.

A side note here: While we (the chairs) know a week is a short time,
we think the changes are solidly discussed and not controversial, and
working group participants still can review and make comments during
the AD Evaluation and IETF Last Call periods if that's necessary.

Barry


From nobody Wed Feb  9 22:03:13 2022
Return-Path: <anders.rundgren.net@gmail.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 276413A149E for <cbor@ietfa.amsl.com>; Wed,  9 Feb 2022 22:03:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level: 
X-Spam-Status: No, score=-2.098 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id glrQZaffPmN3 for <cbor@ietfa.amsl.com>; Wed,  9 Feb 2022 22:03:05 -0800 (PST)
Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E14BB3A1498 for <cbor@ietf.org>; Wed,  9 Feb 2022 22:02:48 -0800 (PST)
Received: by mail-wr1-x435.google.com with SMTP id d27so3795965wrb.5 for <cbor@ietf.org>; Wed, 09 Feb 2022 22:02:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;  h=message-id:date:mime-version:user-agent:content-language:to:from :subject:content-transfer-encoding; bh=OUWFRaujGJDyr2CRx9jpDnKGJyaGYckYxKrP21qH1lc=; b=pFMJko81Q665CtqV4UOSYhuQl9RaDYIFqCVe3d1zFrUCKVh6vnV7bhQw5GpLkDEA77 WotzObJDMbNiIz/StFvBSzlPIXgsFweTROWJS7PSLg8LZILsTA7YyLvmIEYbXKtMV9mT QgIZG/3FiYRsYhiTf4BbQpG79z60TjLUc0A/zf47C/Dn8/GwoWkA5tmGYrhAytf/mnLR caIwTz8fb3ibEAzFuoh+sGLlf+/BKGkuZHc5Vmpu+cxl/km/otvHWSxcvKEztY1OYig2 ndg6dsnuQl9gyjk0Xtq+bMFargKkBerFf+Cj+XcajnSRcH/WRiWEdd5yrQFAlwmhEp4p hWxA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent :content-language:to:from:subject:content-transfer-encoding; bh=OUWFRaujGJDyr2CRx9jpDnKGJyaGYckYxKrP21qH1lc=; b=OpyW/F1lk8FZfPoQ2pkpMM5IOH49EEeWEq6R63vsdWfobu6tBwvkJKOyfZMs1BUekv Est5BlaK0p5pdF0VEy/sGfNlPynD/lJX08c03Vp16og2m7eCbS4QiXvyzlgbkrvqrcps GGMWDxHSXNG/Bhza00FRUtc1jfYLdMQo7/+nmDMYiTL6odZxoiybXJr3dMgyPDoX9q3E Y4fs2QK2YXndsYn3E7RSGCvCD4x5FKVxvmJh2uwa1oFQcAKEk380jnvRtxJXW7vGxhcA iDj2TRZDmgzF/UFmcTf6dm7NmGdjJD10ReWtFnMreydT6eqpuKGS2b+HTXR235mRLYb2 cUag==
X-Gm-Message-State: AOAM5320eWeTbOtK8xZeU6t+57f2OPi937g3sel1AOCOhiFpPJZIjgx1 qFY4z/YN5730qNgzPrMZ/K8HSfX6vao=
X-Google-Smtp-Source: ABdhPJzKmmzvlf6AksFo6mJ7QYWudGBqGZb78wV0CKTrrjqmGz+NZ0K5gmi3E2Kj7YaIRfbp7XVJ4Q==
X-Received: by 2002:adf:a39a:: with SMTP id l26mr5026864wrb.150.1644472965753;  Wed, 09 Feb 2022 22:02:45 -0800 (PST)
Received: from [192.168.1.67] (25.131.146.77.rev.sfr.net. [77.146.131.25]) by smtp.googlemail.com with ESMTPSA id b18sm10427121wrx.92.2022.02.09.22.02.44 for <cbor@ietf.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Feb 2022 22:02:44 -0800 (PST)
Message-ID: <d6b31d09-86fe-534d-446d-652b8e64e751@gmail.com>
Date: Thu, 10 Feb 2022 07:02:42 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1
Content-Language: en-US
To: cbor@ietf.org
From: Anders Rundgren <anders.rundgren.net@gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/6vF2EUBw9Y5dtcoV0L6jRxwiz1A>
Subject: [Cbor] Typed CBOR Objects
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 10 Feb 2022 06:03:11 -0000

Hi List,

As a subscriber of the RATS list I noted that I'm not alone looking for a flexible and extensible way of identifying a CBOR "schema" (content specification).
Different solutions have been suggested including parameterized media-types: https://github.com/ietf-rats-wg/eat/issues/157

Having a background in XML Schema (including WS-*) and similar concepts applied to JSON, I've sketched up a counterpart for CBOR that currently only exists in the form of a GitHub issue: https://github.com/ietf-rats-wg/eat/issues/165

Using URLs as type identifiers may be regarded as breaking the desire keeping things nimble.  However, there are lots of possible applications where a 50-byte overhead would be a no-issue.  For converting JSON-based designs to CBOR, URLs are a necessity.  For highly constrained environments, OIDs seems like a useful alternative.

Feedback would be appreciated.

Thanx,
Anders


From nobody Wed Feb  9 22:21:06 2022
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 75D5F3A14BC for <cbor@ietfa.amsl.com>; Wed,  9 Feb 2022 22:21:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YLSmfoGcIGAi for <cbor@ietfa.amsl.com>; Wed,  9 Feb 2022 22:21:00 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [IPv6:2001:638:708:32::15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D8FAF3A14B9 for <cbor@ietf.org>; Wed,  9 Feb 2022 22:20:59 -0800 (PST)
Received: from smtpclient.apple (p5089ad4f.dip0.t-ipconnect.de [80.137.173.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4JvRT25ybKzDCcD; Thu, 10 Feb 2022 07:20:54 +0100 (CET)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.40.0.1.81\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <d6b31d09-86fe-534d-446d-652b8e64e751@gmail.com>
Date: Thu, 10 Feb 2022 07:20:53 +0100
Cc: cbor@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <CBD0EF42-6298-4845-B9AD-A18735F8BE4D@tzi.org>
References: <d6b31d09-86fe-534d-446d-652b8e64e751@gmail.com>
To: Anders Rundgren <anders.rundgren.net@gmail.com>
X-Mailer: Apple Mail (2.3693.40.0.1.81)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/SaabmzltiJfI9TAD2B_g7CiRPJU>
Subject: Re: [Cbor] Typed CBOR Objects
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 10 Feb 2022 06:21:05 -0000

Of course, you can add an indirection, but the most direct way to =
indicate a new specific data model is a tag.
In essence, your TBD211 is exactly that; you have just chosen to add a =
parameter in the form of a URL or an OID (which is pretty much what you =
argue AGAINST in the last section=E2=80=A6).

I=E2=80=99d rather allocate a tag for each specific data model.

Gr=C3=BC=C3=9Fe, Carsten


> On 10. Feb 2022, at 07:02, Anders Rundgren =
<anders.rundgren.net@gmail.com> wrote:
>=20
> Hi List,
>=20
> As a subscriber of the RATS list I noted that I'm not alone looking =
for a flexible and extensible way of identifying a CBOR "schema" =
(content specification).
> Different solutions have been suggested including parameterized =
media-types: https://github.com/ietf-rats-wg/eat/issues/157
>=20
> Having a background in XML Schema (including WS-*) and similar =
concepts applied to JSON, I've sketched up a counterpart for CBOR that =
currently only exists in the form of a GitHub issue: =
https://github.com/ietf-rats-wg/eat/issues/165
>=20
> Using URLs as type identifiers may be regarded as breaking the desire =
keeping things nimble.  However, there are lots of possible applications =
where a 50-byte overhead would be a no-issue.  For converting JSON-based =
designs to CBOR, URLs are a necessity.  For highly constrained =
environments, OIDs seems like a useful alternative.
>=20
> Feedback would be appreciated.
>=20
> Thanx,
> Anders
>=20
> _______________________________________________
> CBOR mailing list
> CBOR@ietf.org
> https://www.ietf.org/mailman/listinfo/cbor


From nobody Wed Feb  9 22:43:25 2022
Return-Path: <hildjj@cursive.net>
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 DD71B3A0DD6 for <cbor@ietfa.amsl.com>; Wed,  9 Feb 2022 22:43:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.697
X-Spam-Level: 
X-Spam-Status: No, score=-1.697 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=neutral reason="invalid (public key: not available)" header.d=cursive.net
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6SRN5SkrXvuf for <cbor@ietfa.amsl.com>; Wed,  9 Feb 2022 22:43:15 -0800 (PST)
Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8671E3A0DBE for <cbor@ietf.org>; Wed,  9 Feb 2022 22:43:15 -0800 (PST)
Received: by mail-io1-xd30.google.com with SMTP id s18so6078158ioa.12 for <cbor@ietf.org>; Wed, 09 Feb 2022 22:43:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cursive.net; s=google;  h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=zUaetl8bEgkLoWZoY0yCJsJHJzz4LCpYC7hxYsoaIEU=; b=PC2PM9AcaxOKZRQ7I7tRb8VkTezNZuUYVL1qi2TUP4nx72DURJPlSIvl61eC1m28q3 5tuDe8jMiVNJdBtv7dtrAh/Ro31qfZiVlMhZlc0JI3BnxHiyPF1jc6wzk7YldueaVxY0 OTNDt+pKRWAhn1QrpxxtZEPx/LmN9T7YV7tIE=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=zUaetl8bEgkLoWZoY0yCJsJHJzz4LCpYC7hxYsoaIEU=; b=37Un/zASb/wD5vIMTh39srJzwEVsCxYIqE6uDyapULgXTyvhThW50jH3K+Hz8+BcDC V5gCM4LX6UFfZowKmul3fC43+x54B48+eABtnG1i7HYpR9eks4nKxR0k9lHxZFK0qNbs G+oNuGgxwKRF7VLdaOOy2403Zyj6PRV49kUK/zquDIdX3TbeBmI9+swepii/DoTPuFJc Q8aOzjt7/Lbqciix4R/qajprRDu9yuxye10YzIkTCbyahONsHquYYQAlPLa2g7Suf7rk jontqnrkWiUPYf3njo5Bb1Phpkvu9coyXlJV5RcgD/KG6P7GD7B0hlgdEKGJ/32fgmbm uEXg==
X-Gm-Message-State: AOAM531juyMkh76dLgQnYBHeyM/LLLRkoqR+D+TBOF4GfbPCtqNTSEBJ fEfMOs7oJGz2NJg6/DLlkRTbvXfitiN1vw==
X-Google-Smtp-Source: ABdhPJxVx0PPni+3tQ9UAKVFxxfantfZkAJtzbqwIWAbSMBfFa2l8mjoCh89j4KuGZAszi32pFg/kA==
X-Received: by 2002:a05:6638:1493:: with SMTP id j19mr3228255jak.242.1644475393216;  Wed, 09 Feb 2022 22:43:13 -0800 (PST)
Received: from smtpclient.apple ([2601:282:177e:142d:f4db:234b:e0d9:dcfe]) by smtp.gmail.com with ESMTPSA id e11sm10681002ioq.41.2022.02.09.22.43.12 for <cbor@ietf.org> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Feb 2022 22:43:12 -0800 (PST)
From: Joe Hildebrand <hildjj@cursive.net>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.60.0.1.1\))
Date: Wed, 9 Feb 2022 23:43:11 -0700
References: <d6b31d09-86fe-534d-446d-652b8e64e751@gmail.com> <CBD0EF42-6298-4845-B9AD-A18735F8BE4D@tzi.org>
To: cbor@ietf.org
In-Reply-To: <CBD0EF42-6298-4845-B9AD-A18735F8BE4D@tzi.org>
Message-Id: <99907B71-D019-46CC-A785-907E1E9D4B6C@cursive.net>
X-Mailer: Apple Mail (2.3693.60.0.1.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/byO7V2ME9O-2IUpH1lmB2n4_t2w>
Subject: Re: [Cbor] Typed CBOR Objects
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 10 Feb 2022 06:43:21 -0000

Agree with Carsten.

Additionally, if you insist on repeating XML's mistakes, can you at =
least make sure that you don't repeat some of the worst consequences of =
those mistakes?  URLs are an attractive nuisance for these identifiers, =
since naively-written processors tend to retrieve those URLs drastically =
more frequently than anyone imagined, thinking that they might contain =
computer-parseable schema information -- which turns out not to mostly =
never work. =20

If you must have unique identifiers that are easy to mint without a new =
central registry, ask for a non-resolving URI, and make all of your =
examples use RFC 4151 tag: URIs or something that has similar =
properties.

(Note: RFC 4151 is Informational, but useful.  Careful use of a new URN =
space might work, if you must.)

=E2=80=94=20
Joe Hildebrand

> On Feb 9, 2022, at 11:20 PM, Carsten Bormann <cabo@tzi.org> wrote:
>=20
> Of course, you can add an indirection, but the most direct way to =
indicate a new specific data model is a tag.
> In essence, your TBD211 is exactly that; you have just chosen to add a =
parameter in the form of a URL or an OID (which is pretty much what you =
argue AGAINST in the last section=E2=80=A6).
>=20
> I=E2=80=99d rather allocate a tag for each specific data model.
>=20
> Gr=C3=BC=C3=9Fe, Carsten
>=20
>=20
>> On 10. Feb 2022, at 07:02, Anders Rundgren =
<anders.rundgren.net@gmail.com> wrote:
>>=20
>> Hi List,
>>=20
>> As a subscriber of the RATS list I noted that I'm not alone looking =
for a flexible and extensible way of identifying a CBOR "schema" =
(content specification).
>> Different solutions have been suggested including parameterized =
media-types: https://github.com/ietf-rats-wg/eat/issues/157
>>=20
>> Having a background in XML Schema (including WS-*) and similar =
concepts applied to JSON, I've sketched up a counterpart for CBOR that =
currently only exists in the form of a GitHub issue: =
https://github.com/ietf-rats-wg/eat/issues/165
>>=20
>> Using URLs as type identifiers may be regarded as breaking the desire =
keeping things nimble.  However, there are lots of possible applications =
where a 50-byte overhead would be a no-issue.  For converting JSON-based =
designs to CBOR, URLs are a necessity.  For highly constrained =
environments, OIDs seems like a useful alternative.
>>=20
>> Feedback would be appreciated.
>>=20
>> Thanx,
>> Anders
>>=20
>> _______________________________________________
>> CBOR mailing list
>> CBOR@ietf.org
>> https://www.ietf.org/mailman/listinfo/cbor
>=20
> _______________________________________________
> CBOR mailing list
> CBOR@ietf.org
> https://www.ietf.org/mailman/listinfo/cbor


From nobody Wed Feb  9 23:25:55 2022
Return-Path: <anders.rundgren.net@gmail.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 C09D53A14E4 for <cbor@ietfa.amsl.com>; Wed,  9 Feb 2022 23:25:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.812
X-Spam-Level: 
X-Spam-Status: No, score=-2.812 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.714, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pA_dT9VhgJmi for <cbor@ietfa.amsl.com>; Wed,  9 Feb 2022 23:25:52 -0800 (PST)
Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id ACA123A14DB for <cbor@ietf.org>; Wed,  9 Feb 2022 23:25:51 -0800 (PST)
Received: by mail-wr1-x436.google.com with SMTP id d27so4083981wrb.5 for <cbor@ietf.org>; Wed, 09 Feb 2022 23:25:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;  h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=8gmDExWgYFpb7dChFEvI4ZxlQ28DWxRVWHjhzIUYLFY=; b=TH6vhQindJZTPBwzvY2WHukuLkWQlsRyZnoV18JJbBpolMZjSs+OV+E0uefCP0TO56 iQNn/ZhSts/jqtLRj4oP3eELkqwlRKSDxFdb8e1guSALhi9XuBp6F47icEWgDWulmQsD xXEU5AK+qEOyVujcFnkZmDAfKhHjllNUN1bivm+RdUEjXXUHUV1FkG2H4tAUu2vp6bxF XH0IIvghkB6xJs2oL2to5m+1DzgLofrRdTeAhvR2cj9Ojsk7sOZP1uw6ObdoQMPGct12 LkqmqxukR42iqdnPtXjKPGrI2mbqtTbg5RpVbGmQMPhY/ARAHeeygepa+AjTdRHtee9I S0MQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=8gmDExWgYFpb7dChFEvI4ZxlQ28DWxRVWHjhzIUYLFY=; b=vvHdw3ZWP/DZqY3VfOaeUnxfLQ+4lCV5IT9M8td8kNHYUfzumCsqybadHvPPlrJUAm wl08FV0CIPXR6qxE7VhnWuxgAGZFPi2k2g+iqBVSSoqgwzakr8zPwzMGIM9Fc0gJM7v+ +l5MEVcvbthSWRShzLO3YhVzAx2vk4waOBHwaARi24UaFntvIP+KprZCZhAWuOOYABKw MoJbEVfDt76623O05/5Oxmy+66imFLAa06ZfGlXm6UlGlj9folE+8wuir1MJ/pvZWiuc /D53urqtUlPXFhkbwUX1A7U9ILm9S2eVN/FXW2q0dhNme2tlOW2bidzoiwIEjS6RqLEK cx2Q==
X-Gm-Message-State: AOAM531pUlodC4UFRUnV7S0NK7KNG4UIy9XuDlPCC2YABxxHRsnIPP1t ZOigSeBHQWv2ArMaCbBreTg=
X-Google-Smtp-Source: ABdhPJyuJfl/MEpmfJ9UKMqgcpBdBjzpwirBvmjXv+kQ2Hu9ZwsVwEtBjpmhG7cClwex3Av93H7bgw==
X-Received: by 2002:adf:e8c3:: with SMTP id k3mr358200wrn.87.1644477948754; Wed, 09 Feb 2022 23:25:48 -0800 (PST)
Received: from [192.168.1.67] (25.131.146.77.rev.sfr.net. [77.146.131.25]) by smtp.googlemail.com with ESMTPSA id i15sm861388wmq.23.2022.02.09.23.25.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Feb 2022 23:25:48 -0800 (PST)
Message-ID: <90cd6a70-4dc1-0ccc-4681-26f83c8abb92@gmail.com>
Date: Thu, 10 Feb 2022 08:25:45 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1
Content-Language: en-US
To: Carsten Bormann <cabo@tzi.org>
Cc: cbor@ietf.org, Joe Hildebrand <hildjj@cursive.net>
References: <d6b31d09-86fe-534d-446d-652b8e64e751@gmail.com> <CBD0EF42-6298-4845-B9AD-A18735F8BE4D@tzi.org>
From: Anders Rundgren <anders.rundgren.net@gmail.com>
In-Reply-To: <CBD0EF42-6298-4845-B9AD-A18735F8BE4D@tzi.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/8jx1UaJALppQC1dhVu860vBVqNk>
Subject: Re: [Cbor] Typed CBOR Objects
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 10 Feb 2022 07:25:54 -0000

On 2022-02-10 7:20, Carsten Bormann wrote:
> Of course, you can add an indirection, but the most direct way to indicate a new specific data model is a tag.

I certainly do not disagree with that!

What is not equally clear is what to do if you want to address the space currently occupied by JSON which is pretty much what this proposal is about. Deprecating URLs as type identifiers?

In addition, it is (as seen by the EAT discussions), often insufficient to just define a tag, you must typically define an associated media type as well.

However, media types are of little value when objects are embedded in other objects which is another sub-goal of this design.

Joe Hildebrand: the URL is not pointing to a machine-readable schema [*], it points to a specification to achieve decentralization.  Using non-resolving URIs is a deployment option.

For EAT, the alternative seems to be parameterized media types to achieve the *desired indirection*.  Is this the future for CBOR?

BTW, the following is rather much the same thing, only in a less universal way:
https://datatracker.ietf.org/doc/html/draft-ietf-rats-eat-11#section-3.18
It was this and the parameterized media types that got me going :)

Cheers,
Anders

*] If someone want to create such a system they can do that; it not a part of THIS specification.

> In essence, your TBD211 is exactly that; you have just chosen to add a parameter in the form of a URL or an OID (which is pretty much what you argue AGAINST in the last section…).
> 
> I’d rather allocate a tag for each specific data model.
> 
> Grüße, Carsten
> 
> 
>> On 10. Feb 2022, at 07:02, Anders Rundgren <anders.rundgren.net@gmail.com> wrote:
>>
>> Hi List,
>>
>> As a subscriber of the RATS list I noted that I'm not alone looking for a flexible and extensible way of identifying a CBOR "schema" (content specification).
>> Different solutions have been suggested including parameterized media-types: https://github.com/ietf-rats-wg/eat/issues/157
>>
>> Having a background in XML Schema (including WS-*) and similar concepts applied to JSON, I've sketched up a counterpart for CBOR that currently only exists in the form of a GitHub issue: https://github.com/ietf-rats-wg/eat/issues/165
>>
>> Using URLs as type identifiers may be regarded as breaking the desire keeping things nimble.  However, there are lots of possible applications where a 50-byte overhead would be a no-issue.  For converting JSON-based designs to CBOR, URLs are a necessity.  For highly constrained environments, OIDs seems like a useful alternative.
>>
>> Feedback would be appreciated.
>>
>> Thanx,
>> Anders
>>
>> _______________________________________________
>> CBOR mailing list
>> CBOR@ietf.org
>> https://www.ietf.org/mailman/listinfo/cbor
> 


From nobody Thu Feb 10 01:46:06 2022
Return-Path: <henk.birkholz@sit.fraunhofer.de>
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 01F443A0A7D for <cbor@ietfa.amsl.com>; Thu, 10 Feb 2022 01:46:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.612
X-Spam-Level: 
X-Spam-Status: No, score=-2.612 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, NICE_REPLY_A=-0.714, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=fraunhofer.onmicrosoft.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fvPn29_RPVAG for <cbor@ietfa.amsl.com>; Thu, 10 Feb 2022 01:45:59 -0800 (PST)
Received: from mail-edgeDD24.fraunhofer.de (mail-edgeDD24.fraunhofer.de [192.102.167.24]) (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 8E8193A0A74 for <cbor@ietf.org>; Thu, 10 Feb 2022 01:45:56 -0800 (PST)
IronPort-SDR: 91IXzcbEbVejkJUTN1kEGUWEhvE9oJ3PsDhLaerWbeZjYojDiQeCcHEFEo0yPaOP3TlWc96bCJ RggRCucDCYEw==
X-IPAS-Result: =?us-ascii?q?A2HLDQAF3gRi/xmnZsBaHgEBCxIMQIFPC4FSVn6BU4RVg?= =?us-ascii?q?0sBAYU5hQ9dgXcuA4sQkBuBLoElAxgWGwsLAQEBAQEBAQEBCAEqCwwEAQEDB?= =?us-ascii?q?IR+AoN5ASU2Bw4BAgQBAQEBAwIDAQEBAQUBAQYBAQEBAQEFBAICgRiFLzkNg?= =?us-ascii?q?nBjTQY1AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBBQINN?= =?us-ascii?q?B4pDDIBAQEDAQEQEQ8BBQgBASwMDwkCGAICJgICIQYLJQYNBgIBARcHgmIBg?= =?us-ascii?q?mUDLQEBDpAFjzYBgToCih96gTGBAYIIAQEGBASBNgGDVg0LXIFbAwYJAYEGK?= =?us-ascii?q?oMOgn6IMycQgVVEgRUnD4EGgW4+giFCAQGCLYJLgmWSU10LUkEhIAI5GYEba?= =?us-ascii?q?L8SNzQHghCBOYE5BguJOo5khWQGFC6WPJFUlkmNEoNPlWYCBAIEBQIOAQEGg?= =?us-ascii?q?WgCgg1NJE+CaVEZD44gDBaDT4RZO4VLcwI2AgYBCgEBAwmRGQEB?=
IronPort-PHdr: A9a23:t9JyZhG92Lx67mSjtcC4R51Gfi4Y04WdBeZdwpYkircbdKOl8tyiO UHE/vxigRfPWpmT8PNLjefa8sWCEWwN6JqMqjYOJZpLURJWhcAfhQd1BsmDBAXyJ+LraCpvG sNEWRdl8ni3PFITFtz5YgjJo2H04yQbBxP/MgR4PKL5F926sg==
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-AV: E=Sophos;i="5.88,358,1635199200"; d="scan'208";a="49336608"
Received: from mail-mtadd25.fraunhofer.de ([192.102.167.25]) by mail-edgeDD24.fraunhofer.de with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2022 10:45:52 +0100
IronPort-SDR: 3gMfxUUfSovCAG4ZVetSoCXYlPu4noqZ6k2paBTJtpjOm/um1iYQSvIAFruSf0J3K3J6s2bkJM ok6z8m8+CFo8roSPnn9z19JkkR072pq3I=
X-IPAS-Result: =?us-ascii?q?A0B2BABI3gRibD6wYZlaHgEBCxIMQAmBRguBUlYHTCtZJ?= =?us-ascii?q?lSEVINLAQGFOYUPXQGBdi4DOAGKV5AbgS6BJQNUCwEDAQEBAQEIASoLDAQBA?= =?us-ascii?q?YUFAoN2AiY2Bw4BAgQBAQEBAwIDAQEBAQUBAQUBAQECAQEFBBQRFAcEDgMQE?= =?us-ascii?q?DsGXgZogU+BYRMLNA2GQwEBAQMBARARDwEFCAEBFBgMDwkCGAICJgICIQYLB?= =?us-ascii?q?x4GDQYCAQEXB4JiAYJlAy0BAQ6QB482AYE6AoofeoExgQGCCAEBBgQEgTYBg?= =?us-ascii?q?1YNC1yBWwMGCQGBBiqDDoJ+iDM3gVVEgRUnD4EGgW4+giFCAQGCLYJLgmWSU?= =?us-ascii?q?10LUkEhIAI5GYEbaL8SNzQHghCBOYE5BguJOo5khWQGFC6WPJFUlkmNEoNPl?= =?us-ascii?q?WYCBAIEBQIOAQEGgWgCggxNJE+CaU4BAgECDQECAgMBAgECCQEBAo4dDBaDT?= =?us-ascii?q?4RZO4VLQjECNgIGAQoBAQMJkRkBAQ?=
IronPort-PHdr: A9a23:PCiVzhCZCvfsp7XhMIA5UyQVYBdPi9zP1kY95pkmjudIdaKut9TnM VfE7PpgxFnOQc3A6v1ChuaX1sKoWWEJ7Zub9nxXdptKWkwJjMwMlFkmB8iIQUTwMP/taXk8G 8JPHF9o9n22Kw5bAsH7MkbTvju89zcPHBX4OwdvYOj4Sebv
IronPort-Data: A9a23:+Nbe9q77ptx4rxWiNgnGuQxRtHbBchMFZxGqfqrLsTDasY5as4F+v jYeD2nQPP/eZDfweIoiO9u0ph5UuZDWzN81HAE4rX02Zn8b8sCt6fZ1gavT04N+CuWZESqLO u1HMoGowPgcFySa+1HxWlTYhSEUOZugH9IQM8aZfHAhLeNYYH1500g7wbdh2tcAbeWRWmthh /ui+6UzB3f4g1aYAkpMg05UgEoy1BhakGpwUm0WPZinjneH/5UmJM53yZWKEpfNatI88thW5 wr05OrREmvxp3/BAz4++1rxWhVirrX6ZWBihpfKMkSvqkAqm8A87ko0HMYka19bpSvOpdNw7 oltl72gVF8oM5SZzYzxUzEAe81/FbZD5KeBLGi0sYqd1UTbdXvrzfh0Sk07VWEa0r8qWicfq rpBd25LMErra+GemNpXTsFsi8IgasPqJoAfvXVy5SrYEbAoW5neRaXN69JCmjs97ixLNa+FO pFAMGU+MnwsZTVPCmUdJ6kzsduY3Ef+dARVtQism6sOtj27IAtZiuG2aYGFK7RmX/59lUyfv ErH8nj3RBYAO7SiJSGtqy/3w76Q2HqkBsdMTvum87hhxlOJz3EVCBoYWEH9rfTRZlOCt8x3F 3QW4iYAs+8I902NEvnffg2l+H+Jh0tJMzZPKNES5AaIw6vSxg+WAGkYUzJMAODKUudqGFTGM XfUxrvU6SxTXK69FCvHp+bPxd+mEXlJfDZaDcMRZVFdu7HeTJcPYgXnYvsLLUJYpoSoQnShn HXT83Z72e9Vk8tN3OO151nahTKrqJXTCAI4juk2Yo5Hxl0nDGJGT9bzgbQ+0RqmBN3FJrVml CRc8/VyFMhUUfmweNWlGY3h5o2B6fefKyH7ilVyBZQn/DnF0yf9IdwMu2gifB83bJxsldrVj Kn751M5CHh7YyHCUEOLS9juUazGMIC/RI+6DqqIBjawSsQoJVbblM2RWaJg9zq0yxF3wfBX1 WazfcuxEW0RCal8hDSxXfwW0aItyTs4yH/BLa0XPDz4uYdykEW9GOdtGALXNogRtfrYyC2Io 4c3H5bbl313DbyhCgGJqtR7BQ5RchAG6WXe+6S7gMbeeVU5cIzgYteKqY4cl3tNwfgLyLeSo y3Vt40x4AOXuEAr4D6iMhhLAI4Dl74kxZ7iFSBzb1uuxVY5ZoOjsPUWe5ctJOZ17+1/i/BuR uQDe8KOD+4JRjmeo2YRapz0rYpDchW3hFvSbnT/P2VlJ8ZtF17T59vpXgrz7y1QXCC5gssJp eHy3A3sR5deFR9pC9zbaa70wl7o5Sodlet+UlHmON5WfEmwooFmJzao0a0sIt1KJw/K2z2a0 AibG1EUqLCV8YMy9dDIg4GCrpuoSrcvQBAFQjODtbvvbHvU5Guux4NEQd2kRzGFWTOm4rima MVU0+r4bq8NkmFKhIwgQbxl+qQzuon0rLhAwwU4R3jGYgj5Cr5kJXXaj8BDurcXne1CvBeuH E+f8dkcN6+AJcXlF1AcPkwpY73bh/0TnzDT69UzIVn7vXMmouDYDB8KZxTc2jZAKLZVMZ8+x btzssAh7QHi2AEhNcyLj3wJ+mnQfGYMVb4r6sMTDIPx0VB5kwwZJM2DT3apvtTRMZNSNw8hZ DGOjbfEh7NSy1CEf3dqTSrB2u9UhJIvvhFWzQZedgrTxYef3qc6jE9L7DA6bgVJ1REbgeh9D W5mah9uLqKU8jY02cVOUghAwe2a6MF1J6Ap92Y0qQ==
IronPort-HdrOrdr: A9a23:xWegoambNgqNM66Ow76sDxlXzoHpDfPLimdD5ihNYBxZY6Wkfp +V88jzhCWZtN9OYhwdcLC7WZVoMkmsk6KdhrNhQYtKPTOWxVdASbsN0WKM+UyEJ8STzJ8n6U 4kSdkFNDSSNykKsS+Z2njbLz9I+rDum8rJ9ITjJjVWPHlXgslbnnlE422gYypLrWd9dOME/d anl656T23KQwVpUi33PAhPY8Hz4/nw0L72ax8PABAqrCGIkDOT8bb/VzyVxA0XXT9jyaortT GtqX212oyT99WAjjPM3W7a6Jpb3PPn19t4HcSJzuwYMC/lhAqEbJloH5eCoDc2iuey70tCqq iHnz4Qe+BIr1/BdGC8phXgnyHmzTYV8nfnjWSVhHPyyPaJMg4SOo5kv8Z0YxHZ400vsJVXy6 RQxV+UsJJREFfpgDn9z8KgbWAlqmOE5V4Z1cIDhX1WVoUTLJVLq5YEwU9TGJAcWArn9YEcFv V0Bs203ocYTbqjVQGYgoBT+q3uYpxqdS32AHTq+/blnwS+pUoJjnfxn6ck7zI9HJFUcegy2w 2LCNUtqFh0dL5kUUtKPpZ0fSKGMB28ffvyChPhHb3GLtBPB5ufke++3F0KjNvaDaDgiqFC36 j8bA==
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-AV: E=Sophos;i="5.88,358,1635199200"; d="scan'208";a="135311796"
Received: from 153-97-176-62.vm.c.fraunhofer.de (HELO smtp.exch.fraunhofer.de) ([153.97.176.62]) by mail-mtaDD25.fraunhofer.de with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2022 10:45:49 +0100
Received: from XCH-HYBRID-02.ads.fraunhofer.de (10.225.8.59) by XCH-HYBRID-02.ads.fraunhofer.de (10.225.8.59) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Thu, 10 Feb 2022 10:45:48 +0100
Received: from EUR02-VE1-obe.outbound.protection.outlook.com (104.47.6.59) by XCH-HYBRID-02.ads.fraunhofer.de (10.225.8.59) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14 via Frontend Transport; Thu, 10 Feb 2022 10:45:48 +0100
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NJjJdN02DzhOM+149S1jjLeDAC8Tdvv5NeV1JQEhe5v4hVFa2hrJ5ZymwzO8CT8K1dzUFHAk0uAIl9B6sBnpheVCfadrGKpFlVg/Tz7+8wDeLxzPEDwhdOWrWB6XvGcK3IJ3nQr247knaR51H6xGWAVheGwBfXaqII0zqwgrthE0QX3BFaAj9ZCbSS1QZLGl8ha/uBuDN/Zc3bD5UoNea5K2Hjd7xDShvOqcttIHqTmU87Oo7Umh4XvGMYi4AgzLHdL3D+p9D/bvRHi2Dz5ohmZ9VxUI+pfWq/7pqBFZkSltnduQnpTD1q4YUHIHS53wrrOaztOi1eLcKsmymBCPgg==
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=zhZ605qFwte1/mADvyNCl0A1nY9hGNwe6zqZXFuaKq8=; b=S+ukfrf2503R7Zk5pNkeWMv701pP9d0Et578Svip03RiFuqNvR5ZxS9rFedFZXposoZiVxO9dFYTd3RXk+X4JGi8y7+kDfaf7tGxUEXg8PBSLQ+hH0h6tfcntO1vvncw7f1H5+AaPgRAHDI2miChQqhbqBxSTw2AR3jVU6UXBbpJxP74YvDXgXr0VYwM4fgS9D3k8ZsvTEMVYFXX+3igxZGesfzhA1gj9tld4FuOhrtWaVZdumoCSs2xja6E3e9r4EROU7+Eyxaf3JIsGfdEOe0Xrwcc6WRYqU7LSbdv2DFjNEoOvjMrtGC3atV+qRzG6lbQZDXvCDzPm1ZO2E7WUQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fraunhofer.onmicrosoft.com; s=selector2-fraunhofer-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zhZ605qFwte1/mADvyNCl0A1nY9hGNwe6zqZXFuaKq8=; b=nOugVQmG7s7PwvTOg2jMZtUwpD0llOuxFuVnr8635BFouiE+9ZlA+ZjTPMmcJk86GD9GPfgoKVnuLhIVUm5rkxjHGaVSCdCRphLG8Z9U4fb8MXvn4joXpNVww8rXgRWJpKBUIJfuurhjSskQAp/hBTyQdclsOM90Pw5as/tiCNE=
Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=sit.fraunhofer.de;
Received: from DU2P194MB1709.EURP194.PROD.OUTLOOK.COM (2603:10a6:10:276::9) by DB6P194MB0216.EURP194.PROD.OUTLOOK.COM (2603:10a6:4:c4::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.18; Thu, 10 Feb 2022 09:45:42 +0000
Received: from DU2P194MB1709.EURP194.PROD.OUTLOOK.COM ([fe80::a144:da10:fd89:c788]) by DU2P194MB1709.EURP194.PROD.OUTLOOK.COM ([fe80::a144:da10:fd89:c788%5]) with mapi id 15.20.4951.019; Thu, 10 Feb 2022 09:45:42 +0000
Message-ID: <e7e7a747-6236-171f-a5c8-5a8cfcecf27b@sit.fraunhofer.de>
Date: Thu, 10 Feb 2022 10:45:37 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0
Content-Language: en-US
To: <cbor@ietf.org>
References: <d6b31d09-86fe-534d-446d-652b8e64e751@gmail.com> <CBD0EF42-6298-4845-B9AD-A18735F8BE4D@tzi.org> <99907B71-D019-46CC-A785-907E1E9D4B6C@cursive.net>
From: Henk Birkholz <henk.birkholz@sit.fraunhofer.de>
In-Reply-To: <99907B71-D019-46CC-A785-907E1E9D4B6C@cursive.net>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-ClientProxiedBy: AS9PR06CA0411.eurprd06.prod.outlook.com (2603:10a6:20b:461::25) To DU2P194MB1709.EURP194.PROD.OUTLOOK.COM (2603:10a6:10:276::9)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 4e187bb4-b725-42a7-dcfe-08d9ec7a1a6f
X-MS-TrafficTypeDiagnostic: DB6P194MB0216:EE_
X-Microsoft-Antispam-PRVS: <DB6P194MB021639397FC6649CEF8FF937A82F9@DB6P194MB0216.EURP194.PROD.OUTLOOK.COM>
X-MS-Oob-TLC-OOBClassifiers: OLM:7691;
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: tPhVQXe3MTRx2FXpjZ85G1DrwS2smCx6a7frYe7usGpWPPHtuPd9qEvaW8KwjUTYBoEW8SH04VsdIADQ5yn0GWuAi34DNHjAU5824d4lQSrXT8Al8xaSM/YSCGv+o1HZwYR+iIlajK7pmdyO8whIH5nYbfzHMsQNJbOHBwoygnx4MFBktfYsmQ0u+M1R1w8IjYOSVF/j0RyLNhB3mgEruWaqBc9kmSJQ0qkjo7nwnlxXRWOyhJYfLXl1BjGrSfXOsTRZC1C5AY/HFbzJyEDGiQB/DdHJ8Uy2dLn5HjficNig+UZpe2tjkH8wLigPdV1I8nf6T7ZLAYcKxq+HPoYdHJn0+N6CIXBmI+DbDMT14i4ZmnkPfYktME9GP9S0ErHB2JPP79uELmY+XejfpFBWExX3igfBqXm4pu0jO8IJGMDAkBsVTUBUJ3tCXna3vhJdo4rtbY/7t9k9ABJHmvSp9CruyrSwSGfPKJpMj5hTqprxB9Qi6x2ck0u2k9Dw7G+Z+cBC5/53AthAj/ZDOxM3YuqI4rXB6rAjCDQsu/UFHz7siJVG9mwlG0UYH8JAYhFJ6Uh5Pqhdh7G2rPD2VawkXLJ6O6xEzZEdzhZgBKOsSs+Gs1V5+r3oxzng2KpP4xMnNYsxQekWQr/QutPgscHKaKOyKxzgzoTahc7QD4xJUfu4QkQjQutC9xbxIFxOgAOF5RZ+siCHGYye8DwWQApiQST+PeDF/TShCYYUN4JuQJ+cVt003dR5je/ilxX4utI3+pzSl+CSAAA35Rm28ByTqfd7otvjoKd+DJ3rpLHSDBAnJlAUZuH4xEOkCVfyY6B6oGXy/1HvOf6cokXdxcqaDKVeJRtWBpRWQey3psJT7Tg=
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;  IPV:NLI; SFV:NSPM; H:DU2P194MB1709.EURP194.PROD.OUTLOOK.COM; PTR:; CAT:NONE;  SFS:(13230001)(4636009)(366004)(6506007)(6512007)(31686004)(6666004)(83380400001)(44832011)(82960400001)(38100700002)(2906002)(86362001)(5660300002)(316002)(508600001)(8936002)(966005)(66946007)(66476007)(66556008)(31696002)(186003)(52116002)(8676002)(53546011)(6916009)(6486002)(2616005)(43740500002)(45980500001); DIR:OUT; SFP:1102; 
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?K1JxM3VIZUN5Z2hlanlrMkdWWTBodGVoVVh5TmNtemlsRmVjNEpoaWhwcUJ6?= =?utf-8?B?VndEZWY0Uzd1QnFQWEhaRTJVbDhuYzYvQ0t2dDJYdzZocHZNZHZTSFRDczNU?= =?utf-8?B?RzJRRFk0S0phMFppZm5taG9zdDB1Nk9Ec0gzUkFCY2tXOVMveTh5MUorZW5B?= =?utf-8?B?M3JvRGdJZm5jMXdvb0lIclg4eko5UHRmYys3SDFuMzhYSm5VWk5DNG8wVDJJ?= =?utf-8?B?UzBZR1hmYllEL29mS2E2YkZ6OVNhazhkVFZLM0J6QTR6akdzY0Z6N0U2dEFG?= =?utf-8?B?TGliSzBMK0lEU2ZldjA1ckE3WlVFWTJITGxhN1ROakJIZk05SUNrbkErd1Bh?= =?utf-8?B?MFdxU1F5SE0wWUtSK2kvQzZxN1BKeTRzY3g5MTl5ZjB1OGxwcVFua1NNclNW?= =?utf-8?B?OGduRlBRV253aHdlWEQvQW1jbW9wSGUvWFhuanYzNDI4cVg0WDZsb0VpQSt4?= =?utf-8?B?aTl1ZVhDRDVzdmhjc0F3NXV1ZkszczdhMWxmNlJQOEdOSTlGYzg0ZEczNnpG?= =?utf-8?B?ZWVVKy8zYTVnWW90S1Z4QVA4bGRLRjdWbU9WdnRKYko4cTlRN1BmV0lvOW9m?= =?utf-8?B?YVBJMnlsWTVNYVVOOVk3QnRsdHQyb1RZSVJQNy9JdEM0eE1OUG9iN2MvNmll?= =?utf-8?B?QUp1YUNPQmVyNFFqVGpQb1A5T2RDc1JOaUVNVWV1Vi9FZWNxMys4MTBxZHF4?= =?utf-8?B?WndsYmJvS1pyUE9DdWFXM2NVWEdpRzY2eDAxa0l3WEZsd25qb25vL2RWdUJO?= =?utf-8?B?bjVhaEpZTXZpUktPVWRSaU5OUk8xZWpvZFcyYkpDWCtoNDBPZG9nbTJyOC9t?= =?utf-8?B?YVZHVjRUVG13SU55c1o5OFlSRVJhdm1hNkJNWkJqckI0YmVWQXd4MjlwNTdw?= =?utf-8?B?djR5UE1aVkRFVzkxMDRTN041VTlsOWdYcTJwUnMvdXNyRzJ2YTFOVUZZTFZJ?= =?utf-8?B?UW5oUHBaWVYrN0UyVDBPWlY3Um92clhlOFNPTkhZZEwxUHRLOUJmL1VZRFhM?= =?utf-8?B?eDloTTNHcmg2VEJDT0Z0WnVnRlUyajBIT0tzWDl0bVpZUXBKV2xScVpJSW1j?= =?utf-8?B?NUtEVys2dVhpSzhnVEtvcW1KdyszdXhEU2RkTEtqd0F4c29XS2VxZTZ5bnpk?= =?utf-8?B?QWdydEZFdzJQUWIybHJlK1hCcXFFVlZQd3RPNy9TOU5PMTdJWDkxdWhzYTgx?= =?utf-8?B?Y0lHSW5QbEUrdTJwbkpBR2s2MkhjZWtSMkRFci9pQjFmZldNR2JZU1pFOEhp?= =?utf-8?B?Z3ZIQkxrMnRDU2dDTXFyN3VHaXVGc3p0dEJjb3ZIdFZGVm9TWkNPT2R4alBt?= =?utf-8?B?Uk8vZ3Y3NElLbTNNaWZLd21ZUHFZczlpMnRGaHNhMk9WTGN2Yzl4R0k2aFF4?= =?utf-8?B?cFdHYnl0TUpDZXRsNTNSc1lRNXVDSnlFdjlNUlV6Rk9OS3FwQmpNQ1ZYZW9z?= =?utf-8?B?WksvV3AxeExxOXVhYlpMU29jeC9KdlRBYnljNVo4NXVDR1NDUHlZNWNJRFVr?= =?utf-8?B?aGwyWVRtQkpNMjY2TEFkUmRHV1FOcGtzY0xEUG1wclFLeVpxRzBHczF0ZmZF?= =?utf-8?B?eHRUZzZJNWhVRzF2czVKc1VRWURPQ0tTMWJJeUhEbnFnNGV1T1FYQm96aTcr?= =?utf-8?B?bWJrc1c2aFZEWWg0TStuL1pVN0RuaU9HR2JOSnFaZ1FaY3Q4dVlxblhSalVa?= =?utf-8?B?RlpqdjBzZzlUZzQ1UFJ3QUxrZWFSR0FDRWF2WHRrVXQxV3VqN3I5UFM4Tm12?= =?utf-8?B?S09NUzErUGhZRmtueVhWMCtGNnNHQm8wWkh2c1FGV052QW04YnVobWVMeFN6?= =?utf-8?B?QXdqT2VvZmpkL0NPeDFjWlRFQzY4bk1jenJOY041TFFTUXVlRWtLd1VnSTBZ?= =?utf-8?B?V1cwVkl6RHEydXEybURGUG14WVVHSTVlSHlUcEIvWEtUTndraUtheTU0SE1o?= =?utf-8?B?bUN6c1gzZjA3RS9CZVNVaG1TOVJpYVJaaEQzaW44MWJzdDZyVVk0YXdRbUVy?= =?utf-8?B?dWd2UDh2NnRyVXllbXJUZGt3ZTU5L2N4d3NuWWRpNzRSREV4VldTRGdKY3Fq?= =?utf-8?B?NFZ4UjZIbXNhU1VLRHdUVXdiZzVpY21ySnBSNGQ2SUxqU0VscUFpRFlwVEx3?= =?utf-8?B?VkV1YVdtMTlwUytVTTMzWDIyUjRIS0NXZWN4Z1oyWXRtKzBpazBVVGt5eVds?= =?utf-8?B?THdXQmxaSHZJWHhsTG9HSmIvN0IvQ0phWVYxelJ1d0o1WXFDWStrUmpBQXlC?= =?utf-8?B?amVzNlJYTGF6OW8xRUU1MSs0ZHp3Zmc5aUVvbzlzR3VCWWZUMnZ4OW90R2F2?= =?utf-8?B?TmVkVzRKK29SYnRnTkFqMFFqQkFERE5yQTN0V2FmeTJEZHBTUWNHQT09?=
X-MS-Exchange-CrossTenant-Network-Message-Id: 4e187bb4-b725-42a7-dcfe-08d9ec7a1a6f
X-MS-Exchange-CrossTenant-AuthSource: DU2P194MB1709.EURP194.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2022 09:45:42.5545 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: f930300c-c97d-4019-be03-add650a171c4
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: 0rgoZcEZhYA0xp/gPtjSdEgK5qXbHYEg4CaEpbKY1oHeI1W1riZXSaT9rprQv9C7ghRFrb5zo+na8rf2ZI9amZHuywWQeBMdT0HxBQeDalc=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6P194MB0216
X-OriginatorOrg: sit.fraunhofer.de
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/ZNHfRLR-XEaufwFdkEoypGJwedk>
Subject: Re: [Cbor] Typed CBOR Objects
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 10 Feb 2022 09:46:04 -0000

+1++

On 10.02.22 07:43, Joe Hildebrand wrote:
> Agree with Carsten.
> 
> Additionally, if you insist on repeating XML's mistakes, can you at least make sure that you don't repeat some of the worst consequences of those mistakes?  URLs are an attractive nuisance for these identifiers, since naively-written processors tend to retrieve those URLs drastically more frequently than anyone imagined, thinking that they might contain computer-parseable schema information -- which turns out not to mostly never work.
> 
> If you must have unique identifiers that are easy to mint without a new central registry, ask for a non-resolving URI, and make all of your examples use RFC 4151 tag: URIs or something that has similar properties.
> 
> (Note: RFC 4151 is Informational, but useful.  Careful use of a new URN space might work, if you must.)
> 
> —
> Joe Hildebrand
> 
>> On Feb 9, 2022, at 11:20 PM, Carsten Bormann <cabo@tzi.org> wrote:
>>
>> Of course, you can add an indirection, but the most direct way to indicate a new specific data model is a tag.
>> In essence, your TBD211 is exactly that; you have just chosen to add a parameter in the form of a URL or an OID (which is pretty much what you argue AGAINST in the last section…).
>>
>> I’d rather allocate a tag for each specific data model.
>>
>> Grüße, Carsten
>>
>>
>>> On 10. Feb 2022, at 07:02, Anders Rundgren <anders.rundgren.net@gmail.com> wrote:
>>>
>>> Hi List,
>>>
>>> As a subscriber of the RATS list I noted that I'm not alone looking for a flexible and extensible way of identifying a CBOR "schema" (content specification).
>>> Different solutions have been suggested including parameterized media-types: https://github.com/ietf-rats-wg/eat/issues/157
>>>
>>> Having a background in XML Schema (including WS-*) and similar concepts applied to JSON, I've sketched up a counterpart for CBOR that currently only exists in the form of a GitHub issue: https://github.com/ietf-rats-wg/eat/issues/165
>>>
>>> Using URLs as type identifiers may be regarded as breaking the desire keeping things nimble.  However, there are lots of possible applications where a 50-byte overhead would be a no-issue.  For converting JSON-based designs to CBOR, URLs are a necessity.  For highly constrained environments, OIDs seems like a useful alternative.
>>>
>>> Feedback would be appreciated.
>>>
>>> Thanx,
>>> Anders
>>>
>>> _______________________________________________
>>> CBOR mailing list
>>> CBOR@ietf.org
>>> https://www.ietf.org/mailman/listinfo/cbor
>>
>> _______________________________________________
>> CBOR mailing list
>> CBOR@ietf.org
>> https://www.ietf.org/mailman/listinfo/cbor
> 
> _______________________________________________
> CBOR mailing list
> CBOR@ietf.org
> https://www.ietf.org/mailman/listinfo/cbor


From nobody Thu Feb 10 02:05:41 2022
Return-Path: <anders.rundgren.net@gmail.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 705A53A0B9C for <cbor@ietfa.amsl.com>; Thu, 10 Feb 2022 02:05:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.812
X-Spam-Level: 
X-Spam-Status: No, score=-2.812 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.714, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AXJ7DjvPtn-3 for <cbor@ietfa.amsl.com>; Thu, 10 Feb 2022 02:05:35 -0800 (PST)
Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C03F93A0B7B for <cbor@ietf.org>; Thu, 10 Feb 2022 02:05:34 -0800 (PST)
Received: by mail-wm1-x330.google.com with SMTP id r131so3123457wma.1 for <cbor@ietf.org>; Thu, 10 Feb 2022 02:05:34 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;  h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=uUxfomsthKc88rZ1K/Z72DupgipO5RbGMD5hPKfeoJs=; b=AjgwJUcjlO5iQwCGlIa6zYNM5dBVY+lyDVzM+gvC/TFfi50Hpd1HL9MnBFKb6qSX1N tyMF+Yb2IutPd3jvnA2X/ERpcCcIsf8ogK5nbNWgflTXcUdg4fSTOqe6G1QPNv+sya8n KvH9NINVwvEMip2z38FAafSfvjvXPxhzMxuOzdFRunYVjfWxCylRdfCSaXfM7Ca0MKcZ ChQPJWxloYPzQwparfhl/1VUY7FrL/pMzmQf8MW9YBGoFFKenp8mjj3cBcULEU5r/xeu nMdyVieuqL7RV1sncyiq2evMHrAsvZn8CJVPfAt21Qlxpp8J+rtZ3zDAV1FAXYLDaehq qPTQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=uUxfomsthKc88rZ1K/Z72DupgipO5RbGMD5hPKfeoJs=; b=Ek7hDZTARRG79zBCFcKu0vPX95+MxwevdYZsYqJlMOQSXpnivI2e0ofZEUWUc1B2lG siztEiLcqugluJFk3/+IDxg8mdlMkEh5YUnpYdnMgHyAVv4I2bbLnbe3OiFB11B2Zs2V eo0PKcW4nEe/IH2puWkuFIKGs9Qfgk+n/r5v2E742W3MLLRtp2xFugK11EI/3XS683gu iCuUoOrfjd/s5r5ar21GsgOshfib420bJaGhic8KdQ+fvHAznCh0ORAK7+rMQgj36LMz VESqm3OOMOqCUbF7H/diORrjbrD6J5dHlFpN+XaIF1L/Y4GPZAZih83lDTvz8VWgfBDd IqEA==
X-Gm-Message-State: AOAM531ayd9gm2r2ujxRizXU3tbtC9I69k8ML60/3aFhs/F1PKppt6z0 Vt2L7xYONtGa//moS4gZt8I=
X-Google-Smtp-Source: ABdhPJx1zNUFoFgwnlslo8cwB5B3KDd7/FITsE5M6smu2eKB3jCOOGrymiE/+8vk8KPcGzczaRcz7A==
X-Received: by 2002:a1c:7716:: with SMTP id t22mr1474743wmi.89.1644487531777;  Thu, 10 Feb 2022 02:05:31 -0800 (PST)
Received: from [192.168.1.67] (25.131.146.77.rev.sfr.net. [77.146.131.25]) by smtp.googlemail.com with ESMTPSA id az7sm972647wmb.14.2022.02.10.02.05.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Feb 2022 02:05:31 -0800 (PST)
Message-ID: <8c5a4fe1-423d-9a68-3735-76ace3f27d49@gmail.com>
Date: Thu, 10 Feb 2022 11:05:29 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1
Content-Language: en-US
To: Henk Birkholz <henk.birkholz@sit.fraunhofer.de>, cbor@ietf.org
References: <d6b31d09-86fe-534d-446d-652b8e64e751@gmail.com> <CBD0EF42-6298-4845-B9AD-A18735F8BE4D@tzi.org> <99907B71-D019-46CC-A785-907E1E9D4B6C@cursive.net> <e7e7a747-6236-171f-a5c8-5a8cfcecf27b@sit.fraunhofer.de>
From: Anders Rundgren <anders.rundgren.net@gmail.com>
In-Reply-To: <e7e7a747-6236-171f-a5c8-5a8cfcecf27b@sit.fraunhofer.de>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/IXJKozSsfSwXLsFua4EGMiWK9uU>
Subject: Re: [Cbor] Typed CBOR Objects
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 10 Feb 2022 10:05:40 -0000

On 2022-02-10 10:45, Henk Birkholz wrote:
> +1++

Henk, I don't want to rude, but maybe you should hold your dismissals until EAT have resolved their typing issues?
We are still waiting :)

Cheers,
Anders

> 
> On 10.02.22 07:43, Joe Hildebrand wrote:
>> Agree with Carsten.
>>
>> Additionally, if you insist on repeating XML's mistakes, can you at least make sure that you don't repeat some of the worst consequences of those mistakes?  URLs are an attractive nuisance for these identifiers, since naively-written processors tend to retrieve those URLs drastically more frequently than anyone imagined, thinking that they might contain computer-parseable schema information -- which turns out not to mostly never work.
>>
>> If you must have unique identifiers that are easy to mint without a new central registry, ask for a non-resolving URI, and make all of your examples use RFC 4151 tag: URIs or something that has similar properties.
>>
>> (Note: RFC 4151 is Informational, but useful.  Careful use of a new URN space might work, if you must.)
>>
>> —
>> Joe Hildebrand
>>
>>> On Feb 9, 2022, at 11:20 PM, Carsten Bormann <cabo@tzi.org> wrote:
>>>
>>> Of course, you can add an indirection, but the most direct way to indicate a new specific data model is a tag.
>>> In essence, your TBD211 is exactly that; you have just chosen to add a parameter in the form of a URL or an OID (which is pretty much what you argue AGAINST in the last section…).
>>>
>>> I’d rather allocate a tag for each specific data model.
>>>
>>> Grüße, Carsten
>>>
>>>
>>>> On 10. Feb 2022, at 07:02, Anders Rundgren <anders.rundgren.net@gmail.com> wrote:
>>>>
>>>> Hi List,
>>>>
>>>> As a subscriber of the RATS list I noted that I'm not alone looking for a flexible and extensible way of identifying a CBOR "schema" (content specification).
>>>> Different solutions have been suggested including parameterized media-types: https://github.com/ietf-rats-wg/eat/issues/157
>>>>
>>>> Having a background in XML Schema (including WS-*) and similar concepts applied to JSON, I've sketched up a counterpart for CBOR that currently only exists in the form of a GitHub issue: https://github.com/ietf-rats-wg/eat/issues/165
>>>>
>>>> Using URLs as type identifiers may be regarded as breaking the desire keeping things nimble.  However, there are lots of possible applications where a 50-byte overhead would be a no-issue.  For converting JSON-based designs to CBOR, URLs are a necessity.  For highly constrained environments, OIDs seems like a useful alternative.
>>>>
>>>> Feedback would be appreciated.
>>>>
>>>> Thanx,
>>>> Anders
>>>>
>>>> _______________________________________________
>>>> CBOR mailing list
>>>> CBOR@ietf.org
>>>> https://www.ietf.org/mailman/listinfo/cbor
>>>
>>> _______________________________________________
>>> CBOR mailing list
>>> CBOR@ietf.org
>>> https://www.ietf.org/mailman/listinfo/cbor
>>
>> _______________________________________________
>> CBOR mailing list
>> CBOR@ietf.org
>> https://www.ietf.org/mailman/listinfo/cbor
> 
> _______________________________________________
> CBOR mailing list
> CBOR@ietf.org
> https://www.ietf.org/mailman/listinfo/cbor


From nobody Thu Feb 10 02:28:43 2022
Return-Path: <anders.rundgren.net@gmail.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 E485D3A0C34 for <cbor@ietfa.amsl.com>; Thu, 10 Feb 2022 02:28:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level: 
X-Spam-Status: No, score=-2.098 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LoQtrBhJU2OD for <cbor@ietfa.amsl.com>; Thu, 10 Feb 2022 02:28:36 -0800 (PST)
Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C87073A0C31 for <cbor@ietf.org>; Thu, 10 Feb 2022 02:28:35 -0800 (PST)
Received: by mail-wr1-x430.google.com with SMTP id o24so6012156wro.3 for <cbor@ietf.org>; Thu, 10 Feb 2022 02:28:35 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;  h=message-id:date:mime-version:user-agent:from:subject:to :content-language:content-transfer-encoding; bh=c+0aL9VQz0oKw+/vl967oifTgYDoB8bWeFcOzua83XU=; b=dJSaAFd8G9bSPf9D7G9IrTIGIn54Pc7WYQwENZH55eUPF4a13N92+1u5/W5VitLL00 IsUIUHHVA7S4x1OKkTsX0mR0g6qWJO98soOuaI6g4Dk8q1D1YRBrlTzllwybKC8XPHtF xm2UpZEq6QmK/A1E/EKNQUZhn3EQs3B6oUWnjbZUSxluWFtb0wftNnlynxyS+NtC+OKA gdLXY8mlTPN5Ez2wA/UO+qLzXQCqR7l3P93X0EvhCuuhFp7YwCyMhqSE/gMnDAdROKhX 3UkJ+R/lUO9u33Umvu+1IMoMYaxQan6hvU6+R2SuE3ObvNtzR2SdZwFp9y+It+EdOHoY ApKA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:from :subject:to:content-language:content-transfer-encoding; bh=c+0aL9VQz0oKw+/vl967oifTgYDoB8bWeFcOzua83XU=; b=iaofbi6kv/ZXbvGhCOc4z+pvot7eKyJSX+zVzwbuXp1DWqg2ygOjou2StE26CahKkn AUVSHiCYGARSdFpG+Seqg9CEi8kZGMywB6o1C3pihr5LpyPe0nHwh1xK7+GG/HMIyhYr OAwYhQi0cNKI4DJCXf+O1b+0WGVjhJ18W4K2Ikp1IrWdVWp87QMoyJRl5+446wkv0Jw1 YoR46j6lfzv4On551vp/JYlE660tuCHd5dnPo1Dny8eW5/Znce8eclEd/YZDTXWprGFh r3Fq8miY1Djr3POLEb43K3HyJFBB5B2Wss6RFQZd6B5HRYfm1IwJhdBLo1EnoN0KPc5Y 2vCw==
X-Gm-Message-State: AOAM532Uw7k1xilzWVPgeQt1MiPZHyGIw++UezeWqXi9Ub35m/9jsTha 5V04yHePNgwGciW+JxcBpkevU0S1ibc=
X-Google-Smtp-Source: ABdhPJxbvGNWVxA3/tiECR1ms5JFctd+VH0m+DqGIdvgsPn/OGtEjwnGJChbhzVE49shaCAYUgkQSg==
X-Received: by 2002:a5d:5692:: with SMTP id f18mr5975008wrv.285.1644488912999;  Thu, 10 Feb 2022 02:28:32 -0800 (PST)
Received: from [192.168.1.67] (25.131.146.77.rev.sfr.net. [77.146.131.25]) by smtp.googlemail.com with ESMTPSA id r12sm18532568wrw.73.2022.02.10.02.28.32 for <cbor@ietf.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Feb 2022 02:28:32 -0800 (PST)
Message-ID: <2157b82d-0dde-9510-fca4-7b110940fa71@gmail.com>
Date: Thu, 10 Feb 2022 11:28:30 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1
From: Anders Rundgren <anders.rundgren.net@gmail.com>
To: cbor@ietf.org
Content-Language: en-US
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/GleFz9iYKTGz7nNpUyqM3uSgLaI>
Subject: [Cbor] CBOR Schema
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 10 Feb 2022 10:28:41 -0000

Hi List,

Here is another thing to ponder about.

If your desire is to have "CBOR Everywhere",  you may one day have to consider some kind of schema.  I haven't looked into this, but it is possible that https://www.openapis.org/ already have what it takes.

Right, we are obviously not talking about battery powered smoke detectors, but about systems have gigabytes of RAM.  These systems are often using JSON for data interchange.

Cheers,
Anders


From nobody Thu Feb 10 02:59:49 2022
Return-Path: <hildjj@cursive.net>
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 F03DB3A09AF for <cbor@ietfa.amsl.com>; Thu, 10 Feb 2022 02:59:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.698
X-Spam-Level: 
X-Spam-Status: No, score=-1.698 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=neutral reason="invalid (public key: not available)" header.d=cursive.net
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Y5C7vwIjqGl8 for <cbor@ietfa.amsl.com>; Thu, 10 Feb 2022 02:59:34 -0800 (PST)
Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 849F33A0A7D for <cbor@ietf.org>; Thu, 10 Feb 2022 02:59:34 -0800 (PST)
Received: by mail-il1-x131.google.com with SMTP id o10so4031264ilh.0 for <cbor@ietf.org>; Thu, 10 Feb 2022 02:59:34 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cursive.net; s=google;  h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=vDQ7f8rPG5Su5M68t5VHq3uns6y7KtqsdXYS8/GwZDE=; b=hPOqjlotpGEvPtjbOwCP/NH6Q2qOdujlgCliP8Tq4HrVcO4dqdHXPHkl/Sbjn0KWJP hHTuromrNStJhfry1fcUe1YZVh32rzj8Ywo+wm5fB1lYiwRDm0dSKDbYMrCioqhqu/11 j84vHWX2+Li34PfAWQF/VTizwZj6f7CThpPBM=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=vDQ7f8rPG5Su5M68t5VHq3uns6y7KtqsdXYS8/GwZDE=; b=SVV4wO5Gv389TIQotZem9roI49TfGD4MFOfHmWIfScgtNsqdXPYJ5ykXyeQsZkhKMP iDXMVN52cX+dOU414D21jy1jOUKMMQSySZkhArlwkMuLqpBIH2knX7U5bcR6S3X6T1nu SgzFSZoWRNc6gGoWW3uQ9QUGRJW4v0XA9uA/9/1WtHb+CZybCvtcaJXlKp1+1JWWUok4 M92MjarJ2qiuH9na/koFmK8KP4+MZjQl773mlECzsoUQA0jQyEGkUVGcU/2r90XibIkj n20Ahe5IjlLP9h/S861y+Vt+zPn3N+pf2P1frqKudyvdg9Kixyp1eaLkMMdn6/xzEbMv t9JA==
X-Gm-Message-State: AOAM531kwUbeEiOzTsISbmT0NhOSd+bV6LL6aog7FqRM7JbrTAMEFjAa 6zWjZ5QfC69RqoEOqv7B3UUlQA==
X-Google-Smtp-Source: ABdhPJyy6vcfOO43dc6M7zQoUf9/BS2azAU6CvgefcBe/nF+E2Q7dZdi9MAnPtDhu4FOn1AvjM6ZFg==
X-Received: by 2002:a05:6e02:19c6:: with SMTP id r6mr334196ill.306.1644490772950;  Thu, 10 Feb 2022 02:59:32 -0800 (PST)
Received: from smtpclient.apple ([2601:282:177e:142d:f4db:234b:e0d9:dcfe]) by smtp.gmail.com with ESMTPSA id d11sm10934018ioc.49.2022.02.10.02.59.32 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Feb 2022 02:59:32 -0800 (PST)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.60.0.1.1\))
From: Joe Hildebrand <hildjj@cursive.net>
In-Reply-To: <90cd6a70-4dc1-0ccc-4681-26f83c8abb92@gmail.com>
Date: Thu, 10 Feb 2022 03:59:31 -0700
Cc: Carsten Bormann <cabo@tzi.org>, cbor@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <EA2A4BEA-5A64-4F83-BD6E-F13D6588197C@cursive.net>
References: <d6b31d09-86fe-534d-446d-652b8e64e751@gmail.com> <CBD0EF42-6298-4845-B9AD-A18735F8BE4D@tzi.org> <90cd6a70-4dc1-0ccc-4681-26f83c8abb92@gmail.com>
To: Anders Rundgren <anders.rundgren.net@gmail.com>
X-Mailer: Apple Mail (2.3693.60.0.1.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/6dteFS8cUw8TCIakaokw4abfEsI>
Subject: Re: [Cbor] Typed CBOR Objects
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 10 Feb 2022 10:59:47 -0000

> On Feb 10, 2022, at 12:25 AM, Anders Rundgren =
<anders.rundgren.net@gmail.com> wrote:
>=20
> Joe Hildebrand: the URL is not pointing to a machine-readable schema =
[*], it points to a specification to achieve decentralization.  Using =
non-resolving URIs is a deployment option.

They weren't in XML either, but that didn't stop a bunch of XML tooling =
from dereferencing the URL *every time* a document was parsed.  Some of =
those tools even had caches, but they didn't cache negative results, if =
I recall correctly.

If you say "URL", then URNs and tag: URIs probably aren't valid.  If you =
say "URI", put in a bunch of words that say "these are for humans, tools =
MUST NOT dereference these", then someone will still write bad tools, =
but at least you'll be able to feel like it wasn't as much your fault.

--=20
Joe Hildebrand


From nobody Thu Feb 10 03:15:54 2022
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 BD4823A08A4 for <cbor@ietfa.amsl.com>; Thu, 10 Feb 2022 03:15:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qRbDA-a5g10L for <cbor@ietfa.amsl.com>; Thu, 10 Feb 2022 03:15:48 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [134.102.50.15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 669853A081A for <cbor@ietf.org>; Thu, 10 Feb 2022 03:15:47 -0800 (PST)
Received: from [192.168.217.118] (p5089ad4f.dip0.t-ipconnect.de [80.137.173.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4JvZ1D3ScyzDFBT; Thu, 10 Feb 2022 12:15:44 +0100 (CET)
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: <90cd6a70-4dc1-0ccc-4681-26f83c8abb92@gmail.com>
Date: Thu, 10 Feb 2022 12:15:44 +0100
Cc: cbor@ietf.org, Joe Hildebrand <hildjj@cursive.net>
X-Mao-Original-Outgoing-Id: 666184543.8661571-ee590f3f18e6fa2996aa980e52173ece
Content-Transfer-Encoding: quoted-printable
Message-Id: <2C6B0227-1FC5-427A-A1EE-333F5E24A0E2@tzi.org>
References: <d6b31d09-86fe-534d-446d-652b8e64e751@gmail.com> <CBD0EF42-6298-4845-B9AD-A18735F8BE4D@tzi.org> <90cd6a70-4dc1-0ccc-4681-26f83c8abb92@gmail.com>
To: Anders Rundgren <anders.rundgren.net@gmail.com>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/Ou1CAH4uFqHGSQjCjZRKyLAHuac>
Subject: Re: [Cbor] Typed CBOR Objects
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 10 Feb 2022 11:15:52 -0000

On 2022-02-10, at 08:25, Anders Rundgren <anders.rundgren.net@gmail.com> =
wrote:
>=20
> What is not equally clear is what to do if you want to address the =
space currently occupied by JSON which is pretty much what this proposal =
is about. Deprecating URLs as type identifiers?

I think you are talking about JSON-LD here.
It is indeed a worthwhile undertaking to create a CBOR-LD (no, not the =
existing draft with that name, that does almost nothing), but this will =
go way beyond specifying a specific data model for a whole interchanged =
data item.

Gr=C3=BC=C3=9Fe, Carsten


From nobody Thu Feb 10 03:21:45 2022
Return-Path: <henk.birkholz@sit.fraunhofer.de>
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 E30153A091B for <cbor@ietfa.amsl.com>; Thu, 10 Feb 2022 03:21:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.614
X-Spam-Level: 
X-Spam-Status: No, score=-2.614 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, NICE_REPLY_A=-0.714, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=fraunhofer.onmicrosoft.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CfQZ89oTWCJM for <cbor@ietfa.amsl.com>; Thu, 10 Feb 2022 03:21:39 -0800 (PST)
Received: from mail-edgeDD24.fraunhofer.de (mail-edgeDD24.fraunhofer.de [192.102.167.24]) (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 C160B3A088D for <cbor@ietf.org>; Thu, 10 Feb 2022 03:21:37 -0800 (PST)
IronPort-SDR: XsiI5Yyo0HRA8JAxis8GVKsiaZ1sOwV3/k0Tm8RlGwcZlo4fZDC0HtBPpisi+PBMVsUT3cbmQh RFLEqqzNYdhQ==
X-IPAS-Result: =?us-ascii?q?A2G8AAAk9ARi/xoBYJlaHQEBAQEJARIBBQUBQIFGCAELA?= =?us-ascii?q?YFRVn6BU4RVg0sBAYRZYIUPXYF3LgOLEJAbgS6BJQMYFh0JCwEBAQEBAQEBA?= =?us-ascii?q?QgBKgsMBAEBAwSEfgKDegElNAkOAQIEAQEBAQMCAwEBAQEFAQEGAQEBAQEBB?= =?us-ascii?q?QQCAoEYhS85DYJwY00GNQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBA?= =?us-ascii?q?QEBAQEBAQUCDTQeKQwyAQEBAwEBEBEPAQUIAQEsDA8JAhgCAiYCAiEGCyUGA?= =?us-ascii?q?QwGAgEBFweCYgGCZQMtAQEOkACPNgGBOgKKH3qBMYEBgggBAQYEBIE2AYNWD?= =?us-ascii?q?QtcgVsDDwGBBioBgw2CfogzJxCBVUSBFScPgQaBbj6CIUIBAYR4E4JSklNdC?= =?us-ascii?q?1JBGwYgAjkZgRtovxI3NAeCEIE5gTkGC4k6jmSFZAYULpY8kVSWSSCMcoNPl?= =?us-ascii?q?WYCBAIEBQIOAQEGgWGCFk0kT4JpURkPjiAMFoNPhFk7hUtzAjYCBgEKAQEDC?= =?us-ascii?q?ZEZAQE?=
IronPort-PHdr: A9a23:LFhVRREjUdjzr0+n9AATy51Gfi4Y04WdBeZdwpYkircbdKOl8tyiO UHE/vxigRfPWpmT8PNLjefa8sWCEWwN6JqMqjYOJZpLURJWhcAfhQd1BsmDBAXyJ+LraCpvG sNEWRdl8ni3PFITFtz5YgjJo2H04yQbBxP/MgR4PKL5F926sg==
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-AV: E=Sophos;i="5.88,358,1635199200"; d="scan'208";a="49340957"
Received: from mail-mtaka26.fraunhofer.de ([153.96.1.26]) by mail-edgeDD24.fraunhofer.de with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2022 12:21:34 +0100
IronPort-SDR: 6Leey7GnnjCn3V44v/IpHRGfhGrWFyHn8br/79UG4muzsDe+El7XrBXP7qH4RX/2Yv+Chq8QAH UbIdDKozhacOD1J5CpjDNjU+2VWdP12OQ=
X-IPAS-Result: =?us-ascii?q?A0A6AAD/9ARibD6wYZlaHQEBAQEJARIBBQUBQAmBPQgBC?= =?us-ascii?q?wGBUVYHTCtZJlSEVINLAQGEWWCFD10BgXYuAzgBileQG4EugSUDVAsBAwEBA?= =?us-ascii?q?QEBCAEqCwwEAQGFBQKDdwImNAkOAQIEAQEBAQMCAwEBAQEFAQEFAQEBAgEBB?= =?us-ascii?q?QQUERQHBA4DEBA7Bl4GaIFPgWETCzQNhkMBAQEDAQEQEQ8BBQgBARQYDA8JA?= =?us-ascii?q?hgCAiYCAiEGCwceBgEMBgIBARcHgmIBgmUDLQEBDo98jzYBgToCih96gTGBA?= =?us-ascii?q?YIIAQEGBASBNgGDVg0LXIFbAwYJAYEGKgGDDYJ+iDM3gVVEgRUnD4EGgW4+g?= =?us-ascii?q?iFCAQGEeBOCUpJTXQtSQRsGIAI5GYEbaL8SNzQHghCBOYE5BguJOo5khWQGF?= =?us-ascii?q?C6WPJFUlkkgjHKDT5VmAgQCBAUCDgEBBoFhghVNJE+CaU4BAgECDQECAgMBA?= =?us-ascii?q?gECCQEBAo4dDBaDT4RZO4VLQjECNgIGAQoBAQMJkRkBAQ?=
IronPort-PHdr: A9a23:o5xq0xF3/lDoOVMsCuMfpZ1Gfi4Y04WdBeZdwpYkircbdKOl8tyiO UHE/vxigRfPWpmT8PNLjefa8sWCEWwN6JqMqjYOJZpLURJWhcAfhQd1BsmDBAXyJ+LraCpvG sNEWRdl8ni3PFITFtz5YgjJo2H04yQbBxP/MgR4PKL5F926sg==
IronPort-Data: A9a23:9BYa46B3EkrZThVW/0blw5YqxClBgxIJ4kV8jS/XYbTApDh0gjwBz mEcDz3TOK7YZmX1Ld1ya4yz80lVvp+DyNRhOVdlrnsFo1CmBibm6XR1Cm+qYkt+++WaFBoPA /02M4KGcYZoJpPljk/F3oLJ9BGQ7onVAOqsYAL4EnopH1U8En550UsLd9MR2+aEv/DpW2thh vuv+6UzCHf9s9KjGjtJg04rgEoHUMXa4Fv0jHRnDRx4lAO2e00uMX4qDfrZw00U4mVjNrXSq +7rlNlV945ClvsnIovNfr3TKiXmTlNOVOSDoiI+ZkSsvvRNjjQe8eUyCNkbVV5KgA+5wesp6 IkV7bXlHG/FPoWU8AgcewJdDzk4ML1N+PnJO3Git8yUwUDcNXfhqxlsJBhrZstJpaAuXj8Iq 6ZwxDMlNnhvg8q2zbS4DONtnMcjK835FJgepjdu1zjEC/YhT53ZBanHjTNd9G5o158QRq6PD yYfQR9AUTHlZBxjAAwwWKIft92noUHgVSIN/Tp5ooJtujOKl1wguFT3C/LcfNCHX94ThFueq m3c8mK/BBwGHNOawDuBtHmrg4fnlin8QqoTGaG2sPlwjzWuKnc7UUBNEArk5KDm1AvgAZRBL gofvCQ0pLU09EulQ8O7UxDQTGO4UgA0Q/ZzUOQGywax07ff2TbHPTAkEmYZQYlz3CMpfgAC2 liMltLvIDVgtryJVH6Qnot4SxvuZED5ykdfPEc5oRs5D8rL/dhp30OUJjp3OP/p34Stcd3l6 2rS9EADa6MvYdkj+4jTwLwqq2vx/d2YEUtsuVuSADjj8AY/b8irfYW171jc4/taaoqUJrVgg JTms5bAhAztJcvW/MBofAnrNOr1jxpiGGGE6WOD57F7q1yQF4eLJOi8Gg1WKkZzKdojcjT0e kLVsg45zMYNYCf2NvYrO9rvVZ5CIU3c+TLNCKC8gj1mPcIZSeN71HsxPyZ8IkiywRNzyftjU XtlWZr1XC9GYUiY8NZGb71EiuZwlnFWKZL7SZ3m0w+s0beFLHCSU6wOMEaIYfs/4b+WyDg5A P4AX/ZmPy53Ab2WSnCOqeY7dAlWRVBmVcGeg5EGKoarf1s5cEl/UKW56e16JORYc1F9xo8kC FngARAHoLc+7FWcQTi3hodLNu+xA8Yl8C5T0O5FFQ/A5kXPqL2HtM83H6bbt5F+rISPFNZ4E KsIfduuGPNKRmiV8jgRd8Ci/pdjaFKlnwuTOSqibjUlOZJtHlSb9tjhdwrp1S8PEivu6Zpg+ eL9jFuDTMpRXRlmAebXdOmrkQG7s08dr+QuDUHGFd9eJRf3+49wJi2t1fI6epleKRjKyjaA+ RyRBBMU+bvEr4MvqYabnqGY6YmzGvZ4Hk1UEnOd4bvvbXvW+W+qwIlhVueUfGmBBT2up/j4P b1YlqiuPucGkVBGt5tHP4xqla9utcHyo7J6zxh/GCuZZVqcCoRmfiuM0/5Ju/Af3bReowa3B hmC99QGa7WEPMTpTAwYKAY/NL/RzvQIgn/f/f81Zkvg7TJx/L2JXF8UMxTV0H5RK758MYUEx +Y9uZdKulLl1Udwao6L3nJO6mCBDn0cSKF75JsUN4nm11gwwVZYbJ2AVyL7vMOVZ9NXPhV4K zOYnvGY1e0BnQ+TLD9qSiaIg7Abm5FIs1ZE1lYfIVSOlNffwPM6hUUD/TMyRwVT7xNGz+MqZ jk1bRIof/3W8mc6ntVHUkCtBxpFWE+T9Hv3xgZbj2beVUSpCjHAIWBV1TxhJ6zFH7+wpgRmw Yw=
IronPort-HdrOrdr: A9a23:fyjQvayAS9/yGy4VPE9wKrPxy+skLtp133Aq2lEZdPULSKOlfp GV8MjziyWYtN9wYhAdcKO7Sc+9qBTnhOJICOgqTMqftWzd1ldAQ7sSiLcKrweQYBEWs9Qtr5 uIEJIOeeEYb2IK7/oSiTPQe71LoKjlzEnrv5an854Ed3AVV0gK1XYfNu/0KDwOeOALP+tcKH LKjfA32AZINE5nJfiTNz0gZazuttfLnJXpbVovAAMm0hCHiXeN5KThGxaV8x8CW3cXqI1SvF Ttokjc3OGOovu7whjT2yv66IlXosLozp9mCNaXgsYYBz3wgkKDZZhnWZeFoDcpydvfomoCoZ 3pmVMNLs5z43TeciWcpgbs4RDp1HIU53rr2Taj8A3eiP28YAh/J9tKhIpffBecwVEnpstA3K VC2H/cn4ZLDDvb9R6NqeTgZlVPrA6ZsHAimekcgzh0So0FcoJcqoQZ4Qd8DIoAJiTn84oqed MeQ/003MwmMW9yUkqp/VWGmLeXLzYO91a9MwQ/U/WuonlrdCsT9Tpc+CQd9k1wg67VBaM0o9 gsCZ4Y542mePVmGZ6VNN1xMfdfNVa9My4kEFjiaGgPR5t3c04klfbMkcAIDaeRCds18Kc=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-AV: E=Sophos;i="5.88,358,1635199200"; d="scan'208";a="10976309"
Received: from 153-97-176-62.vm.c.fraunhofer.de (HELO smtp.exch.fraunhofer.de) ([153.97.176.62]) by mail-mtaKA26.fraunhofer.de with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2022 12:21:31 +0100
Received: from XCH-HYBRID-02.ads.fraunhofer.de (10.225.8.59) by XCH-HYBRID-01.ads.fraunhofer.de (10.225.8.57) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Thu, 10 Feb 2022 12:21:31 +0100
Received: from EUR05-DB8-obe.outbound.protection.outlook.com (104.47.17.105) by XCH-HYBRID-02.ads.fraunhofer.de (10.225.8.59) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14 via Frontend Transport; Thu, 10 Feb 2022 12:21:30 +0100
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EkxQmaDxmPNSeK70EA7+QSYp4QGLxf4vYqaeurbVWGPsQl/f83ybn4R1OMSeLL6JrgfzvePMzo9U4w8iyRQZ9e2V6YpQZ4gTBvOUdzxxVwITPI/4Mv19DY1j+Dla3nFrCl42IlFRBITmhDpifcTFHI7Zutm5OTI+o/G2CEIaxEqpyuMwcQjuclK/Hg51EKmT4dBHvuM+HD8nKlMXIpC1ZXNGTRvxT8MzyydE5ci3zuC0mQ9435NJEB496vinqVjvrMFf92Zm+S/JFQ9NRuMlrafvlGLE40Sa/iprxrsvHJiGyN1+7ebA511FCXylqkefXEtZJ7VJcsAcBE2xwpri6g==
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=nAX+NBWRLsrUq6I5O5KWx8/YVZAJzfIYY5/BYbc7Aq4=; b=K+7FFGnQM/yoX72ZPxr7iDTO2RAVeaT87onSAk1p8QpoIYp7gk3iXjn6BzSberggLH/JUZ45UAAbioBhDZikIqqHRhpDRLQFScIsQKve472AbExbqAccV3sfE02xev4A+Mx0E1Y+ZhdlMumaPR2497d/7eGVv9vTkIkyWKvnczHl1BuYvpvE4ZINQTJI1SSgP2pyi2nbUCB9DlngY9wq5E2CDLwedV9n+v0rNQJxQOYZd1id08J5uqFby1s5iOmu3lUxpb5B2OGcZtrNIL1uGXfFmvDmCz07x2NipPzkfpY9w/8u+ZPL2cMqAqW5zJZb5Rs44DIiSYtHomF1xJ7Gyg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fraunhofer.onmicrosoft.com; s=selector2-fraunhofer-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nAX+NBWRLsrUq6I5O5KWx8/YVZAJzfIYY5/BYbc7Aq4=; b=lx9BiyzJKsg2ZHVll4QIXr/rUDUy7kB5fPIrJbM9WdgOhFH5CzBGZ0I3Po5sg8eNAcBqbLB2MaDrYT6/j9QPUbf7OvUOKiHqV//D3l/mhuaDeJWNhD71AoesrKYilQPBYXfqYkXemVRCp2Pf5BhRkEs0TpQ9FA15I+yURG/GoMY=
Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=sit.fraunhofer.de;
Received: from DU2P194MB1709.EURP194.PROD.OUTLOOK.COM (2603:10a6:10:276::9) by HE1P194MB0250.EURP194.PROD.OUTLOOK.COM (2603:10a6:3:10d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.17; Thu, 10 Feb 2022 11:21:29 +0000
Received: from DU2P194MB1709.EURP194.PROD.OUTLOOK.COM ([fe80::a144:da10:fd89:c788]) by DU2P194MB1709.EURP194.PROD.OUTLOOK.COM ([fe80::a144:da10:fd89:c788%5]) with mapi id 15.20.4951.019; Thu, 10 Feb 2022 11:21:28 +0000
Message-ID: <d1c6592e-ef23-6758-aa01-9d5891169ce7@sit.fraunhofer.de>
Date: Thu, 10 Feb 2022 12:21:24 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0
Content-Language: en-US
To: Anders Rundgren <anders.rundgren.net@gmail.com>, <cbor@ietf.org>
References: <d6b31d09-86fe-534d-446d-652b8e64e751@gmail.com> <CBD0EF42-6298-4845-B9AD-A18735F8BE4D@tzi.org> <99907B71-D019-46CC-A785-907E1E9D4B6C@cursive.net> <e7e7a747-6236-171f-a5c8-5a8cfcecf27b@sit.fraunhofer.de> <8c5a4fe1-423d-9a68-3735-76ace3f27d49@gmail.com>
From: Henk Birkholz <henk.birkholz@sit.fraunhofer.de>
In-Reply-To: <8c5a4fe1-423d-9a68-3735-76ace3f27d49@gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-ClientProxiedBy: AS8PR04CA0146.eurprd04.prod.outlook.com (2603:10a6:20b:127::31) To DU2P194MB1709.EURP194.PROD.OUTLOOK.COM (2603:10a6:10:276::9)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 5fc59ce8-da71-4c3b-3f59-08d9ec877b85
X-MS-TrafficTypeDiagnostic: HE1P194MB0250:EE_
X-Microsoft-Antispam-PRVS: <HE1P194MB0250C23B34DC747C57257560A82F9@HE1P194MB0250.EURP194.PROD.OUTLOOK.COM>
X-MS-Oob-TLC-OOBClassifiers: OLM:5516;
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: 0ApHQyfpLVKR7Us75Cc2boNKdysttdjclXk8ydJxfdvkik2JRXhbi17WJ/tKsg/IN/ir4jz98hcASc6ArnEppPFfX/KbgCigScuu09CC3j6Avi7nvBMQTkrkpZgnF1oO7j054jhOUKzaNA+FZeAuhXjkWnJyqI76M5sXaCLLQWp4fGAldXSMMP7lKLjdbaZR+4cp7H0bEdSakL90PaV8+2Xf9wzu+IXx7ZK6yYs/wOzbxYKGoEt0mXABhXQzZoydj/PjGQ2GW+tdJqr6n/DfDnUeCIiUYqvuyvXiXICiHx+NYtPXOAHhRpmDJC98b9TPeiTRgTVJ+dMGcO5agRFFf9kYL2emWngyeuz+egRMuV5/JcHB0AqDGSU7EO7PS7pHx6ZevlP1OVRr1zwFgpzdRr4JQ/29Wfa3wPyEJhB4AAc/LTH5VwesU0i2o41VqCCVui4br7T4TvFAm6SeNQBNuSq89qnz5QTIeVvRz+GfEuc+m3tmnE/nMw8/iZShaeSnVKAONP9/wrOEVlr4YU9T/wkLKLlbmJxAj/K0eXM5rofF8SRcB1UGCjQmBhTKOWg4IvdIAzJqvF/nrk74GkYeXCPUD7Z/L1i1WgGweED+edm+703pPqsehKbMif0rAVD/6m6T9l5QA7wtd2zmR/jvI31wKS45UU+6BrPhMEim0K2ZCTbcSa7KxU1r1hBfVfm51bw0A36GPfz5IBCfKvi5t6BDlFvySwVZuCu01bvBbMt5bU5Q/ZzuEM4YHlFl2bM1qYoayUlJuUzaL4RZqyPvDGqSZ0//dXdxfAFpOwaPFKmnPAY2Dy+MIUmzr+GdbRvxb1JE6uxDA13px8xHDIRkZWice+JjCSN3v98XS3hO1ec=
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;  IPV:NLI; SFV:NSPM; H:DU2P194MB1709.EURP194.PROD.OUTLOOK.COM; PTR:; CAT:NONE;  SFS:(13230001)(4636009)(366004)(86362001)(8676002)(2906002)(38100700002)(44832011)(8936002)(82960400001)(31696002)(5660300002)(53546011)(186003)(66946007)(6512007)(316002)(6666004)(52116002)(31686004)(966005)(6486002)(508600001)(66556008)(66476007)(83380400001)(6506007)(2616005)(43740500002)(45980500001); DIR:OUT; SFP:1102; 
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?bjdSN0RPYzkrZ0lmSkhTSU5HWEFoYVNoSjRoMlFpZW55VEdqNDhwOStTc0w1?= =?utf-8?B?R093NGtuVnRzWmo0RElFaEQ4dkt4MldpVzZ6Zkp2bTdqUXFwVk1LbjNUSXMw?= =?utf-8?B?Q2VreTh1ZGl2a05wTlZxUTJOUXNTczN1c0JYVWlLWTlWa0NSYW52bTlYaGli?= =?utf-8?B?VjUrOHpqUGQvUFZvWmZWbmJSUmlkMEdyN2pEdHNsM2htMWp2RG55czIrWmVj?= =?utf-8?B?blhiWGdZZnRYRnVOTE8vWmJVaW9SMjZraG9Jdy9Ud24vNTJPV1p2OE1qRHJr?= =?utf-8?B?Y2RXRW43SjBGT1hyaWR5VGM5TXZVWjlRZmMrSHRVdUpvZmlmZ3lHN0loNkVW?= =?utf-8?B?REJDak01SVpGaFN0cXNkeUZaRHhpNzdsemgvcDk1WUdPdzY2TzFsR3VzUFha?= =?utf-8?B?aUhyQ1BtRXpYaU1ObHI1THpPYTVZczlUSURoLytWbHZ5bGk3MzRnRzRIaFVH?= =?utf-8?B?S01CdFByZTI5RXdVazVpL1lyaXIvQlUyMnUzU01Yc3RRaGlLaWdWVmhzdVdZ?= =?utf-8?B?bkxEUjBZT3FQRUJ1bjZKakVsUDhreFh0Rm1YT0I1ODNHZlF5VjZPdUROSGE3?= =?utf-8?B?VFVjaUs4MU9jMlRlaDYvbHJ1ZWJJczNQRERlY0NxcXZUUGU3WHpqS1c2UCtX?= =?utf-8?B?VzRZVmpKQUVKV0hSdjZKTjB3Qm8veFAwZmVqNzdZNFNsSHp0b1l2SjVIS1NH?= =?utf-8?B?TG4zYThUYm5ZM01JTzh5Zk81ODRDeFRqc28ramYvdXAySGZXWFM4ZjBmdXRo?= =?utf-8?B?UWNCNkRKSEVLaENHV29xeVNYOWJzQWJwbUlzT3VpSnh4L2JOQXp2eEFPc2dB?= =?utf-8?B?LzhTWlhuVTlldTlsbDg3QkM1Y1pBcmd2VnJyZ3c3TTZmYnU3WGh1Njdjbmt4?= =?utf-8?B?a2Qva1pNSm16dEhUU2NtL3F4ZEZVQlhBZEVmSWVUTjZOZTlhelVrN3kxTGxQ?= =?utf-8?B?cVowa0d2RDQxSXU3MXYrRTZRSmxMd3V1MzJOb3R3Z3B5N2FKem01ZHFvalYz?= =?utf-8?B?Z3F2WWlWK0ZRQk44N0tOYWwwSlczQ1VEcXdvWXcvUHlhdFpnRUhraUNheDNR?= =?utf-8?B?K0RVdDhjd3JuWHBscWlaaGk2bTBIQjJZVHQ3ZHhoY2hJSktWM0pnWXNSQ2Vr?= =?utf-8?B?bXZoQThlVHpZM2IwR3hMMDMzVWJXaFhvbjZqUWRUK0JBYWVzSS9ZR1E4d0Fj?= =?utf-8?B?MXpNMWdxUWVuT2lORnZ5cnFIdlUvUlRjeng3WFJIRU9ySXIzbzRYTVl1NFJ3?= =?utf-8?B?WTlORVA1ZTY1aFFwTko0b2liZ2dzMHFSMnlXZnRmeDIwcnZ2MHRqdzhOSjJK?= =?utf-8?B?TVNmRlF3VnhVQmM2VTdIaVloMTR5SWk1OGRnaS8zNGJqQ3pZQktwb1BTMUFS?= =?utf-8?B?UzdTaFZwK2k0RVdIbVRsWHN2N05iWFBza2VQRWd0R2JCUE8xYmgxSWdrbzhu?= =?utf-8?B?RkJnTnM0SDZhWHZTKzUyS2h4MExCUXp0RTlrMElUNGdjVmlIbCs4S1FrdExa?= =?utf-8?B?SkxjMzZHQlNVNHRTWmN2NUN0MlFFOUx5Vld5ZmlkZkR1dW90RGMzMmx6YUFZ?= =?utf-8?B?RWlqbHpqdyt6bUM4OVdhK1BKaEI3UkpXRU00bWQ0aHJ3M1R4aGlOTXlrd1VL?= =?utf-8?B?WHUrc3JzTW54RVdSQk9KK1grR0NPQmVVQ2h4am1XbCtFWlFVN24wVGt0MWNi?= =?utf-8?B?ZUwzUWhScHlXYWd2dDJTOEdTcWtYWHFkendKUHNzaFJVS1pOV2xWL3F3c3oy?= =?utf-8?B?NFh2T0dSdUk3OFVDdFRhRVZJQ1ExcTFsS3ZCU3pXRzJJdXBSNEtRVHZrNWxM?= =?utf-8?B?MDM3YnMra3JuaUtHSWVXTE5UZWl6NldteDBqekIxT210VEtyblI2enhta1hW?= =?utf-8?B?b2diYVovY1ZHKzQ2djl0TUZTcUNFWDk5WE83NDRERkFkR2RhcmJmbEErQWxy?= =?utf-8?B?MmplWkNkWFY0MU9yVlRuUnpMbWRrdVVmQldHVFh0YVh2OEp6LzZqb2RkUXo2?= =?utf-8?B?QTlMUW1rUFZoOUVYbytKRjMraEYyT2lzeTYralV5Smt2aUJsZlhMdTVTRGl5?= =?utf-8?B?eDV3WmxHdWxyMTl0RVpqSEdSWTJvYVJneHRhRUYwR0pEdk5SSmtLR3NXSmdE?= =?utf-8?B?VVdHMTIvWWJKSnl6SkFlYWptbVBROE5KVng5TDNXZDl1Q25tVEVNa3ZNVmxl?= =?utf-8?B?eDY2SjJmUG5zam9vV1BLdEV2UEdXcjFtM1BROVB0WnE2UW9iRitoTEcvam1u?= =?utf-8?B?YkNWOGFPT2x6Vis3UzFjK2E1TVNJRHA4S1htdTFZUmlDbkxhVitVejZOUEhp?= =?utf-8?B?bjBhV3V6cXZudGFlS1NKWVJJVnFmMVUyaFVzc1l1SzBscXl4aHJPQT09?=
X-MS-Exchange-CrossTenant-Network-Message-Id: 5fc59ce8-da71-4c3b-3f59-08d9ec877b85
X-MS-Exchange-CrossTenant-AuthSource: DU2P194MB1709.EURP194.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2022 11:21:28.7955 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: f930300c-c97d-4019-be03-add650a171c4
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: msHFUX/tozooGOxFOWCT+wRxtNGtPoiAFv0pn7rkITQ6DX2ikARmMvX9j1bO2eaBKRSnwWOJ+tLJIzWWVRytv8GUKS3LJWWFn3a1NvQ+v18=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1P194MB0250
X-OriginatorOrg: sit.fraunhofer.de
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/0K6opwPglyl64lV2FSMU8Kivijo>
Subject: Re: [Cbor] Typed CBOR Objects
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 10 Feb 2022 11:21:44 -0000

I can see your point. I hesitated for a second, but posted anyways :-) 
And you are not being rude, you called me out and I am... kinda guilty 
as charged.
Still, this reflects my opinion as a contributor.

On 10.02.22 11:05, Anders Rundgren wrote:
> On 2022-02-10 10:45, Henk Birkholz wrote:
>> +1++
> 
> Henk, I don't want to rude, but maybe you should hold your dismissals 
> until EAT have resolved their typing issues?
> We are still waiting :)
> 
> Cheers,
> Anders
> 
>>
>> On 10.02.22 07:43, Joe Hildebrand wrote:
>>> Agree with Carsten.
>>>
>>> Additionally, if you insist on repeating XML's mistakes, can you at 
>>> least make sure that you don't repeat some of the worst consequences 
>>> of those mistakes?  URLs are an attractive nuisance for these 
>>> identifiers, since naively-written processors tend to retrieve those 
>>> URLs drastically more frequently than anyone imagined, thinking that 
>>> they might contain computer-parseable schema information -- which 
>>> turns out not to mostly never work.
>>>
>>> If you must have unique identifiers that are easy to mint without a 
>>> new central registry, ask for a non-resolving URI, and make all of 
>>> your examples use RFC 4151 tag: URIs or something that has similar 
>>> properties.
>>>
>>> (Note: RFC 4151 is Informational, but useful.  Careful use of a new 
>>> URN space might work, if you must.)
>>>
>>> —
>>> Joe Hildebrand
>>>
>>>> On Feb 9, 2022, at 11:20 PM, Carsten Bormann <cabo@tzi.org> wrote:
>>>>
>>>> Of course, you can add an indirection, but the most direct way to 
>>>> indicate a new specific data model is a tag.
>>>> In essence, your TBD211 is exactly that; you have just chosen to add 
>>>> a parameter in the form of a URL or an OID (which is pretty much 
>>>> what you argue AGAINST in the last section…).
>>>>
>>>> I’d rather allocate a tag for each specific data model.
>>>>
>>>> Grüße, Carsten
>>>>
>>>>
>>>>> On 10. Feb 2022, at 07:02, Anders Rundgren 
>>>>> <anders.rundgren.net@gmail.com> wrote:
>>>>>
>>>>> Hi List,
>>>>>
>>>>> As a subscriber of the RATS list I noted that I'm not alone looking 
>>>>> for a flexible and extensible way of identifying a CBOR "schema" 
>>>>> (content specification).
>>>>> Different solutions have been suggested including parameterized 
>>>>> media-types: https://github.com/ietf-rats-wg/eat/issues/157
>>>>>
>>>>> Having a background in XML Schema (including WS-*) and similar 
>>>>> concepts applied to JSON, I've sketched up a counterpart for CBOR 
>>>>> that currently only exists in the form of a GitHub issue: 
>>>>> https://github.com/ietf-rats-wg/eat/issues/165
>>>>>
>>>>> Using URLs as type identifiers may be regarded as breaking the 
>>>>> desire keeping things nimble.  However, there are lots of possible 
>>>>> applications where a 50-byte overhead would be a no-issue.  For 
>>>>> converting JSON-based designs to CBOR, URLs are a necessity.  For 
>>>>> highly constrained environments, OIDs seems like a useful alternative.
>>>>>
>>>>> Feedback would be appreciated.
>>>>>
>>>>> Thanx,
>>>>> Anders
>>>>>
>>>>> _______________________________________________
>>>>> CBOR mailing list
>>>>> CBOR@ietf.org
>>>>> https://www.ietf.org/mailman/listinfo/cbor
>>>>
>>>> _______________________________________________
>>>> CBOR mailing list
>>>> CBOR@ietf.org
>>>> https://www.ietf.org/mailman/listinfo/cbor
>>>
>>> _______________________________________________
>>> CBOR mailing list
>>> CBOR@ietf.org
>>> https://www.ietf.org/mailman/listinfo/cbor
>>
>> _______________________________________________
>> CBOR mailing list
>> CBOR@ietf.org
>> https://www.ietf.org/mailman/listinfo/cbor
> 


From nobody Thu Feb 10 03:33:04 2022
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 C982C3A09D8 for <cbor@ietfa.amsl.com>; Thu, 10 Feb 2022 03:33:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level: 
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FJJmGALIxagJ for <cbor@ietfa.amsl.com>; Thu, 10 Feb 2022 03:32:56 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [IPv6:2001:638:708:32::15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B91243A09AF for <cbor@ietf.org>; Thu, 10 Feb 2022 03:32:56 -0800 (PST)
Received: from [192.168.217.118] (p5089ad4f.dip0.t-ipconnect.de [80.137.173.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4JvZNz3XxqzDCdK; Thu, 10 Feb 2022 12:32:51 +0100 (CET)
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: <2157b82d-0dde-9510-fca4-7b110940fa71@gmail.com>
Date: Thu, 10 Feb 2022 12:32:51 +0100
Cc: cbor@ietf.org
X-Mao-Original-Outgoing-Id: 666185571.130378-7ad5becb7a3e317a88446bb69f7f0e19
Content-Transfer-Encoding: quoted-printable
Message-Id: <6410C7ED-6ADC-4576-94DA-0DA2C1DA0CAF@tzi.org>
References: <2157b82d-0dde-9510-fca4-7b110940fa71@gmail.com>
To: Anders Rundgren <anders.rundgren.net@gmail.com>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/IbciBCeW85eK_NbKvjXIHTIARIA>
Subject: Re: [Cbor] CBOR Schema
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 10 Feb 2022 11:33:01 -0000

CBOR has been designed to be independent of any =E2=80=9CSchema =
Language=E2=80=9D (learning from the disadvantages that became apparent =
with the ASN.1 approach).

However, there is one data definition language that has been designed =
with CBOR and JSON in mind: The Concise Data Definition Language (CDDL), =
defined in RFC 8610.

CDDL is meant for humans to create (and for computers to consume).  If a =
language that is optimized for interchange between tools is required, we =
could simply go ahead and standardardize the CDDL JSON form, currently =
defined in Section 7 of the CDDL freezer [1].

Note that other "schema languages=E2=80=9D are in active use in the =
IETF, including YANG (RFC 7950/7951/draft-ietf-core-yang-cbor [2]).

Gr=C3=BC=C3=9Fe, Carsten

[1]: =
https://www.ietf.org/archive/id/draft-bormann-cbor-cddl-freezer-09.html#na=
me-alternative-representations
[2]: https://www.ietf.org/archive/id/draft-ietf-core-yang-cbor-18.html


From nobody Thu Feb 10 04:42:34 2022
Return-Path: <anders.rundgren.net@gmail.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 CFCF93A0EFA for <cbor@ietfa.amsl.com>; Thu, 10 Feb 2022 04:42:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.812
X-Spam-Level: 
X-Spam-Status: No, score=-2.812 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.714, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GGI8y1jN-ZU8 for <cbor@ietfa.amsl.com>; Thu, 10 Feb 2022 04:42:27 -0800 (PST)
Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EEF2B3A08CE for <cbor@ietf.org>; Thu, 10 Feb 2022 04:42:26 -0800 (PST)
Received: by mail-wm1-x331.google.com with SMTP id k3-20020a1ca103000000b0037bdea84f9cso3859263wme.1 for <cbor@ietf.org>; Thu, 10 Feb 2022 04:42:26 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;  h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=zn9cnSCns65QTETTvMqls56Xo5n/jMp6FvOEYKiSfJU=; b=HXDmxn6kUGLfDSUhVeMpnnFliIc91+SeIVt6faI28UKTSBbB0Zz31lAm2g1Mm/79rA wqgc442RzjwZGcIvW2ZJEOEsvs8wk8nXcOLlI5xEavIpaEDm84F8GPYtceLgMode0UtC esUaMsK3DsHH7ZHRcjWpoA0xTi95otLII74GsWkRumpe8C4beN+V+IXCTL7cohH19Osx qwV3iggmXLwpYcuViZ3B9PJsXDa/fzG4zMEicK4PMqpFISkjI2Qj9srzP7Q07IrJuU7X 7BM+C+3uLCsR/aYUOgXw27LswkiwFiSys3BIIO+2cMWNU0nNxntKDO+wieZADr7v5bKx 1LQg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=zn9cnSCns65QTETTvMqls56Xo5n/jMp6FvOEYKiSfJU=; b=UVIjwxevu7ed8aOFHsxtsKxc//yXGCdGbqPvN4MbXPM8g19jzWyotChD2oygEknjy+ tuDjaxPOJ3JPELOXvysJzsh74ay5ahuSU4hQw2bVtvyJCtU/yAll/PEiwqxoe4p+GFuG GzJXLMHYzrxdi7hRoNkWAnfxE6CX6pF9SgHpB+ol3+WfnSXSN3cbjHbzCHNTmgy0ZEEh b3kaIYfRp7o5ExWcASOWQQ5WxbRgGFHIOE4vnVrGelyS1tzRANWKcYnUtJLMjeZhIC2g kkNN411EABFOGtfjFLXwtVHe78Q6ykU3GzmAkiFhSS5gJL8/wim+wyTNFyop9Bp0wYqi dcDA==
X-Gm-Message-State: AOAM531hjn4s4qMRyEXEuqhBIlkZ3wmixEjeWjqosv/P1WWXzJ8AUGIN tbi5/+v7DUM3PknKUD07mzU=
X-Google-Smtp-Source: ABdhPJzV22mJQxsPq9vKgNn4YNl2yXDNe48h55+xW6Ey65I4MVw6Gdqt23ennZlkB/enTx2xXn/z4w==
X-Received: by 2002:a05:600c:3552:: with SMTP id i18mr256505wmq.90.1644496944452;  Thu, 10 Feb 2022 04:42:24 -0800 (PST)
Received: from [192.168.1.67] (25.131.146.77.rev.sfr.net. [77.146.131.25]) by smtp.googlemail.com with ESMTPSA id i15sm4035629wrf.58.2022.02.10.04.42.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Feb 2022 04:42:23 -0800 (PST)
Message-ID: <f4036e57-bb30-dab4-bbff-96b620552404@gmail.com>
Date: Thu, 10 Feb 2022 13:42:21 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1
Content-Language: en-US
To: Henk Birkholz <henk.birkholz@sit.fraunhofer.de>, cbor@ietf.org
References: <d6b31d09-86fe-534d-446d-652b8e64e751@gmail.com> <CBD0EF42-6298-4845-B9AD-A18735F8BE4D@tzi.org> <99907B71-D019-46CC-A785-907E1E9D4B6C@cursive.net> <e7e7a747-6236-171f-a5c8-5a8cfcecf27b@sit.fraunhofer.de> <8c5a4fe1-423d-9a68-3735-76ace3f27d49@gmail.com> <d1c6592e-ef23-6758-aa01-9d5891169ce7@sit.fraunhofer.de>
From: Anders Rundgren <anders.rundgren.net@gmail.com>
In-Reply-To: <d1c6592e-ef23-6758-aa01-9d5891169ce7@sit.fraunhofer.de>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/VMW5ld2zZafRAzSap_quip2SQJ0>
Subject: Re: [Cbor] Typed CBOR Objects
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 10 Feb 2022 12:42:32 -0000

On 2022-02-10 12:21, Henk Birkholz wrote:
> I can see your point. I hesitated for a second, but posted anyways :-)
> And you are not being rude, you called me out and I am... kinda guilty
> as charged.
> Still, this reflects my opinion as a contributor.

Hi Henk,
No problems, all is good :)

If we take EAT which served as an "inspiration", EAT typing is currently
a mixed bag including:

- Specific CBOR tags

- Specific media types (TBD)

- Parameterized media types (TBD):
    https://github.com/ietf-rats-wg/eat/issues/157

- URL/OID based profile info(!):
    https://datatracker.ietf.org/doc/html/draft-ietf-rats-eat-11#section-3.18

Although each developer with some self-esteem consider their applications as
unique and therefore motivate equally unique solutions, I see that as problem
even for my own designs which target Open Banking & payment systems.

The (apparently naîve idea...) was that there could be classes of
applications which could benefit from something along the lines of
https://datatracker.ietf.org/doc/draft-ietf-cbor-file-magic/
but using decentralized URLs instead of registered CBOR tags.

That's all. Well, not really, there is this nagging media type thing as well...

I'm not in any way proposing that consuming applications should download
specifications (even if expressed in a schema).  What I do think is reasonable
is declaring what kind of schema data is associated with and letting
consuming applications kindly report if they don't understand the particular
dialect.  This is an alternative to current Open Banking system which
typically return 500 server error when something is wrong. Armed with
discovery services you can combine robustness with agility which becomes
an issue when the numbers of consuming application entities exceed 100,000
and there is no centralized software certification in place, not to mention
the fact that these systems often are updated at least once a year.

Cheers,
Anders

> 
> On 10.02.22 11:05, Anders Rundgren wrote:
>> On 2022-02-10 10:45, Henk Birkholz wrote:
>>> +1++
>>
>> Henk, I don't want to rude, but maybe you should hold your dismissals
>> until EAT have resolved their typing issues?
>> We are still waiting :)
>>
>> Cheers,
>> Anders
>>
>>>
>>> On 10.02.22 07:43, Joe Hildebrand wrote:
>>>> Agree with Carsten.
>>>>
>>>> Additionally, if you insist on repeating XML's mistakes, can you at
>>>> least make sure that you don't repeat some of the worst consequences
>>>> of those mistakes?  URLs are an attractive nuisance for these
>>>> identifiers, since naively-written processors tend to retrieve those
>>>> URLs drastically more frequently than anyone imagined, thinking that
>>>> they might contain computer-parseable schema information -- which
>>>> turns out not to mostly never work.
>>>>
>>>> If you must have unique identifiers that are easy to mint without a
>>>> new central registry, ask for a non-resolving URI, and make all of
>>>> your examples use RFC 4151 tag: URIs or something that has similar
>>>> properties.
>>>>
>>>> (Note: RFC 4151 is Informational, but useful.  Careful use of a new
>>>> URN space might work, if you must.)
>>>>
>>>> —
>>>> Joe Hildebrand
>>>>
>>>>> On Feb 9, 2022, at 11:20 PM, Carsten Bormann <cabo@tzi.org> wrote:
>>>>>
>>>>> Of course, you can add an indirection, but the most direct way to
>>>>> indicate a new specific data model is a tag.
>>>>> In essence, your TBD211 is exactly that; you have just chosen to add
>>>>> a parameter in the form of a URL or an OID (which is pretty much
>>>>> what you argue AGAINST in the last section…).
>>>>>
>>>>> I’d rather allocate a tag for each specific data model.
>>>>>
>>>>> Grüße, Carsten
>>>>>
>>>>>
>>>>>> On 10. Feb 2022, at 07:02, Anders Rundgren
>>>>>> <anders.rundgren.net@gmail.com> wrote:
>>>>>>
>>>>>> Hi List,
>>>>>>
>>>>>> As a subscriber of the RATS list I noted that I'm not alone looking
>>>>>> for a flexible and extensible way of identifying a CBOR "schema"
>>>>>> (content specification).
>>>>>> Different solutions have been suggested including parameterized
>>>>>> media-types: https://github.com/ietf-rats-wg/eat/issues/157
>>>>>>
>>>>>> Having a background in XML Schema (including WS-*) and similar
>>>>>> concepts applied to JSON, I've sketched up a counterpart for CBOR
>>>>>> that currently only exists in the form of a GitHub issue:
>>>>>> https://github.com/ietf-rats-wg/eat/issues/165
>>>>>>
>>>>>> Using URLs as type identifiers may be regarded as breaking the
>>>>>> desire keeping things nimble.  However, there are lots of possible
>>>>>> applications where a 50-byte overhead would be a no-issue.  For
>>>>>> converting JSON-based designs to CBOR, URLs are a necessity.  For
>>>>>> highly constrained environments, OIDs seems like a useful alternative.
>>>>>>
>>>>>> Feedback would be appreciated.
>>>>>>
>>>>>> Thanx,
>>>>>> Anders
>>>>>>
>>>>>> _______________________________________________
>>>>>> CBOR mailing list
>>>>>> CBOR@ietf.org
>>>>>> https://www.ietf.org/mailman/listinfo/cbor
>>>>>
>>>>> _______________________________________________
>>>>> CBOR mailing list
>>>>> CBOR@ietf.org
>>>>> https://www.ietf.org/mailman/listinfo/cbor
>>>>
>>>> _______________________________________________
>>>> CBOR mailing list
>>>> CBOR@ietf.org
>>>> https://www.ietf.org/mailman/listinfo/cbor
>>>
>>> _______________________________________________
>>> CBOR mailing list
>>> CBOR@ietf.org
>>> https://www.ietf.org/mailman/listinfo/cbor
>>


From nobody Sun Feb 13 12:55:17 2022
Return-Path: <internet-drafts@ietf.org>
X-Original-To: cbor@ietf.org
Delivered-To: cbor@ietfa.amsl.com
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id BF0783A0A83; Sun, 13 Feb 2022 12:54:40 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: internet-drafts@ietf.org
To: <i-d-announce@ietf.org>
Cc: cbor@ietf.org
X-Test-IDTracker: no
X-IETF-IDTracker: 7.44.0
Auto-Submitted: auto-generated
Precedence: bulk
Reply-To: cbor@ietf.org
Message-ID: <164478568069.12657.10527823373451391829@ietfa.amsl.com>
Date: Sun, 13 Feb 2022 12:54:40 -0800
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/kzvqqW0XhUuZdgGAcGRye8ztG_E>
Subject: [Cbor] I-D Action: draft-ietf-cbor-packed-04.txt
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 13 Feb 2022 20:54:41 -0000

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Concise Binary Object Representation Maintenance and Extensions WG of the IETF.

        Title           : Packed CBOR
        Author          : Carsten Bormann
	Filename        : draft-ietf-cbor-packed-04.txt
	Pages           : 18
	Date            : 2022-02-13

Abstract:
   The Concise Binary Object Representation (CBOR, RFC 8949) is a data
   format whose design goals include the possibility of extremely small
   code size, fairly small message size, and extensibility without the
   need for version negotiation.

   CBOR does not provide any forms of data compression.  CBOR data
   items, in particular when generated from legacy data models often
   allow considerable gains in compactness when applying data
   compression.  While traditional data compression techniques such as
   DEFLATE (RFC 1951) can work well for CBOR encoded data items, their
   disadvantage is that the receiver needs to unpack the compressed form
   to make use of data.

   This specification describes Packed CBOR, a simple transformation of
   a CBOR data item into another CBOR data item that is almost as easy
   to consume as the original CBOR data item.  A separate decompression
   step is therefore often not required at the receiver.


The IETF datatracker status page for this draft is:
https://datatracker.ietf.org/doc/draft-ietf-cbor-packed/

There is also an HTML version available at:
https://www.ietf.org/archive/id/draft-ietf-cbor-packed-04.html

A diff from the previous version is available at:
https://www.ietf.org/rfcdiff?url2=draft-ietf-cbor-packed-04


Internet-Drafts are also available by rsync at rsync.ietf.org::internet-drafts



From nobody Sun Feb 13 12:57:33 2022
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 D234B3A0A83 for <cbor@ietfa.amsl.com>; Sun, 13 Feb 2022 12:57:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gqqRdj0bJ_A8 for <cbor@ietfa.amsl.com>; Sun, 13 Feb 2022 12:57:28 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [IPv6:2001:638:708:32::15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 402903A0A81 for <cbor@ietf.org>; Sun, 13 Feb 2022 12:57:28 -0800 (PST)
Received: from [192.168.217.118] (p5089ad4f.dip0.t-ipconnect.de [80.137.173.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4Jxfmz4y9LzDCbR; Sun, 13 Feb 2022 21:57:23 +0100 (CET)
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: <164478568069.12657.10527823373451391829@ietfa.amsl.com>
Date: Sun, 13 Feb 2022 21:57:23 +0100
X-Mao-Original-Outgoing-Id: 666478643.242404-fe42f87a0561c26e500ee8d666245589
Content-Transfer-Encoding: quoted-printable
Message-Id: <D43BEB72-F2D6-4420-A6CD-A0979BBB8E3D@tzi.org>
References: <164478568069.12657.10527823373451391829@ietfa.amsl.com>
To: cbor@ietf.org
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/1jC-Vhk1VZ1dyB5967OWqaQEvbg>
Subject: Re: [Cbor] I-D Action: draft-ietf-cbor-packed-04.txt
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 13 Feb 2022 20:57:31 -0000

cbor-packed would have expired tomorrow, so I made a -04 with the =
various small edits that have accrued since -03.  As you know, we are =
collecting further implementation experience at this point, going =
forward once enough such experience is available.

Apart from the implementation work, further editorial work is needed in =
the introduction.  We also probably want to provide recipes (and =
examples?) for defining application-specific Table Setup tags.

Gr=C3=BC=C3=9Fe, Carsten


> On 2022-02-13, at 21:54, internet-drafts@ietf.org wrote:
>=20
>=20
> A New Internet-Draft is available from the on-line Internet-Drafts =
directories.
> This draft is a work item of the Concise Binary Object Representation =
Maintenance and Extensions WG of the IETF.
>=20
>        Title           : Packed CBOR
>        Author          : Carsten Bormann
> 	Filename        : draft-ietf-cbor-packed-04.txt
> 	Pages           : 18
> 	Date            : 2022-02-13
>=20
> Abstract:
>   The Concise Binary Object Representation (CBOR, RFC 8949) is a data
>   format whose design goals include the possibility of extremely small
>   code size, fairly small message size, and extensibility without the
>   need for version negotiation.
>=20
>   CBOR does not provide any forms of data compression.  CBOR data
>   items, in particular when generated from legacy data models often
>   allow considerable gains in compactness when applying data
>   compression.  While traditional data compression techniques such as
>   DEFLATE (RFC 1951) can work well for CBOR encoded data items, their
>   disadvantage is that the receiver needs to unpack the compressed =
form
>   to make use of data.
>=20
>   This specification describes Packed CBOR, a simple transformation of
>   a CBOR data item into another CBOR data item that is almost as easy
>   to consume as the original CBOR data item.  A separate decompression
>   step is therefore often not required at the receiver.
>=20
>=20
> The IETF datatracker status page for this draft is:
> https://datatracker.ietf.org/doc/draft-ietf-cbor-packed/
>=20
> There is also an HTML version available at:
> https://www.ietf.org/archive/id/draft-ietf-cbor-packed-04.html
>=20
> A diff from the previous version is available at:
> https://www.ietf.org/rfcdiff?url2=3Ddraft-ietf-cbor-packed-04
>=20
>=20
> Internet-Drafts are also available by rsync at =
rsync.ietf.org::internet-drafts
>=20
>=20
> _______________________________________________
> I-D-Announce mailing list
> I-D-Announce@ietf.org
> https://www.ietf.org/mailman/listinfo/i-d-announce
> Internet-Draft directories: http://www.ietf.org/shadow.html
> or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


From nobody Fri Feb 18 15:41:34 2022
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 B63CE3A13A5; Fri, 18 Feb 2022 15:41:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0GcYhwlygO_V; Fri, 18 Feb 2022 15:41:11 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [134.102.50.15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F2F813A13A3; Fri, 18 Feb 2022 15:41:08 -0800 (PST)
Received: from client-0015.vpn.uni-bremen.de (client-0015.vpn.uni-bremen.de [134.102.107.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4K0p9Y6ymhzDCbb; Sat, 19 Feb 2022 00:41:05 +0100 (CET)
From: Carsten Bormann <cabo@tzi.org>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Mao-Original-Outgoing-Id: 666920465.195914-c9fda2bea1eb16ac828ae183f222b4d5
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
Date: Sat, 19 Feb 2022 00:41:05 +0100
Message-Id: <8441FB7C-7D73-4CB6-9D7A-EB60194309C8@tzi.org>
To: ace@ietf.org, "core@ietf.org WG (core@ietf.org)" <core@ietf.org>, cose <cose@ietf.org>, cbor@ietf.org, t2trg@irtf.org
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/qO0_VAslJKDjlf60i4lXAS8-u6w>
Subject: [Cbor] Constrained Node/Network Cluster @ IETF113: DRAFT AGENDA
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 18 Feb 2022 23:41:15 -0000

Here is my usual eclectic condensed agenda based on the DRAFT AGENDA
for IETF113.  Remember that there is still quite some potential for
changes.

The IoT-relevant conflicts that most meet the eye this time are
LPWAN/ACE (probably little actual overlap) and DRIP/ROLL/RATS
(probably a little more overlap, but not that much).
CFRG and ICNRG are the only RGs not on top of IoT meetings (T2TRG,
like e.g. CBOR and JSONPATH, decided to go for interims instead).

All times are in UTC.

Note that the third and fourth weeks in March (W11 =3D pre-IETF week,
W12 =3D IETF week) are Weeks of Confusion, where DST has not yet started
in Europe but did already start in North America.
https://datatracker.ietf.org/meeting/agenda-utc might be handy.

Gr=C3=BC=C3=9Fe, Carsten


SATURDAY, March 19, 2022

0830-2000  Hackathon - Grand Klimt Hall 1/2
0930-1000  Hackathon Kickoff - Grand Klimt Hall 1/2

SUNDAY, March 20, 2022

0830-1500  Hackathon - Grand Klimt Hall 1/2
(0900-1700  IETF Registration - Park Ensemble)
1300-1500  Hackathon Results Presentations - Grand Klimt Hall 1/2
(1600-1800  Welcome Reception - Grand Park Hall 1/2/3)

MONDAY, March 21, 2022

0900-1100  Morning Session I
G Park Hall 3	ART	dispatch	Dispatch WG - Joint with ARTAREA
G Park Hall 1	OPS	v6ops	IPv6 Operations WG
G Klimt Hall 2	RTG	raw	Reliable and Available Wireless WG
G Park Hall 2	SEC	dance	DANE Authentication for Network Clients =
Everywhere WG
Park Suite 3	SEC ***	teep	Trusted Execution Environment =
Provisioning WG

1200-1300  Afternoon session I
Park Suite 8	ART	sedate	Serialising Extended Data About Times =
and Events WG
G Park Hall 2	IRTF	pearg	Privacy Enhancements and Assessments =
Research Group
Park Suite 3	SEC	acme	Automated Certificate Management =
Environment WG
Park Suite 9	SEC ***	cose	CBOR Object Signing and Encryption WG
G Park Hall 3	TSV	tsvwg	Transport Area Working Group WG

1330-1530  Afternoon Session II
G Klimt Hall 2	SEC ***	lake	Lightweight Authenticated Key Exchange =
WG
Park Suite 8	SEC	oauth	Web Authorization Protocol WG
G Park Hall 1	TSV	masque	Multiplexed Application Substrate over =
QUIC Encryption WG

TUESDAY, March 22, 2022

0900-1100  Morning Session I
Park Suite 9	INT	6man	IPv6 Maintenance WG
G Park Hall 1	RTG	can	Computing-Aware Networking BOF
Park Suite 3	SEC ***	rats	Remote ATtestation ProcedureS WG
G Park Hall 3	TSV	quic	QUIC WG

1200-1300  Afternoon session I
G Park Hall 2	INT ***	lpwan	IPv6 over Low Power Wide-Area Networks =
WG
G Park Hall 1	IRTF	qirg	Quantum Internet Research Group
Park Suite 3	SEC ***	ace	Authentication and Authorization for =
Constrained Environments WG
Park Suite 8	SEC	emu	EAP Method Update WG
Park Suite 9	TSV	tsvarea	Transport Area Open Meeting

1330-1530  Afternoon Session II
G Park Hall 1	ART	httpapi	Building Blocks for HTTP APIs WG
Park Suite 8	INT	intarea	Internet Area Working Group WG
G Park Hall 2	IRTF	irtfopen	IRTF Open Meeting
Park Suite 9	RTG	detnet	Deterministic Networking WG
G Park Hall 3	SEC	secdispatch	Security Dispatch WG

WEDNESDAY, March 23, 2022

0900-1100  Morning Session I
G Klimt Hall 2	ART	moq	Media Over QUIC BOF
Park Suite 8	INT ***	6lo	IPv6 over Networks of =
Resource-constrained Nodes WG
Park Suite 9	IRTF	maprg	Measurement and Analysis for Protocols
G Park Hall 2	RTG	rtgarea	Routing Area Open Meeting
G Park Hall 3	SEC	tls	Transport Layer Security WG

1200-1300  Afternoon session I
Park Suite 2	ART	mediaman	Media Type Maintenance WG
G Park Hall 1	INT ***	drip	Drone Remote ID Protocol WG
Park Suite 8	RTG ***	roll	Routing Over Low power and Lossy =
networks WG
Park Suite 3	SEC	mls	Messaging Layer Security WG
G Park Hall 3	SEC ***	rats	Remote ATtestation ProcedureS WG
G Park Hall 2	TSV	taps	Transport Services WG

1330-1530  Afternoon Session II
Park Suite 3	RTG	bier	Bit Indexed Explicit Replication WG

1600-1800  IETF Plenary - Grand Park Hall 1-3

THURSDAY, March 24, 2022

0900-1100  Morning Session I
G Park Hall 1	INT	savnet	Source Address Validation in =
Intra-domain and Inter-domain Networks BOF
G Park Hall 2	IRTF	coinrg	Computing in the Network Research Group
Park Suite 9	OPS ***	iotops	IOT Operations WG
G Park Hall 3	SEC	saag	Security Area Open Meeting

1200-1300  Afternoon session I
G Park Hall 3	INT	madinas	MAC Address Device Identification for =
Network and Application Services WG
G Klimt Hall 2	IRTF	panrg	Path Aware Networking RG
Park Suite 8	RTG	rift	Routing In Fat Trees WG
Park Suite 3	SEC	privacypass	Privacy Pass WG
G Park Hall 2	SEC ***	suit	Software Updates for Internet of Things =
WG

1330-1530  Afternoon Session II
G Klimt Hall 2	ART	webtrans	WebTransport WG
G Park Hall 3	IRTF	cfrg	Crypto Forum
Park Suite 2	SEC	oauth	Web Authorization Protocol WG

FRIDAY, March 25, 2022

0900-1100  Morning Session I
G Klimt Hall 2	ART ***	core	Constrained RESTful Environments WG
G Park Hall 3	INT	add	Adaptive DNS Discovery WG
G Park Hall 2	SEC	gnap	Grant Negotiation and Authorization =
Protocol WG
Park Suite 8	SEC	openpgp	Open Specification for Pretty Good =
Privacy WG

1130-1330  Afternoon Session I
Park Suite 3	IRTF	icnrg	Information-Centric Networking
G Klimt Hall 2	OPS	anima	Autonomic Networking Integrated Model =
and Approach WG
G Park Hall 3	TSV	tsvwg	Transport Area Working Group WG

(### DST STARTS IN EUROPE ON SUNDAY ###)


From nobody Mon Feb 21 23:35:02 2022
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 D00F03A12C6 for <cbor@ietfa.amsl.com>; Mon, 21 Feb 2022 23:35:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.877
X-Spam-Level: 
X-Spam-Status: No, score=-0.877 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, MISSING_HEADERS=1.021, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Hw9H3TrzWBRM for <cbor@ietfa.amsl.com>; Mon, 21 Feb 2022 23:34:56 -0800 (PST)
Received: from smtp.akis.at (smtp.akis.at [IPv6:2a02:b18:500:a515::f455]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9AD243A0484 for <cbor@ietf.org>; Mon, 21 Feb 2022 23:34:54 -0800 (PST)
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 21M7Yohv095128 (version=TLSv1.2 cipher=ECDHE-ECDSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <cbor@ietf.org>; Tue, 22 Feb 2022 08:34:51 +0100 (CET) (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 (hermes.amsuess.com [10.13.13.254]) by poseidon-mailhub.amsuess.com (Postfix) with ESMTP id 8E1E3D0 for <cbor@ietf.org>; Tue, 22 Feb 2022 08:34:49 +0100 (CET)
Received: from hephaistos.amsuess.com (unknown [IPv6:2a02:b18:c13b:8010:122:e047:8125:cf6f]) by poseidon-mailbox.amsuess.com (Postfix) with ESMTPSA id 3B9237F for <cbor@ietf.org>; Tue, 22 Feb 2022 08:34:49 +0100 (CET)
Received: (nullmailer pid 2284167 invoked by uid 1000); Tue, 22 Feb 2022 07:34:48 -0000
Date: Tue, 22 Feb 2022 08:34:48 +0100
From: Christian =?iso-8859-1?Q?Ams=FCss?= <christian@amsuess.com>
Cc: cbor@ietf.org
Message-ID: <YhSSGFrvUmZgEznl@hephaistos.amsuess.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="6FUdOGH1PdFxUaGe"
Content-Disposition: inline
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/FTpCFrAWpLTLsuG1lhcqAmlPkHk>
Subject: [Cbor] Reminder: CBOR WG Virtual Meeting on 2022-02-23
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Tue, 22 Feb 2022 07:35:01 -0000

--6FUdOGH1PdFxUaGe
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Reminder:
The next CBOR WG Virtual Meeting is this Wednesday, 23 Feb, at 15:00
UTC.  Information for this meeting is here:

Datatracker: https://datatracker.ietf.org/meeting/interim-2022-cbor-04/session/cbor
Notes: https://notes.ietf.org/notes-ietf-interim-2022-cbor-04-cbor
Meetecho: https://meetings.conf.meetecho.com/interim/?short=9d38d4c9-cf9e-48c3-bc25-97b025698ec0

Nothing has been placed on the agenda so far; if you want to discuss
something, please place it in the notes soon to allow other participants
to come with some preparation.

See you tomorrow
Christian

--6FUdOGH1PdFxUaGe
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEECM1tElX6OodcH7CWOY0REtOkveEFAmIUkhUACgkQOY0REtOk
veGneQ//SMheqRykh+Y1HRHqoBXgsO6kT3m+EOSM6rFLw/qyQPCnpyNjh6GY/S69
zxW5N9BMq6DnVoXJLaof2n931AIJSFZQDaLPUJpnX4zuFwYevMwujhRgqWDcAt4s
MZceOR9ZDuaYr1PDlaCrUaK9/4pEh0/uv62dA58y3KdEARjTqNY91FZANEQm8nK4
m4nOI7sbYkA2GcL1p6JVSj+AGthwDE6pf4Atds55Bm4zYp2PDmMh76YjpKEXVXqb
iRk5nBbC7fwh8RhmC1HTgr3Dd9gWqdf232w+tpC9qqaRDgBB3+g33Y9fl4WS7qHf
gAefQ4ZFGWNImyYFOZ+g5oQrm0hkiJuX3LD+A/zL1WlNjmS1Ry4eAWsaIiFBbTfe
ifWGyk5eQSl7jtoRiYTRoSjVa+XDZ7U+csrl3LFtmmM4gcJn9OfcAyfjkTuxZS5J
vrOdZtxwAIraYv2Nxq1vDqB8HeNmpbYUenC8x9Ga80tYuR63nu/q8tE/ciy7XMcT
fxHun6pXtMV/neUJNvk9pMh/B2LI3U52cK8c/g7+XYhBAl2MjJi0XH0SkKWhqXrY
C/1P5awvJlJxX849G64SZGAEKiAoY6pW+mO/5gQx55seBb85lS4pYgIOk7k5/g5N
cRlqNQsnEYAX8NZTzcHeypHOORj7Sbvk0/wwzW/od3wu0aDiCK4=
=NYIl
-----END PGP SIGNATURE-----

--6FUdOGH1PdFxUaGe--


From nobody Tue Feb 22 05:20:02 2022
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 F01713A1144; Tue, 22 Feb 2022 05:19:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NNpJGET0jXUk; Tue, 22 Feb 2022 05:19:57 -0800 (PST)
Received: from smtp.akis.at (smtp.akis.at [IPv6:2a02:b18:500:a515::f455]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3D72A3A1111; Tue, 22 Feb 2022 05:19:53 -0800 (PST)
Received: from poseidon-mailhub.amsuess.com ([IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bd]) by smtp.akis.at (8.17.1/8.17.1) with ESMTPS id 21MDJnhp021872 (version=TLSv1.2 cipher=ECDHE-ECDSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 22 Feb 2022 14:19:49 +0100 (CET) (envelope-from christian@amsuess.com)
X-Authentication-Warning: smtp.akis.at: Host [IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bd] claimed to be poseidon-mailhub.amsuess.com
Received: from poseidon-mailbox.amsuess.com (poseidon-mailbox.amsuess.com [IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bf]) by poseidon-mailhub.amsuess.com (Postfix) with ESMTP id D50D9D0; Tue, 22 Feb 2022 14:19:44 +0100 (CET)
Received: from hephaistos.amsuess.com (unknown [IPv6:2a02:b18:c13b:8010:1265:3876:e1a7:3255]) by poseidon-mailbox.amsuess.com (Postfix) with ESMTPSA id 8C00CFD; Tue, 22 Feb 2022 14:19:44 +0100 (CET)
Received: (nullmailer pid 2340629 invoked by uid 1000); Tue, 22 Feb 2022 13:19:42 -0000
Date: Tue, 22 Feb 2022 14:19:42 +0100
From: Christian =?iso-8859-1?Q?Ams=FCss?= <christian@amsuess.com>
To: cbor@ietf.org, draft-ietf-cbor-file-magic@ietf.org
Message-ID: <YhTi7sT7O7xzjLQz@hephaistos.amsuess.com>
References: <164442074235.12313.4216473952031101282@ietfa.amsl.com> <YgPhxUmjDUqLTEtK@hephaistos.amsuess.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="V8NftRhNogJDrt8M"
Content-Disposition: inline
In-Reply-To: <YgPhxUmjDUqLTEtK@hephaistos.amsuess.com>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/uexP6LocK-SBe5jGQp2HkdXcaZM>
Subject: [Cbor] Chair review of cbor-file-magic 08
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Tue, 22 Feb 2022 13:20:00 -0000

--V8NftRhNogJDrt8M
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello file-magic authors,

as part of my shepherd write-up I'm reviewing the altest file-magic
document as it is passing working group last call. All these comments
are (presumably) editorial in nature and do not alter that outcome.

* "for each major type of object that they might store on disk": It is
  not used as a proper name, but "major type" might ring the bell of
  "first 3 bits" of CBOR, which AIU is not intended here.

  (Suggestion: "for each kind of object that they might store on disk").

* 5.3: At latest here, I'd have expected to read something about the
  information that is lost when using this tag with 2.2. Maybe there
  should be a line (not for IANA but for users, so maybe in a different
  section) that outlines when this works with (non)CBOR content formats
  and with which encodings.

  I think I understand now that the 5.3 tags can be used with either
  2.2, 2.3 or C (55899, 55800 and 55801), but

  * with 55899 the ct tags can only be used if the content format is a
    CBOR content format and coding is identity (and then tags a value)
  * with 55900 the ct tags can only be used if the content format is a
    CBOR-sequence content format and coding is identity (and then tags
    a byte string)
  * with 55901 the ct tags can always be used, and tag a byte string
    (which is also encoded according to the coding that is part of the
    ct)

  If all these should be allowed, I think this should be spelled out
  somewhere -- otherwise the examples appear to be conflicting.

* (Maybe security) considerations: 3.2 talks of trivially concatenated
  data items. If CBOR Tag Sequence is used and the data gets literally
  "concatenated", (say, `cat *.cborseq > outfile`), one might wind up
  with self-described tags in the middle of the sequence. (As we do
  with BOMs).

  Have BOMs caused issues in the past? If so, would you care for grave
  words we can haul against those who repeat inner-BOMs with CBOR?

* A.1: This appears to be in direct conflict with the 2.2.1 example
  (where the same tag is used with a non-bstr content). By the above the
  limitation to bstr may still make sense, but only in the context of a
  55800 or 55801 tag (but there, the tagged value is always not only
  bstr but even precisely 'BOR'). Maybe the example would be clearer if
  it would reference one of 2.2, 2.3 and appendix C.

Best regards
Christian

--=20
To use raw power is to make yourself infinitely vulnerable to greater power=
s.
  -- Bene Gesserit axiom

--V8NftRhNogJDrt8M
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEECM1tElX6OodcH7CWOY0REtOkveEFAmIU4usACgkQOY0REtOk
veEYuw//Q/g5yw/B3ETcGaAtZ5EFn42WCl16LWnTiGc6ktTj2hK9sLO+EsTtNLNd
hpg7YKPLFtQxILlvRHJG3iLah+CjiUK1sSFaabgAm6OZN+/BcYOlwjHTh5ekl0V5
WuS8NA8nb0FFjggy2rOQf5ErBc73CyU7/X54BZ/VOQE2eqgHJmuLs9rd35UhuwxX
2TfhtZQjd9EDFJNZFGvbE8L700yLxlyBk/IqLWQLUKz900Jut9sQe2RVBaX33Iu4
nhZp2rCMnTfuQq6Cje3WntUfFOV8di6JSeBRDic4hgQit9zYvUpQNqkkTu/2veLL
ElsFlPeTODzIA1XTQWYkDjIW1VuSO6/YZNszJV5vD5NKcxtNM5VIxF1IBSrN0lJT
WLt+uVwn8h5rd7zz35SxJy/tfvOPA+i5WSPLhyuo+sI7V7SyDxl/H7jsLdTWeycY
ZfwZoHSHN7YIRP9XqZpVkX+KrOGcLLwR5RKc2O4rF5gJnwq/6bBU6v6y1n8Q8RGL
RIi2TMnYVNZqF8m8bdBs0JRQrnfqaL3dseoK9wAUFr8VDqI00oWaSzx2YGnXvvHV
3RDsYZJ0peIKfw9bhkMiYY92xx1hyA9vfGGAxDMMcGZAv23rxxpRh//sgUvGydHN
2e9Gi7Mc+PzUpcxTcWe+J9KEBRfS3nA4UQUrGt+Kwa52A57K5Xk=
=yOBJ
-----END PGP SIGNATURE-----

--V8NftRhNogJDrt8M--


From nobody Wed Feb 23 05:16:24 2022
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 B8CC33A0D1E for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 05:16:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aJzlTCvMVsNA for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 05:16:18 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [IPv6:2001:638:708:32::15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 102C93A0D1C for <cbor@ietf.org>; Wed, 23 Feb 2022 05:16:18 -0800 (PST)
Received: from [192.168.217.118] (p5089ad4f.dip0.t-ipconnect.de [80.137.173.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4K3c4G3j9rzDCbf; Wed, 23 Feb 2022 14:16:14 +0100 (CET)
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: <CAKoRMYF_19V6mu4S9GVqfiNzyQVvvOzX6eYwHp_DtZQoG0xTKg@mail.gmail.com>
Date: Wed, 23 Feb 2022 14:16:14 +0100
Cc: Alexander Byaly <alexander.byaly@iohk.io>, Jared Corduan <jared.corduan@iohk.io>
X-Mao-Original-Outgoing-Id: 667314974.005811-920f158b399ee926fc2e9c6f33a4da83
Content-Transfer-Encoding: quoted-printable
Message-Id: <4B47F4D7-ADE3-4A22-8A5B-97F4E5FCD933@tzi.org>
References: <9300a81abc33a45a9f3c7c1c62da88908280e54a.camel@well-typed.com> <1D3EF118-0223-43BC-81B2-369D4515DB21@tzi.org> <1ce2c092d3214d5fdce59435fc10b084c1ba48ca.camel@well-typed.com> <DFCBE61C-35B2-42A2-8D1A-A633CF939154@tzi.org> <2e10456c5791a422bf7218e7b84051f2b7121b66.camel@well-typed.com> <CAKoRMYGcwrhVWd-J3dX75WZfc+T_oyb6NCUNaeCXMW5_-VYdTw@mail.gmail.com> <52EDB93C-827A-465F-B644-51B3EF590D06@tzi.org> <C9D895BB-40E6-431F-958F-AC031DE4FB58@tzi.org> <CAKoRMYG9X0JF4ehkMc30_UNi0JtT2YMeG4RgxznS6O3Di6pkRA@mail.gmail.com> <CAKoRMYHwewaYxkX=CsfETBbdV7c9U97jfbd9xg=PyrMX5vJhnA@mail.gmail.com> <3B3B7EF0-152B-4015-8485-B204F7AEFFBC@tzi.org> <CAKoRMYFbEG=TkuZPPOiXv2DjEh23Ujd_Q44kQqiWPGc_0GMTuQ@mail.gmail.com> <CAKoRMYHnF6fGJp1dTrJnRHFTBOhreLRwzR_=cCckW1nBXOEz0A@mail.gmail.com> <E8A9E016-2248-4BB9-9864-C6C7D52A4AE5@tzi.org> <CAKoRMYE+gmWyCL9zYDa-O-c3KV_iuzgYuS+Q4fi=U7VHDNDtkQ@mail.gmail.com> <CAKoRMYFdAr1YY3mtmY0NU5X9Bk8_4WYh7bC0CtXpZc3toLSu8g@mail.gmail.com> <7FA54553-5421-4C45-B7DD-E9B2D379F46F@tzi.org> <CAKoRMYH3MTMi_tX5KHF-O-DTKzopiGqe3fi6XjkPaGCM4823OQ@mail.gmail.com> <7dfd62ccb6c089af90c90f26a8945f23232ecbc1.camel@well-typed.com> <CAKoRMYEOo1Gqfc4W4k3NOLKpFa97Q9YzLCm3r0PJ13V2HJPf3A@mail.gmail.com> <2BBF6463-FDB2-4A8A-B20D-7A1AD976A90D@tzi.org> <CAKoRMYFi8uo2GfHA9s1n+-rMO8Ja9=2qMMzjS9Z=F9r3LFozRQ@mail.gmail.com> <8EA89504-C176-4850-9BB8-C7E7206374FF@tzi.org> <CAKoRMYGmOa0hzEFsJh8kpz0bU5x56Yc9P=DBK-ghU83gXxPv7A@mail.gmail.com> <CAKoRMYGUvmxufQUVyvX2mciq5LCmV0Nz-uE2MJn54GDBB+9DRw@mail.gmail.com> <CAKoRMYF_19V6mu4S9GVqfiNzyQVvvOzX6eYwHp_DtZQoG0xTKg@mail.gmail.com>
To: Michael Peyton Jones <michael.peyton-jones@iohk.io>, Duncan Coutts <duncan@well-typed.com>, cbor@ietf.org
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/PI8pYoK9wdBUpOo_I964vWZg89Q>
Subject: Re: [Cbor] A CBOR tag for alternatives/unions, request for comments
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 23 Feb 2022 13:16:23 -0000

I finally got around to integrate the proposal by Duncan Coutts and =
Michael Peyton Jones to allocate tags for enumerated alternative data =
items into notable-tags.

=
https://www.ietf.org/archive/id/draft-bormann-cbor-notable-tags-06.html#na=
me-enumerated-alternative-data

I took the liberty to suggest tag 101 (=E2=80=98e=E2=80=99) for the =
extended case.
I also made the cases non-overlapping, as this simplifies deterministic =
encoding (and interop testing in general).

Current state of tag allocation:
range  used     %                 free                total
0 1+0    12 50.00                   12                   24
1 1+1    62 26.72                  170                  232
2 1+2    45  0.07                65235                65280
3 1+4     3  0.00           4294901757           4294901760
4 1+8     2  0.00 18446744069414584318 18446744069414584320

If we have time in the CBOR meeting today (very likely) and you have =
time and comments, we could complete the discussion and ask IANA to =
register.

Coordinates of the CBOR meeting are below.
You=E2=80=99ll need an IETF datatracker account to participate; you can =
do that here:

https://datatracker.ietf.org/accounts/create/

I=E2=80=99m out of English words to apologize for my tardy treatment of =
this matter (and for the late notice of the meeting in 100 minutes).

Gr=C3=BC=C3=9Fe, Carsten


The next CBOR WG Virtual Meeting is this Wednesday, 23 Feb, at 15:00
UTC.  Information for this meeting is here:

Datatracker: =
https://datatracker.ietf.org/meeting/interim-2022-cbor-04/session/cbor
Notes: https://notes.ietf.org/notes-ietf-interim-2022-cbor-04-cbor
Meetecho: =
https://meetings.conf.meetecho.com/interim/?short=3D9d38d4c9-cf9e-48c3-bc2=
5-97b025698ec0



From nobody Wed Feb 23 05:54:33 2022
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 2B1033A0D8F for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 05:54:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7ZajDqeCqxDo for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 05:54:28 -0800 (PST)
Received: from smtp.akis.at (smtp.akis.at [IPv6:2a02:b18:500:a515::f455]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 30FC13A0D94 for <cbor@ietf.org>; Wed, 23 Feb 2022 05:54:26 -0800 (PST)
Received: from poseidon-mailhub.amsuess.com ([IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bd]) by smtp.akis.at (8.17.1/8.17.1) with ESMTPS id 21NDsMFN029776 (version=TLSv1.2 cipher=ECDHE-ECDSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 23 Feb 2022 14:54:23 +0100 (CET) (envelope-from christian@amsuess.com)
X-Authentication-Warning: smtp.akis.at: Host [IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bd] claimed to be poseidon-mailhub.amsuess.com
Received: from poseidon-mailbox.amsuess.com (poseidon-mailbox.amsuess.com [IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bf]) by poseidon-mailhub.amsuess.com (Postfix) with ESMTP id 19544D0; Wed, 23 Feb 2022 14:54:22 +0100 (CET)
Received: from hephaistos.amsuess.com (unknown [IPv6:2a02:b18:c13b:8010:eee:cb75:437c:d6a4]) by poseidon-mailbox.amsuess.com (Postfix) with ESMTPSA id D3FEDFD; Wed, 23 Feb 2022 14:54:21 +0100 (CET)
Received: (nullmailer pid 694224 invoked by uid 1000); Wed, 23 Feb 2022 13:54:21 -0000
Date: Wed, 23 Feb 2022 14:54:21 +0100
From: Christian =?iso-8859-1?Q?Ams=FCss?= <christian@amsuess.com>
To: Carsten Bormann <cabo@tzi.org>
Cc: Michael Richardson <mcr+ietf@sandelman.ca>, cbor@ietf.org
Message-ID: <YhY8jT6/APLawwBF@hephaistos.amsuess.com>
References: <289545.1643998363@dooku> <982B35D9-8541-4AB6-88DE-55018DB5BB6B@tzi.org> <27168.1644006597@localhost> <D6BA4596-C08F-4CDF-AEB4-20C264D3BB34@tzi.org> <YgO2eOiH5gMdwSGd@hephaistos.amsuess.com> <13A46D26-E131-42C8-B325-C57857246699@tzi.org>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Kp5P56Bz8s3g3c4A"
Content-Disposition: inline
In-Reply-To: <13A46D26-E131-42C8-B325-C57857246699@tzi.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/IaQJmU9p6Pn6hEJqxCMBMyW7bns>
Subject: Re: [Cbor] eliding CBOR diagnostic notation binary contents
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 23 Feb 2022 13:54:31 -0000

--Kp5P56Bz8s3g3c4A
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

> On one hand, one wants to use dt=E2=80=992022-02-09T15:00Z=E2=80=99 to be=
 processed as
> a number 1644418800.  On the other hand, when showing CBOR, 1644418800
> is not detectable as something that should be shown as
> dt=E2=80=992022-02-09T15:00Z=E2=80=99 =E2=80=94 there would need to be an=
 annotation that
> makes the diagnostic writer do so, and maybe we indeed need tags for
> annotations .

A particular reason why I'd consider tags for EDN (strawman: the pair
#6.88889([tstr, any]), eg. 88889("dt", 1644418800), and #6.88887([tstr,
tstr]), eg. 88887("dt", "2022-02-09T15:00Z")) useful is that while there
are many tools for working with CBOR, there are few for working with
diagnostic notation.

The tags could thus be used by application specific CBOR tools (which
would *know* which data items are best represented how) to embellish
CBOR before it gets sent to a more generic cbor2diag tool.

In the opposite direction, the tagged form (esp. the tstr/tstr one) be
a tool usable by the developers of application extensions to experiment
with the literal conversion without any of the few (AFAIK: single)
diag2cbor tools picking up that particular application-extension.

> [on EDN] (which, in some cases, would however need to be presented as
> a tag when they themselves are the subject of diagnostics)
>
> [on elision] Except when you actually want to look at the tag in detail=
=E2=80=A6

I'd assume that both cases can be handled under the same set of
switches; something like `--debug-edn` would both leave tag 888 be and
show 88887 / 88889 as the tags they are, whereas the default would be to
pretty-print them.

BR
c

--=20
To use raw power is to make yourself infinitely vulnerable to greater power=
s.
  -- Bene Gesserit axiom

--Kp5P56Bz8s3g3c4A
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEECM1tElX6OodcH7CWOY0REtOkveEFAmIWPIoACgkQOY0REtOk
veF6XQ//dz1bL14BgEHohd379jRd8Boh1E0bIkBnk4Pm8AM18OfEytLkTdI5JVMV
HEb/Q+5RsBC4lEv0XRoHDr7RZajTQqU2qry50P/KlGzEWBEUgWZb1fJZHlP3XrbY
BRUKGg//h3kO/jzou+rEHqkArk6Xy85qPwROtk8VE0m9yvrRYHl4ZJWfuw+AcBPh
SWjXARd6kAbBRB+qDDT/VrsvmS3V1BLysdGUFKAgQ5aG14uIyR25rr0Zly2bS5GN
mOFqBBO5fSwr+OFVsmzRerH9PXclKjVwwpXz44WhZ6L3ZiJWCIB0aPZjeEYND9pD
hPDpGCMuI71v7JPBPDqTvVO6wQwFPWdi84ehU5TIqiJk8o0Ut0YJOR/PRWvzju6P
2OXcd2/IJXfYBU6L6Hh7+DuU0heHqW0Icn6FS4nu4SvyWW7C9SQajqUb/i1c+UHO
YsZy/UskVKbzDJd3+p5/GwEFh3YMekU4y5cy0LuQaKkPyNEePxw4XpRKLAjs0KJT
9dYcqcMAzTWNIR5a7yrC3T3+3DMkgqsr7O8RjGRvMOAC9Yz0gHrHTa+qvysjloxi
08o8QEOx7LiQmqKeU8G+6LQddKiihqyD+WzVZuMW1Gm0Zmu9KXBbDbuseJ4eTgX2
sMIgNIpvVkDWEgDe43EnlIfMn9dFAKByBpt5x01u+8CAJ5LjTc8=
=uyqQ
-----END PGP SIGNATURE-----

--Kp5P56Bz8s3g3c4A--


From nobody Wed Feb 23 06:13:33 2022
Return-Path: <Joerg.Richter@pdv-FS.de>
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 A4F493A0E12 for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 06:13:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Fr24pN6LOgyH for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 06:13:26 -0800 (PST)
Received: from mail.pdv-fs.de (mail.pdv-fs.de [213.208.220.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 950F63A0E40 for <cbor@ietf.org>; Wed, 23 Feb 2022 06:13:25 -0800 (PST)
Received: from mail.pdv-fs.de (unknown [192.168.180.94]) by mail.pdv-fs.de (Postfix) with ESMTPS; Wed, 23 Feb 2022 15:13:20 +0100 (CET)
Received: from EXCHDB1.pdv-fs.de (192.168.180.94) by EXCHDB1.pdv-fs.de (192.168.180.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2375.18; Wed, 23 Feb 2022 15:13:19 +0100
Received: from EXCHDB1.pdv-fs.de ([fe80::6c4a:8b1b:60f4:4437]) by EXCHDB1.pdv-fs.de ([fe80::6c4a:8b1b:60f4:4437%15]) with mapi id 15.01.2375.018; Wed, 23 Feb 2022 15:13:19 +0100
From: =?utf-8?B?UmljaHRlciwgSsO2cmc=?= <Joerg.Richter@pdv-FS.de>
To: Carsten Bormann <cabo@tzi.org>
CC: Jared Corduan <jared.corduan@iohk.io>, Alexander Byaly <alexander.byaly@iohk.io>, Michael Peyton Jones <michael.peyton-jones@iohk.io>, Duncan Coutts <duncan@well-typed.com>, "cbor@ietf.org" <cbor@ietf.org>
Thread-Topic: [Cbor] A CBOR tag for alternatives/unions, request for comments
Thread-Index: AQHYKLeWW86e6jNwIk6rMb24oXfMlqyhI0yQ
Date: Wed, 23 Feb 2022 14:13:19 +0000
Message-ID: <69939099001248eca54db40d56dc590b@pdv-FS.de>
References: <9300a81abc33a45a9f3c7c1c62da88908280e54a.camel@well-typed.com> <1D3EF118-0223-43BC-81B2-369D4515DB21@tzi.org> <1ce2c092d3214d5fdce59435fc10b084c1ba48ca.camel@well-typed.com> <DFCBE61C-35B2-42A2-8D1A-A633CF939154@tzi.org> <2e10456c5791a422bf7218e7b84051f2b7121b66.camel@well-typed.com> <CAKoRMYGcwrhVWd-J3dX75WZfc+T_oyb6NCUNaeCXMW5_-VYdTw@mail.gmail.com> <52EDB93C-827A-465F-B644-51B3EF590D06@tzi.org> <C9D895BB-40E6-431F-958F-AC031DE4FB58@tzi.org> <CAKoRMYG9X0JF4ehkMc30_UNi0JtT2YMeG4RgxznS6O3Di6pkRA@mail.gmail.com> <CAKoRMYHwewaYxkX=CsfETBbdV7c9U97jfbd9xg=PyrMX5vJhnA@mail.gmail.com> <3B3B7EF0-152B-4015-8485-B204F7AEFFBC@tzi.org> <CAKoRMYFbEG=TkuZPPOiXv2DjEh23Ujd_Q44kQqiWPGc_0GMTuQ@mail.gmail.com> <CAKoRMYHnF6fGJp1dTrJnRHFTBOhreLRwzR_=cCckW1nBXOEz0A@mail.gmail.com> <E8A9E016-2248-4BB9-9864-C6C7D52A4AE5@tzi.org> <CAKoRMYE+gmWyCL9zYDa-O-c3KV_iuzgYuS+Q4fi=U7VHDNDtkQ@mail.gmail.com> <CAKoRMYFdAr1YY3mtmY0NU5X9Bk8_4WYh7bC0CtXpZc3toLSu8g@mail.gmail.com> <7FA54553-5421-4C45-B7DD-E9B2D379F46F@tzi.org> <CAKoRMYH3MTMi_tX5KHF-O-DTKzopiGqe3fi6XjkPaGCM4823OQ@mail.gmail.com> <7dfd62ccb6c089af90c90f26a8945f23232ecbc1.camel@well-typed.com> <CAKoRMYEOo1Gqfc4W4k3NOLKpFa97Q9YzLCm3r0PJ13V2HJPf3A@mail.gmail.com> <2BBF6463-FDB2-4A8A-B20D-7A1AD976A90D@tzi.org> <CAKoRMYFi8uo2GfHA9s1n+-rMO8Ja9=2qMMzjS9Z=F9r3LFozRQ@mail.gmail.com> <8EA89504-C176-4850-9BB8-C7E7206374FF@tzi.org> <CAKoRMYGmOa0hzEFsJh8kpz0bU5x56Yc9P=DBK-ghU83gXxPv7A@mail.gmail.com> <CAKoRMYGUvmxufQUVyvX2mciq5LCmV0Nz-uE2MJn54GDBB+9DRw@mail.gmail.com> <CAKoRMYF_19V6mu4S9GVqfiNzyQVvvOzX6eYwHp_DtZQoG0xTKg@mail.gmail.com> <4B47F4D7-ADE3-4A22-8A5B-97F4E5FCD933@tzi.org>
In-Reply-To: <4B47F4D7-ADE3-4A22-8A5B-97F4E5FCD933@tzi.org>
Accept-Language: de-DE, en-US
Content-Language: de-DE
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [192.168.185.1]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-TMASE-Version: DDEI-5.0-8.6.1018-26734.000
X-TMASE-Result: 10--9.185100-10.000000
X-TMASE-MatchedRID: eVEkOcJu0F7W/bDrA6VrLRqkhv3OdF4DICcCYi/y4c1cliDYiEM+XVS0 Db/kpLr86lW5AX2bbKXXE2vM098wUtvE2OCxj8lNF+qQpCWTUjm3uToEMyUHWCscMMmuoBSEzv0 +UmYCZcMAmwS4nnBYuUt+8X+kdv7ykU34HyglnlorCLswi3NpjekphWnlDPb3mbc4hVJ/g/kjTL +WtAHgQ8cmQZhQ+InqTQCZl5528SgZOq+6NU4O5Yt06zoQFESh5jJSRXkYHKlXPwnnY5XL5GNl/ VTJ+jvpJFY0apWTw5wW+rN4H33dkXxkWRHe3hq4Z7RHc0AX9yEiSMnphO25RWRddVaWe11aWGSi m3M3oYni8zVgXoAltj2Xsf5MVCB15A2KZtey50OAx/bc87r9b/oLR4+zsDTtsrb89fxd0AU+aVk T72UagRZCQ25fTk4qQWOM513cgP9i5e3+AOvl1FZca9RSYo/b
X-TMASE-SNAP-Result: 1.821001.0001-0-1-22:0,33:0,34:0-0
X-TMASE-INERTIA: 0-0;;;;
X-TMASE-XGENCLOUD: 9d07738f-7b10-4e8d-b8a3-e9e4191ea591-0-0-200-0
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/PA3j13ayeZztwIvkReexjiXbdm4>
Subject: Re: [Cbor] A CBOR tag for alternatives/unions, request for comments
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 23 Feb 2022 14:13:32 -0000

U29tZSB0aW1lIGFnbyB3ZSBoYWQgYSBkaXNjdXNzaW9uIHRvIGludGVncmF0ZSBhbiBlcnJvci10
YWcuIChkcmFmdC1yaWNodGVyLWNib3ItZXJyb3ItdGFnLTAxLnR4dCkNCg0KWW91IG1hZGUgdGhl
IHN1Z2dlc3Rpb24gdG8gdXNlIHRhZyAxMDEgZm9yIGl0LiBFdmVuIGlmIGl0IHdhcyBuZXZlciBm
aW5hbGl6ZWQsIHdlIHN0aWxsIGhhdmUgdGhlIG5lZWQgZm9yIHN1Y2ggYSB0YWcuDQoNClRoZXJl
IGFyZSBhbHNvIHZhcmlvdXMgb3RoZXIgdGFncyB3ZSBuZWVkLCBpbmNsdWRpbmcgdGltZSBvZiBk
YXksIHRpbWUgem9uZSwgY3VycmVuY3kuIFRoZXNlIGFsc28gYWxyZWFkeSBoYXZlIHByb3Bvc2Vk
IHRhZyBudW1iZXJzIHRoYXQgaGF2ZSBuZXZlciBiZWVuIHJlZ2lzdGVyZWQgYW55d2hlcmUuIEJ1
dCBJIGRvbuKAmXQga25vdyB3aGF0IEkgY2FuIGRvIHRvIGhhdmUgdGhlc2UgdGFncyByZWdpc3Rl
cmVkLg0KDQotIErDtnJnDQoNCi0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQpGcm9tOiBDYXJz
dGVuIEJvcm1hbm4gPGNhYm9AdHppLm9yZz4gDQpTZW50OiBXZWRuZXNkYXksIEZlYnJ1YXJ5IDIz
LCAyMDIyIDI6MTYgUE0NClRvOiBNaWNoYWVsIFBleXRvbiBKb25lcyA8bWljaGFlbC5wZXl0b24t
am9uZXNAaW9oay5pbz47IER1bmNhbiBDb3V0dHMgPGR1bmNhbkB3ZWxsLXR5cGVkLmNvbT47IGNi
b3JAaWV0Zi5vcmcNCkNjOiBKYXJlZCBDb3JkdWFuIDxqYXJlZC5jb3JkdWFuQGlvaGsuaW8+OyBB
bGV4YW5kZXIgQnlhbHkgPGFsZXhhbmRlci5ieWFseUBpb2hrLmlvPg0KU3ViamVjdDogUmU6IFtD
Ym9yXSBBIENCT1IgdGFnIGZvciBhbHRlcm5hdGl2ZXMvdW5pb25zLCByZXF1ZXN0IGZvciBjb21t
ZW50cw0KDQpJIGZpbmFsbHkgZ290IGFyb3VuZCB0byBpbnRlZ3JhdGUgdGhlIHByb3Bvc2FsIGJ5
IER1bmNhbiBDb3V0dHMgYW5kIE1pY2hhZWwgUGV5dG9uIEpvbmVzIHRvIGFsbG9jYXRlIHRhZ3Mg
Zm9yIGVudW1lcmF0ZWQgYWx0ZXJuYXRpdmUgZGF0YSBpdGVtcyBpbnRvIG5vdGFibGUtdGFncy4N
Cg0KaHR0cHM6Ly93d3cuaWV0Zi5vcmcvYXJjaGl2ZS9pZC9kcmFmdC1ib3JtYW5uLWNib3Itbm90
YWJsZS10YWdzLTA2Lmh0bWwjbmFtZS1lbnVtZXJhdGVkLWFsdGVybmF0aXZlLWRhdGENCg0KSSB0
b29rIHRoZSBsaWJlcnR5IHRvIHN1Z2dlc3QgdGFnIDEwMSAo4oCYZeKAmSkgZm9yIHRoZSBleHRl
bmRlZCBjYXNlLg0KSSBhbHNvIG1hZGUgdGhlIGNhc2VzIG5vbi1vdmVybGFwcGluZywgYXMgdGhp
cyBzaW1wbGlmaWVzIGRldGVybWluaXN0aWMgZW5jb2RpbmcgKGFuZCBpbnRlcm9wIHRlc3Rpbmcg
aW4gZ2VuZXJhbCkuDQoNCkN1cnJlbnQgc3RhdGUgb2YgdGFnIGFsbG9jYXRpb246DQpyYW5nZSAg
dXNlZCAgICAgJSAgICAgICAgICAgICAgICAgZnJlZSAgICAgICAgICAgICAgICB0b3RhbA0KMCAx
KzAgICAgMTIgNTAuMDAgICAgICAgICAgICAgICAgICAgMTIgICAgICAgICAgICAgICAgICAgMjQN
CjEgMSsxICAgIDYyIDI2LjcyICAgICAgICAgICAgICAgICAgMTcwICAgICAgICAgICAgICAgICAg
MjMyDQoyIDErMiAgICA0NSAgMC4wNyAgICAgICAgICAgICAgICA2NTIzNSAgICAgICAgICAgICAg
ICA2NTI4MA0KMyAxKzQgICAgIDMgIDAuMDAgICAgICAgICAgIDQyOTQ5MDE3NTcgICAgICAgICAg
IDQyOTQ5MDE3NjANCjQgMSs4ICAgICAyICAwLjAwIDE4NDQ2NzQ0MDY5NDE0NTg0MzE4IDE4NDQ2
NzQ0MDY5NDE0NTg0MzIwDQoNCklmIHdlIGhhdmUgdGltZSBpbiB0aGUgQ0JPUiBtZWV0aW5nIHRv
ZGF5ICh2ZXJ5IGxpa2VseSkgYW5kIHlvdSBoYXZlIHRpbWUgYW5kIGNvbW1lbnRzLCB3ZSBjb3Vs
ZCBjb21wbGV0ZSB0aGUgZGlzY3Vzc2lvbiBhbmQgYXNrIElBTkEgdG8gcmVnaXN0ZXIuDQoNCkNv
b3JkaW5hdGVzIG9mIHRoZSBDQk9SIG1lZXRpbmcgYXJlIGJlbG93Lg0KWW914oCZbGwgbmVlZCBh
biBJRVRGIGRhdGF0cmFja2VyIGFjY291bnQgdG8gcGFydGljaXBhdGU7IHlvdSBjYW4gZG8gdGhh
dCBoZXJlOg0KDQpodHRwczovL2RhdGF0cmFja2VyLmlldGYub3JnL2FjY291bnRzL2NyZWF0ZS8N
Cg0KSeKAmW0gb3V0IG9mIEVuZ2xpc2ggd29yZHMgdG8gYXBvbG9naXplIGZvciBteSB0YXJkeSB0
cmVhdG1lbnQgb2YgdGhpcyBtYXR0ZXIgKGFuZCBmb3IgdGhlIGxhdGUgbm90aWNlIG9mIHRoZSBt
ZWV0aW5nIGluIDEwMCBtaW51dGVzKS4NCg0KR3LDvMOfZSwgQ2Fyc3Rlbg0KDQoNClRoZSBuZXh0
IENCT1IgV0cgVmlydHVhbCBNZWV0aW5nIGlzIHRoaXMgV2VkbmVzZGF5LCAyMyBGZWIsIGF0IDE1
OjAwIFVUQy4gIEluZm9ybWF0aW9uIGZvciB0aGlzIG1lZXRpbmcgaXMgaGVyZToNCg0KRGF0YXRy
YWNrZXI6IGh0dHBzOi8vZGF0YXRyYWNrZXIuaWV0Zi5vcmcvbWVldGluZy9pbnRlcmltLTIwMjIt
Y2Jvci0wNC9zZXNzaW9uL2Nib3INCk5vdGVzOiBodHRwczovL25vdGVzLmlldGYub3JnL25vdGVz
LWlldGYtaW50ZXJpbS0yMDIyLWNib3ItMDQtY2Jvcg0KTWVldGVjaG86IGh0dHBzOi8vbWVldGlu
Z3MuY29uZi5tZWV0ZWNoby5jb20vaW50ZXJpbS8/c2hvcnQ9OWQzOGQ0YzktY2Y5ZS00OGMzLWJj
MjUtOTdiMDI1Njk4ZWMwDQoNCg0KX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX18NCkNCT1IgbWFpbGluZyBsaXN0DQpDQk9SQGlldGYub3JnDQpodHRwczovL3d3
dy5pZXRmLm9yZy9tYWlsbWFuL2xpc3RpbmZvL2Nib3INCg==


From nobody Wed Feb 23 06:20:29 2022
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 566C63A0E66 for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 06:20:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vcg_L1VjPq8M for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 06:20:21 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [134.102.50.15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 84E7C3A0E63 for <cbor@ietf.org>; Wed, 23 Feb 2022 06:20:21 -0800 (PST)
Received: from [192.168.217.118] (p5089ad4f.dip0.t-ipconnect.de [80.137.173.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4K3dVB6DLCzDCc3; Wed, 23 Feb 2022 15:20:18 +0100 (CET)
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: <69939099001248eca54db40d56dc590b@pdv-FS.de>
Date: Wed, 23 Feb 2022 15:20:18 +0100
Cc: Jared Corduan <jared.corduan@iohk.io>, Alexander Byaly <alexander.byaly@iohk.io>, Duncan Coutts <duncan@well-typed.com>, Michael Peyton Jones <michael.peyton-jones@iohk.io>, "cbor@ietf.org" <cbor@ietf.org>
X-Mao-Original-Outgoing-Id: 667318818.304953-ed2a8d2ab178e5b964f2a2347795472f
Content-Transfer-Encoding: quoted-printable
Message-Id: <2B75D833-8D07-4134-9BAD-F4583D6B053B@tzi.org>
References: <9300a81abc33a45a9f3c7c1c62da88908280e54a.camel@well-typed.com> <1D3EF118-0223-43BC-81B2-369D4515DB21@tzi.org> <1ce2c092d3214d5fdce59435fc10b084c1ba48ca.camel@well-typed.com> <DFCBE61C-35B2-42A2-8D1A-A633CF939154@tzi.org> <2e10456c5791a422bf7218e7b84051f2b7121b66.camel@well-typed.com> <CAKoRMYGcwrhVWd-J3dX75WZfc+T_oyb6NCUNaeCXMW5_-VYdTw@mail.gmail.com> <52EDB93C-827A-465F-B644-51B3EF590D06@tzi.org> <C9D895BB-40E6-431F-958F-AC031DE4FB58@tzi.org> <CAKoRMYG9X0JF4ehkMc30_UNi0JtT2YMeG4RgxznS6O3Di6pkRA@mail.gmail.com> <CAKoRMYHwewaYxkX=CsfETBbdV7c9U97jfbd9xg=PyrMX5vJhnA@mail.gmail.com> <3B3B7EF0-152B-4015-8485-B204F7AEFFBC@tzi.org> <CAKoRMYFbEG=TkuZPPOiXv2DjEh23Ujd_Q44kQqiWPGc_0GMTuQ@mail.gmail.com> <CAKoRMYHnF6fGJp1dTrJnRHFTBOhreLRwzR_=cCckW1nBXOEz0A@mail.gmail.com> <E8A9E016-2248-4BB9-9864-C6C7D52A4AE5@tzi.org> <CAKoRMYE+gmWyCL9zYDa-O-c3KV_iuzgYuS+Q4fi=U7VHDNDtkQ@mail.gmail.com> <CAKoRMYFdAr1YY3mtmY0NU5X9Bk8_4WYh7bC0CtXpZc3toLSu8g@mail.gmail.com> <7FA54553-5421-4C45-B7DD-E9B2D379F46F@tzi.org> <CAKoRMYH3MTMi_tX5KHF-O-DTKzopiGqe3fi6XjkPaGCM4823OQ@mail.gmail.com> <7dfd62ccb6c089af90c90f26a8945f23232ecbc1.camel@well-typed.com> <CAKoRMYEOo1Gqfc4W4k3NOLKpFa97Q9YzLCm3r0PJ13V2HJPf3A@mail.gmail.com> <2BBF6463-FDB2-4A8A-B20D-7A1AD976A90D@tzi.org> <CAKoRMYFi8uo2GfHA9s1n+-rMO8Ja9=2qMMzjS9Z=F9r3LFozRQ@mail.gmail.com> <8EA89504-C176-4850-9BB8-C7E7206374FF@tzi.org> <CAKoRMYGmOa0hzEFsJh8kpz0bU5x56Yc9P=DBK-ghU83gXxPv7A@mail.gmail.com> <CAKoRMYGUvmxufQUVyvX2mciq5LCmV0Nz-uE2MJn54GDBB+9DRw@mail.gmail.com> <CAKoRMYF_19V6mu4S9GVqfiNzyQVvvOzX6eYwHp_DtZQoG0xTKg@mail.gmail.com> <4B47F4D7-ADE3-4A22-8A5B-97F4E5FCD933@tzi.org> <69939099001248eca54db40d56dc590b@pdv-FS.de>
To: =?utf-8?B?IlJpY2h0ZXIsIErDtnJnIg==?= <Joerg.Richter@pdv-FS.de>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/rPzjt7mSMhvCVprLarm4e4E5JYk>
Subject: Re: [Cbor] A CBOR tag for alternatives/unions, request for comments
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 23 Feb 2022 14:20:27 -0000

On 2022-02-23, at 15:13, Richter, J=C3=B6rg <Joerg.Richter@pdv-FS.de> =
wrote:
>=20
> You made the suggestion to use tag 101 for it.

Ouch, bad memory on my side, plus propensity to drop my cookies.
So I retract my proposal to move the extended tag for enums to 101 =
(=E2=80=98e=E2=80=99).

> Even if it was never finalized, we still have the need for such a tag.

Yes.  Maybe we should add a reference relating this to RFC 7807, =
integrate it into notable-tags, and ask IANA to register it.

Gr=C3=BC=C3=9Fe, Carsten


From nobody Wed Feb 23 06:35:11 2022
Return-Path: <emile.cormier.jr@gmail.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 53D223A0F41 for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 06:35:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.097
X-Spam-Level: 
X-Spam-Status: No, score=-7.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ft07zY5VMTTY for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 06:35:03 -0800 (PST)
Received: from mail-yb1-xb2b.google.com (mail-yb1-xb2b.google.com [IPv6:2607:f8b0:4864:20::b2b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DA6903A0EF8 for <cbor@ietf.org>; Wed, 23 Feb 2022 06:35:02 -0800 (PST)
Received: by mail-yb1-xb2b.google.com with SMTP id j2so48581694ybu.0 for <cbor@ietf.org>; Wed, 23 Feb 2022 06:35:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4ClvDh0jmn6xkt+lC0HoqE+OjjsWHK0Sn6MLkHvVfoo=; b=IIPt9XPxjP54NY4sOLGhMSrdUe9BoCmY8tXi2/wB+8J2BwixyVdApB1lHCIBaSkP0r NYvvi4H6feVaZibC+1h+SCFyrXH7/BsqKFTTFpQL8wtRCND55siZkm7asfOZHRNV3EtQ LCDHAWR/GoAYMW6eKKd2bjQonPZqOkx9Rhj2eFM75XjwQ2WHl2jkVhAIDVQ9aeOnLks1 MnsNUQZhxefPTs+8yAf1rdXRMftYnXgR71LWkD8QVhByKhH1NyIARCPmslVU7+wlApKC MS9PQv/PCzqLQD2ONIm0YeDpa+irBJt3ulVejfL62QZgZc1RHOolhRFdlKy6YhxC6ON4 xj+A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4ClvDh0jmn6xkt+lC0HoqE+OjjsWHK0Sn6MLkHvVfoo=; b=SOwFB+3BqbDwGEdnVAUXSrHBJy4UEcnI01QRvqGz3WeJq/S1aQfSeuJiDTzqzRvhjl 7Gt+Vxf9J9EMP/ExDwfuL2FtB6zs1Jd2xRv3wRkk+/dYIOG3c+u4Bv6RPqqUhiUldouZ THouWTAcfM9DnD6gqZpMtDwbuGBk52Vh+WVfE4zs3T8GO8twVW0RnIvjZ5gjfzwqzlpN Ak4N35wxIUMUKEl+toE6LcvrxZzFXltR6uOYXNblgacz/KKDXBEJ14/OBYqf+r37w0Vj TurRW5JMXGQsZUJke2DLKX1GidYKF3/6ZIi3GRXfxqDBtKM9x3XpFFsuHoMYolApDgpA fx5Q==
X-Gm-Message-State: AOAM530iS+5nhl8Y1DqLkGEjikl/ejLujPAUrSij/plyEmQJa1H3AlMo aURFDJFTQVoP++D14Fzf9O+jrVDL/zUoci3gddw=
X-Google-Smtp-Source: ABdhPJyvlTsmvgOntWsdFPi3SfvNCgrqMt1Prxq3DvaIjezGH7PPNxDVY3vFzfnxXPhrA9FZcKFhced0ygoAXLhXbVY=
X-Received: by 2002:a25:c89:0:b0:61d:a1e8:fd14 with SMTP id 131-20020a250c89000000b0061da1e8fd14mr44561ybm.322.1645626901341; Wed, 23 Feb 2022 06:35:01 -0800 (PST)
MIME-Version: 1.0
References: <9300a81abc33a45a9f3c7c1c62da88908280e54a.camel@well-typed.com> <1D3EF118-0223-43BC-81B2-369D4515DB21@tzi.org> <1ce2c092d3214d5fdce59435fc10b084c1ba48ca.camel@well-typed.com> <DFCBE61C-35B2-42A2-8D1A-A633CF939154@tzi.org> <2e10456c5791a422bf7218e7b84051f2b7121b66.camel@well-typed.com> <CAKoRMYGcwrhVWd-J3dX75WZfc+T_oyb6NCUNaeCXMW5_-VYdTw@mail.gmail.com> <52EDB93C-827A-465F-B644-51B3EF590D06@tzi.org> <C9D895BB-40E6-431F-958F-AC031DE4FB58@tzi.org> <CAKoRMYG9X0JF4ehkMc30_UNi0JtT2YMeG4RgxznS6O3Di6pkRA@mail.gmail.com> <CAKoRMYHwewaYxkX=CsfETBbdV7c9U97jfbd9xg=PyrMX5vJhnA@mail.gmail.com> <3B3B7EF0-152B-4015-8485-B204F7AEFFBC@tzi.org> <CAKoRMYFbEG=TkuZPPOiXv2DjEh23Ujd_Q44kQqiWPGc_0GMTuQ@mail.gmail.com> <CAKoRMYHnF6fGJp1dTrJnRHFTBOhreLRwzR_=cCckW1nBXOEz0A@mail.gmail.com> <E8A9E016-2248-4BB9-9864-C6C7D52A4AE5@tzi.org> <CAKoRMYE+gmWyCL9zYDa-O-c3KV_iuzgYuS+Q4fi=U7VHDNDtkQ@mail.gmail.com> <CAKoRMYFdAr1YY3mtmY0NU5X9Bk8_4WYh7bC0CtXpZc3toLSu8g@mail.gmail.com> <7FA54553-5421-4C45-B7DD-E9B2D379F46F@tzi.org> <CAKoRMYH3MTMi_tX5KHF-O-DTKzopiGqe3fi6XjkPaGCM4823OQ@mail.gmail.com> <7dfd62ccb6c089af90c90f26a8945f23232ecbc1.camel@well-typed.com> <CAKoRMYEOo1Gqfc4W4k3NOLKpFa97Q9YzLCm3r0PJ13V2HJPf3A@mail.gmail.com> <2BBF6463-FDB2-4A8A-B20D-7A1AD976A90D@tzi.org> <CAKoRMYFi8uo2GfHA9s1n+-rMO8Ja9=2qMMzjS9Z=F9r3LFozRQ@mail.gmail.com> <8EA89504-C176-4850-9BB8-C7E7206374FF@tzi.org> <CAKoRMYGmOa0hzEFsJh8kpz0bU5x56Yc9P=DBK-ghU83gXxPv7A@mail.gmail.com> <CAKoRMYGUvmxufQUVyvX2mciq5LCmV0Nz-uE2MJn54GDBB+9DRw@mail.gmail.com> <CAKoRMYF_19V6mu4S9GVqfiNzyQVvvOzX6eYwHp_DtZQoG0xTKg@mail.gmail.com> <4B47F4D7-ADE3-4A22-8A5B-97F4E5FCD933@tzi.org>
In-Reply-To: <4B47F4D7-ADE3-4A22-8A5B-97F4E5FCD933@tzi.org>
From: Emile Cormier <emile.cormier.jr@gmail.com>
Date: Wed, 23 Feb 2022 10:34:50 -0400
Message-ID: <CAM70yxACa4ZgOojHLMRv+9Bpuv7dPFtupm+tnrnDZC_i_Dsr8g@mail.gmail.com>
To: Carsten Bormann <cabo@tzi.org>
Cc: Michael Peyton Jones <michael.peyton-jones@iohk.io>, Duncan Coutts <duncan@well-typed.com>, cbor@ietf.org,  Jared Corduan <jared.corduan@iohk.io>, Alexander Byaly <alexander.byaly@iohk.io>
Content-Type: multipart/alternative; boundary="000000000000e32b6405d8b05eae"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/Yxuz0c1kh3C4rctSJoGJCOOljiQ>
Subject: Re: [Cbor] A CBOR tag for alternatives/unions, request for comments
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 23 Feb 2022 14:35:09 -0000

--000000000000e32b6405d8b05eae
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Is there any consideration into how such tags and their associated datum be
transcoded to JSON, without loss of information?

On Wed, Feb 23, 2022 at 9:16 AM Carsten Bormann <cabo@tzi.org> wrote:

> I finally got around to integrate the proposal by Duncan Coutts and
> Michael Peyton Jones to allocate tags for enumerated alternative data ite=
ms
> into notable-tags.
>
>
> https://www.ietf.org/archive/id/draft-bormann-cbor-notable-tags-06.html#n=
ame-enumerated-alternative-data
>
> I took the liberty to suggest tag 101 (=E2=80=98e=E2=80=99) for the exten=
ded case.
> I also made the cases non-overlapping, as this simplifies deterministic
> encoding (and interop testing in general).
>
> Current state of tag allocation:
> range  used     %                 free                total
> 0 1+0    12 50.00                   12                   24
> 1 1+1    62 26.72                  170                  232
> 2 1+2    45  0.07                65235                65280
> 3 1+4     3  0.00           4294901757           4294901760
> 4 1+8     2  0.00 18446744069414584318 18446744069414584320
>
> If we have time in the CBOR meeting today (very likely) and you have time
> and comments, we could complete the discussion and ask IANA to register.
>
> Coordinates of the CBOR meeting are below.
> You=E2=80=99ll need an IETF datatracker account to participate; you can d=
o that
> here:
>
> https://datatracker.ietf.org/accounts/create/
>
> I=E2=80=99m out of English words to apologize for my tardy treatment of t=
his
> matter (and for the late notice of the meeting in 100 minutes).
>
> Gr=C3=BC=C3=9Fe, Carsten
>
>
> The next CBOR WG Virtual Meeting is this Wednesday, 23 Feb, at 15:00
> UTC.  Information for this meeting is here:
>
> Datatracker:
> https://datatracker.ietf.org/meeting/interim-2022-cbor-04/session/cbor
> Notes: https://notes.ietf.org/notes-ietf-interim-2022-cbor-04-cbor
> Meetecho:
> https://meetings.conf.meetecho.com/interim/?short=3D9d38d4c9-cf9e-48c3-bc=
25-97b025698ec0
>
>
> _______________________________________________
> CBOR mailing list
> CBOR@ietf.org
> https://www.ietf.org/mailman/listinfo/cbor
>

--000000000000e32b6405d8b05eae
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Is there any consideration into how such tags and their as=
sociated datum be transcoded to JSON, without loss of information?<br></div=
><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On We=
d, Feb 23, 2022 at 9:16 AM Carsten Bormann &lt;<a href=3D"mailto:cabo@tzi.o=
rg">cabo@tzi.org</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" =
style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pa=
dding-left:1ex">I finally got around to integrate the proposal by Duncan Co=
utts and Michael Peyton Jones to allocate tags for enumerated alternative d=
ata items into notable-tags.<br>
<br>
<a href=3D"https://www.ietf.org/archive/id/draft-bormann-cbor-notable-tags-=
06.html#name-enumerated-alternative-data" rel=3D"noreferrer" target=3D"_bla=
nk">https://www.ietf.org/archive/id/draft-bormann-cbor-notable-tags-06.html=
#name-enumerated-alternative-data</a><br>
<br>
I took the liberty to suggest tag 101 (=E2=80=98e=E2=80=99) for the extende=
d case.<br>
I also made the cases non-overlapping, as this simplifies deterministic enc=
oding (and interop testing in general).<br>
<br>
Current state of tag allocation:<br>
range=C2=A0 used=C2=A0 =C2=A0 =C2=A0%=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0free=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 total<br>
0 1+0=C2=A0 =C2=A0 12 50.00=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
 =C2=A0 =C2=A0 =C2=A012=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A024<br>
1 1+1=C2=A0 =C2=A0 62 26.72=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
 =C2=A0 =C2=A0 170=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 232<br>
2 1+2=C2=A0 =C2=A0 45=C2=A0 0.07=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 65235=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
65280<br>
3 1+4=C2=A0 =C2=A0 =C2=A03=C2=A0 0.00=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A04294901757=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A04294901760<br>
4 1+8=C2=A0 =C2=A0 =C2=A02=C2=A0 0.00 18446744069414584318 1844674406941458=
4320<br>
<br>
If we have time in the CBOR meeting today (very likely) and you have time a=
nd comments, we could complete the discussion and ask IANA to register.<br>
<br>
Coordinates of the CBOR meeting are below.<br>
You=E2=80=99ll need an IETF datatracker account to participate; you can do =
that here:<br>
<br>
<a href=3D"https://datatracker.ietf.org/accounts/create/" rel=3D"noreferrer=
" target=3D"_blank">https://datatracker.ietf.org/accounts/create/</a><br>
<br>
I=E2=80=99m out of English words to apologize for my tardy treatment of thi=
s matter (and for the late notice of the meeting in 100 minutes).<br>
<br>
Gr=C3=BC=C3=9Fe, Carsten<br>
<br>
<br>
The next CBOR WG Virtual Meeting is this Wednesday, 23 Feb, at 15:00<br>
UTC.=C2=A0 Information for this meeting is here:<br>
<br>
Datatracker: <a href=3D"https://datatracker.ietf.org/meeting/interim-2022-c=
bor-04/session/cbor" rel=3D"noreferrer" target=3D"_blank">https://datatrack=
er.ietf.org/meeting/interim-2022-cbor-04/session/cbor</a><br>
Notes: <a href=3D"https://notes.ietf.org/notes-ietf-interim-2022-cbor-04-cb=
or" rel=3D"noreferrer" target=3D"_blank">https://notes.ietf.org/notes-ietf-=
interim-2022-cbor-04-cbor</a><br>
Meetecho: <a href=3D"https://meetings.conf.meetecho.com/interim/?short=3D9d=
38d4c9-cf9e-48c3-bc25-97b025698ec0" rel=3D"noreferrer" target=3D"_blank">ht=
tps://meetings.conf.meetecho.com/interim/?short=3D9d38d4c9-cf9e-48c3-bc25-9=
7b025698ec0</a><br>
<br>
<br>
_______________________________________________<br>
CBOR mailing list<br>
<a href=3D"mailto:CBOR@ietf.org" target=3D"_blank">CBOR@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/cbor" rel=3D"noreferrer" t=
arget=3D"_blank">https://www.ietf.org/mailman/listinfo/cbor</a><br>
</blockquote></div>

--000000000000e32b6405d8b05eae--


From nobody Wed Feb 23 06:48:44 2022
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 680033A1066 for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 06:48:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.9
X-Spam-Level: 
X-Spam-Status: No, score=-6.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DfDfY_KPpWrx for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 06:48:25 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [134.102.50.15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3DB1C3A105D for <cbor@ietf.org>; Wed, 23 Feb 2022 06:48:25 -0800 (PST)
Received: from [192.168.217.118] (p5089ad4f.dip0.t-ipconnect.de [80.137.173.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4K3f6Z2X7hzDCdG; Wed, 23 Feb 2022 15:48:22 +0100 (CET)
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: <CAM70yxACa4ZgOojHLMRv+9Bpuv7dPFtupm+tnrnDZC_i_Dsr8g@mail.gmail.com>
Date: Wed, 23 Feb 2022 15:48:22 +0100
Cc: Michael Peyton Jones <michael.peyton-jones@iohk.io>, Duncan Coutts <duncan@well-typed.com>, cbor@ietf.org, Jared Corduan <jared.corduan@iohk.io>, Alexander Byaly <alexander.byaly@iohk.io>
X-Mao-Original-Outgoing-Id: 667320501.9828629-4e6d5fbab97324b946a6a6e0c7bed5f1
Content-Transfer-Encoding: quoted-printable
Message-Id: <EB822234-89C2-4CFA-8807-2BD2E97D1E60@tzi.org>
References: <9300a81abc33a45a9f3c7c1c62da88908280e54a.camel@well-typed.com> <1D3EF118-0223-43BC-81B2-369D4515DB21@tzi.org> <1ce2c092d3214d5fdce59435fc10b084c1ba48ca.camel@well-typed.com> <DFCBE61C-35B2-42A2-8D1A-A633CF939154@tzi.org> <2e10456c5791a422bf7218e7b84051f2b7121b66.camel@well-typed.com> <CAKoRMYGcwrhVWd-J3dX75WZfc+T_oyb6NCUNaeCXMW5_-VYdTw@mail.gmail.com> <52EDB93C-827A-465F-B644-51B3EF590D06@tzi.org> <C9D895BB-40E6-431F-958F-AC031DE4FB58@tzi.org> <CAKoRMYG9X0JF4ehkMc30_UNi0JtT2YMeG4RgxznS6O3Di6pkRA@mail.gmail.com> <CAKoRMYHwewaYxkX=CsfETBbdV7c9U97jfbd9xg=PyrMX5vJhnA@mail.gmail.com> <3B3B7EF0-152B-4015-8485-B204F7AEFFBC@tzi.org> <CAKoRMYFbEG=TkuZPPOiXv2DjEh23Ujd_Q44kQqiWPGc_0GMTuQ@mail.gmail.com> <CAKoRMYHnF6fGJp1dTrJnRHFTBOhreLRwzR_=cCckW1nBXOEz0A@mail.gmail.com> <E8A9E016-2248-4BB9-9864-C6C7D52A4AE5@tzi.org> <CAKoRMYE+gmWyCL9zYDa-O-c3KV_iuzgYuS+Q4fi=U7VHDNDtkQ@mail.gmail.com> <CAKoRMYFdAr1YY3mtmY0NU5X9Bk8_4WYh7bC0CtXpZc3toLSu8g@mail.gmail.com> <7FA54553-5421-4C45-B7DD-E9B2D379F46F@tzi.org> <CAKoRMYH3MTMi_tX5KHF-O-DTKzopiGqe3fi6XjkPaGCM4823OQ@mail.gmail.com> <7dfd62ccb6c089af90c90f26a8945f23232ecbc1.camel@well-typed.com> <CAKoRMYEOo1Gqfc4W4k3NOLKpFa97Q9YzLCm3r0PJ13V2HJPf3A@mail.gmail.com> <2BBF6463-FDB2-4A8A-B20D-7A1AD976A90D@tzi.org> <CAKoRMYFi8uo2GfHA9s1n+-rMO8Ja9=2qMMzjS9Z=F9r3LFozRQ@mail.gmail.com> <8EA89504-C176-4850-9BB8-C7E7206374FF@tzi.org> <CAKoRMYGmOa0hzEFsJh8kpz0bU5x56Yc9P=DBK-ghU83gXxPv7A@mail.gmail.com> <CAKoRMYGUvmxufQUVyvX2mciq5LCmV0Nz-uE2MJn54GDBB+9DRw@mail.gmail.com> <CAKoRMYF_19V6mu4S9GVqfiNzyQVvvOzX6eYwHp_DtZQoG0xTKg@mail.gmail.com> <4B47F4D7-ADE3-4A22-8A5B-97F4E5FCD933@tzi.org> <CAM70yxACa4ZgOojHLMRv+9Bpuv7dPFtupm+tnrnDZC_i_Dsr8g@mail.gmail.com>
To: Emile Cormier <emile.cormier.jr@gmail.com>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/Mx106L9VQca1uJdlcTDk_UNjsVw>
Subject: Re: [Cbor] A CBOR tag for alternatives/unions, request for comments
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 23 Feb 2022 14:48:34 -0000

On 2022-02-23, at 15:34, Emile Cormier <emile.cormier.jr@gmail.com> =
wrote:
>=20
> Is there any consideration into how such tags and their associated =
datum be transcoded to JSON, without loss of information?

I=E2=80=99m not currently proposing to standardize this, but the cbor =
diagnostic tools support a transform to tunnel CBOR data items through =
JSON [0]:

$ echo "122(h'1234')" | diag2cbor.rb | cbor2json.rb -j
{
  "@@!t122": {
    "@@!b": "EjQ"
  }
}

This works by hijacking JSON object keys starting with @@!; I=E2=80=99m =
not sure the code handles all cases so we have achieved full =
transparency yet, but that is a SMOP [1].

Gr=C3=BC=C3=9Fe, Carsten

[0]: =
https://github.com/cabo/cbor-diag/blob/master/lib/cbor-transform-j.rb
[1]: SMOP =3D Small matter of programming


From nobody Wed Feb 23 07:06:55 2022
Return-Path: <emile.cormier.jr@gmail.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 479083A107D for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 07:06:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level: 
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kSJV0dqfvcCy for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 07:06:48 -0800 (PST)
Received: from mail-yb1-xb31.google.com (mail-yb1-xb31.google.com [IPv6:2607:f8b0:4864:20::b31]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D7A2E3A1070 for <cbor@ietf.org>; Wed, 23 Feb 2022 07:06:48 -0800 (PST)
Received: by mail-yb1-xb31.google.com with SMTP id e140so48537470ybh.9 for <cbor@ietf.org>; Wed, 23 Feb 2022 07:06:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YEyM74mC6apGED/lfR8rp57Lc8czTOTj0uP88VsviE8=; b=KvsROMoBS/DqfyTS1GQCywQSAEJ4lKU8+ZLWc3XJEKxOL6tl+VtPdb4G2qDDOQLMup No5FYM2pDp+0B6r7lwrb5iIG9D5eYur+5CA6hfg6co6Hw8ClQXBDsKQzQBgefQKM/ETy BIFjePfZ9R4HR2CoBG194aF/B+0v9tS2439DRiDxS24GPHU+0nq/hD3UGbTZnBWnZUR5 1kFqFTRdqdO4JMCT2wRT5jELeKUMoVhGXsgjIulyJDC8jO0vJuxf/NHI8vceuYwMLvnc YtfGBkhPyRURUX5bCeU6qvrfJfyUunxhMsHwjD554V8rA7pz6XthR6iE4TnqEgjoOgzh nyRw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YEyM74mC6apGED/lfR8rp57Lc8czTOTj0uP88VsviE8=; b=dSH4XpV167pT0U7kpdUCGMsaUgE9DL+tbMZmZYHtWZgleFToDnV0PhVay56gE6GRx/ 3Fym5joVe8HGuy4OwhKfCTOmHBkYu92JVTcC0RvBtu87lt2i+2DUAUIN0kU+5DD5x9kK A2DBbWJW9UZM6CruTRmXK+LYNJ8b87SmYYf1fjJaNsy+lTv3Ygb1mSdnKMV9K//9q5CN TxBT4sIJyXQlzP7eoCHUn8N2m9qMii0rbq23IHpY9F3b5frecL+IZyrgtRxHEAET/5Nn Cennj8Wezwj4G5cOEbH4e4j68ABLm7NkUh5MyMfaFGDPkCp9+kqAPDnM0WyuKyHhXYHK nb3g==
X-Gm-Message-State: AOAM533vI/hPEwAuZRgqdHAMTrsrPfjey0m5YmkiXDJg2ZPCAeL4xPmW /qe8K2MLjrMaOkDxte9lgDDyeGEIPueyfmIzxxCG0XDB
X-Google-Smtp-Source: ABdhPJwpdNYJxGHhwAZiR7fp+q2pKYgM/6UwWTpKQGvBgNe3KTTE6/c6ByZLrBJRfPvJzj2Wg2KYd6ADzIah1Gt4Zhc=
X-Received: by 2002:a25:287:0:b0:61d:8134:966 with SMTP id 129-20020a250287000000b0061d81340966mr138872ybc.217.1645628807659;  Wed, 23 Feb 2022 07:06:47 -0800 (PST)
MIME-Version: 1.0
References: <9300a81abc33a45a9f3c7c1c62da88908280e54a.camel@well-typed.com> <1D3EF118-0223-43BC-81B2-369D4515DB21@tzi.org> <1ce2c092d3214d5fdce59435fc10b084c1ba48ca.camel@well-typed.com> <DFCBE61C-35B2-42A2-8D1A-A633CF939154@tzi.org> <2e10456c5791a422bf7218e7b84051f2b7121b66.camel@well-typed.com> <CAKoRMYGcwrhVWd-J3dX75WZfc+T_oyb6NCUNaeCXMW5_-VYdTw@mail.gmail.com> <52EDB93C-827A-465F-B644-51B3EF590D06@tzi.org> <C9D895BB-40E6-431F-958F-AC031DE4FB58@tzi.org> <CAKoRMYG9X0JF4ehkMc30_UNi0JtT2YMeG4RgxznS6O3Di6pkRA@mail.gmail.com> <CAKoRMYHwewaYxkX=CsfETBbdV7c9U97jfbd9xg=PyrMX5vJhnA@mail.gmail.com> <3B3B7EF0-152B-4015-8485-B204F7AEFFBC@tzi.org> <CAKoRMYFbEG=TkuZPPOiXv2DjEh23Ujd_Q44kQqiWPGc_0GMTuQ@mail.gmail.com> <CAKoRMYHnF6fGJp1dTrJnRHFTBOhreLRwzR_=cCckW1nBXOEz0A@mail.gmail.com> <E8A9E016-2248-4BB9-9864-C6C7D52A4AE5@tzi.org> <CAKoRMYE+gmWyCL9zYDa-O-c3KV_iuzgYuS+Q4fi=U7VHDNDtkQ@mail.gmail.com> <CAKoRMYFdAr1YY3mtmY0NU5X9Bk8_4WYh7bC0CtXpZc3toLSu8g@mail.gmail.com> <7FA54553-5421-4C45-B7DD-E9B2D379F46F@tzi.org> <CAKoRMYH3MTMi_tX5KHF-O-DTKzopiGqe3fi6XjkPaGCM4823OQ@mail.gmail.com> <7dfd62ccb6c089af90c90f26a8945f23232ecbc1.camel@well-typed.com> <CAKoRMYEOo1Gqfc4W4k3NOLKpFa97Q9YzLCm3r0PJ13V2HJPf3A@mail.gmail.com> <2BBF6463-FDB2-4A8A-B20D-7A1AD976A90D@tzi.org> <CAKoRMYFi8uo2GfHA9s1n+-rMO8Ja9=2qMMzjS9Z=F9r3LFozRQ@mail.gmail.com> <8EA89504-C176-4850-9BB8-C7E7206374FF@tzi.org> <CAKoRMYGmOa0hzEFsJh8kpz0bU5x56Yc9P=DBK-ghU83gXxPv7A@mail.gmail.com> <CAKoRMYGUvmxufQUVyvX2mciq5LCmV0Nz-uE2MJn54GDBB+9DRw@mail.gmail.com> <CAKoRMYF_19V6mu4S9GVqfiNzyQVvvOzX6eYwHp_DtZQoG0xTKg@mail.gmail.com> <4B47F4D7-ADE3-4A22-8A5B-97F4E5FCD933@tzi.org> <CAM70yxACa4ZgOojHLMRv+9Bpuv7dPFtupm+tnrnDZC_i_Dsr8g@mail.gmail.com> <EB822234-89C2-4CFA-8807-2BD2E97D1E60@tzi.org>
In-Reply-To: <EB822234-89C2-4CFA-8807-2BD2E97D1E60@tzi.org>
From: Emile Cormier <emile.cormier.jr@gmail.com>
Date: Wed, 23 Feb 2022 11:06:36 -0400
Message-ID: <CAM70yxAG_rMc8ANWgFvyAao_G5cLNOEL0mrfD8tLmJVxtn_8SA@mail.gmail.com>
To: Carsten Bormann <cabo@tzi.org>
Cc: Michael Peyton Jones <michael.peyton-jones@iohk.io>, Duncan Coutts <duncan@well-typed.com>, cbor@ietf.org,  Jared Corduan <jared.corduan@iohk.io>, Alexander Byaly <alexander.byaly@iohk.io>
Content-Type: multipart/alternative; boundary="00000000000083444205d8b0d0a5"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/FHZVlKageQckHle5s3TWHq_qZrU>
Subject: Re: [Cbor] A CBOR tag for alternatives/unions, request for comments
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 23 Feb 2022 15:06:54 -0000

--00000000000083444205d8b0d0a5
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Wed, Feb 23, 2022 at 10:48 AM Carsten Bormann <cabo@tzi.org> wrote:

> I=E2=80=99m not currently proposing to standardize this, but the cbor dia=
gnostic
> tools support a transform to tunnel CBOR data items through JSON [0]:
>
> $ echo "122(h'1234')" | diag2cbor.rb | cbor2json.rb -j
> {
>   "@@!t122": {
>     "@@!b": "EjQ"
>   }
> }
>
> This works by hijacking JSON object keys starting with @@!; I=E2=80=99m n=
ot sure
> the code handles all cases so we have achieved full transparency yet, but
> that is a SMOP [1].
>
> Gr=C3=BC=C3=9Fe, Carsten
>
> [0]: https://github.com/cabo/cbor-diag/blob/master/lib/cbor-transform-j.r=
b
> [1]: SMOP =3D Small matter of programming
>

I was thinking something as simple as:

[<alt_index>, <value>]

where <alt_index> is a JSON number and <value> is the datum transcoded to
JSON. However, transcoding this back to CBOR would be lossy without any
other context.

--00000000000083444205d8b0d0a5
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail=
_attr">On Wed, Feb 23, 2022 at 10:48 AM Carsten Bormann &lt;<a href=3D"mail=
to:cabo@tzi.org">cabo@tzi.org</a>&gt; wrote:<br></div><blockquote class=3D"=
gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(20=
4,204,204);padding-left:1ex">
I=E2=80=99m not currently proposing to standardize this, but the cbor diagn=
ostic tools support a transform to tunnel CBOR data items through JSON [0]:=
<br>
<br>
$ echo &quot;122(h&#39;1234&#39;)&quot; | diag2cbor.rb | cbor2json.rb -j<br=
>
{<br>
=C2=A0 &quot;@@!t122&quot;: {<br>
=C2=A0 =C2=A0 &quot;@@!b&quot;: &quot;EjQ&quot;<br>
=C2=A0 }<br>
}<br>
<br>
This works by hijacking JSON object keys starting with @@!; I=E2=80=99m not=
 sure the code handles all cases so we have achieved full transparency yet,=
 but that is a SMOP [1].<br>
<br>
Gr=C3=BC=C3=9Fe, Carsten<br>
<br>
[0]: <a href=3D"https://github.com/cabo/cbor-diag/blob/master/lib/cbor-tran=
sform-j.rb" rel=3D"noreferrer" target=3D"_blank">https://github.com/cabo/cb=
or-diag/blob/master/lib/cbor-transform-j.rb</a><br>
[1]: SMOP =3D Small matter of programming<br></blockquote><div><br></div><d=
iv>I was thinking something as simple as:</div><div><br></div><div>[&lt;alt=
_index&gt;, &lt;value&gt;]=C2=A0</div><div><br></div><div>where &lt;alt_ind=
ex&gt; is a JSON number and &lt;value&gt; is the datum transcoded to JSON. =
However, transcoding this back to CBOR would be lossy without any other con=
text.<br></div></div></div>

--00000000000083444205d8b0d0a5--


From nobody Wed Feb 23 08:10:03 2022
Return-Path: <chrysn@fsfe.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 8A7263A110D for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 08:10:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.234
X-Spam-Level: 
X-Spam-Status: No, score=-1.234 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665] autolearn=no autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2UUqJerEd0Uy for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 08:09:56 -0800 (PST)
Received: from smtp.akis.at (smtp.akis.at [IPv6:2a02:b18:500:a515::f455]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id ADABB3A1111 for <cbor@ietf.org>; Wed, 23 Feb 2022 08:09:54 -0800 (PST)
Received: from poseidon-mailhub.amsuess.com ([IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bd]) by smtp.akis.at (8.17.1/8.17.1) with ESMTPS id 21NG9okR039408 (version=TLSv1.2 cipher=ECDHE-ECDSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 23 Feb 2022 17:09:51 +0100 (CET) (envelope-from chrysn@fsfe.org)
X-Authentication-Warning: smtp.akis.at: Host [IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bd] claimed to be poseidon-mailhub.amsuess.com
Received: from poseidon-mailbox.amsuess.com (hermes.amsuess.com [10.13.13.254]) by poseidon-mailhub.amsuess.com (Postfix) with ESMTP id 19E67D0; Wed, 23 Feb 2022 17:09:50 +0100 (CET)
Received: from hephaistos.amsuess.com (unknown [IPv6:2a02:b18:c13b:8010:eee:cb75:437c:d6a4]) by poseidon-mailbox.amsuess.com (Postfix) with ESMTPSA id B2F07FD; Wed, 23 Feb 2022 17:09:49 +0100 (CET)
Received: (nullmailer pid 831106 invoked by uid 1000); Wed, 23 Feb 2022 16:09:49 -0000
Date: Wed, 23 Feb 2022 17:09:49 +0100
From: chrysn <chrysn@fsfe.org>
To: Carsten Bormann <cabo@tzi.org>
Cc: Michael Peyton Jones <michael.peyton-jones@iohk.io>, Duncan Coutts <duncan@well-typed.com>, cbor@ietf.org, Jared Corduan <jared.corduan@iohk.io>, Alexander Byaly <alexander.byaly@iohk.io>
Message-ID: <YhZcTcCmWVoKNExB@hephaistos.amsuess.com>
References: <CAKoRMYH3MTMi_tX5KHF-O-DTKzopiGqe3fi6XjkPaGCM4823OQ@mail.gmail.com> <7dfd62ccb6c089af90c90f26a8945f23232ecbc1.camel@well-typed.com> <CAKoRMYEOo1Gqfc4W4k3NOLKpFa97Q9YzLCm3r0PJ13V2HJPf3A@mail.gmail.com> <2BBF6463-FDB2-4A8A-B20D-7A1AD976A90D@tzi.org> <CAKoRMYFi8uo2GfHA9s1n+-rMO8Ja9=2qMMzjS9Z=F9r3LFozRQ@mail.gmail.com> <8EA89504-C176-4850-9BB8-C7E7206374FF@tzi.org> <CAKoRMYGmOa0hzEFsJh8kpz0bU5x56Yc9P=DBK-ghU83gXxPv7A@mail.gmail.com> <CAKoRMYGUvmxufQUVyvX2mciq5LCmV0Nz-uE2MJn54GDBB+9DRw@mail.gmail.com> <CAKoRMYF_19V6mu4S9GVqfiNzyQVvvOzX6eYwHp_DtZQoG0xTKg@mail.gmail.com> <4B47F4D7-ADE3-4A22-8A5B-97F4E5FCD933@tzi.org>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="E+X2Ad10vc6frda2"
Content-Disposition: inline
In-Reply-To: <4B47F4D7-ADE3-4A22-8A5B-97F4E5FCD933@tzi.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/STww26cP6RBu-sWiTgT5_enYg4c>
Subject: Re: [Cbor] A CBOR tag for alternatives/unions, request for comments
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 23 Feb 2022 16:10:01 -0000

--E+X2Ad10vc6frda2
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello Carsten,

On Wed, Feb 23, 2022 at 02:16:14PM +0100, Carsten Bormann wrote:
> If we have time in the CBOR meeting today (very likely) and you have
> time and comments, we could complete the discussion and ask IANA to
> register.

I think the text should caution the user to say something about the
alternative number stability, maybe extending the Semantics section like
this:

| Protocols that use these tags should consider and document two factors
| that influence an alternative's interpretation:
|=20
| * Postion. In some protocols, the meaning of an enumerated alternative
|   will depend on the location in the data item surrounding it. This is
|   especially true of protocols that incorporate other protocols.
|=20
| * Stability. Whereas interchange protocols are expected to specify
|   semantics for alternatives in a future-proof way, other use cases
|   (such as debug information or crash recovery) may use alternatives
|   whose meaning is only stable within a software release, or even only
|   for a single build.

BR
Christian

--=20
To use raw power is to make yourself infinitely vulnerable to greater power=
s.
  -- Bene Gesserit axiom

--E+X2Ad10vc6frda2
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEECM1tElX6OodcH7CWOY0REtOkveEFAmIWXE0ACgkQOY0REtOk
veEkQg//cgXfOhBWSpWUQqnameulFDLq3gMLYCelC1qZfSClYVs4sV/RBP0DdH3F
ZCROEfE5GTe1zpu4LcwywgduQSwzEQ6EXVbeLN+5HLXR/yeYfWX/WYxtMIEkvaPQ
sDZk/ocdDjmlDNQ5oJOy37qp6BRf+xLf3bBpnyAqTec26TX3pHD44vDx405WHQHn
UizuUOId5kURnaHDCH6BcewEZAeuuz8aIM9t/4VVxHfSOmOSsMhQwY6o+mhMkUv1
gKo2rpOJqS7ojCgJf/XZic2VAf4DPNpHg7cHrw0rDbL7yE2PN7hgIa3sRb8F2/on
ZDjG1knBFgJiJUZBmKYD7LwE64nVZqp89ZMiniiCvZDaahAgr5b3khb4VDGT73Oi
afWcAT5GnCdXXBOy3hqtMjDytcCx8YfibdHpGdAFPLJwFvqeMtk/Xq7wsuZ5sSMx
RWwz6Fbwskk3UdmJjWck7DqoK6dK1UAnvyIWgSlH4ln9vzSCf1O0miGrp97hYDzF
Br0Ilc/dZ1hhELOcOEX7lZcFAJQGY5VZKDDFCMEINYagFWia/m4XPCuifx83zn6W
G4fdrYIO255xxOFmrPyp8LyoS2NcrvSz6r4VP7tTZU0aPMqPYLR/0eZLRGiq6pfv
IoLl2ckEunoKddt+AxDal0AfpY8PebwdMQmhc5oFqC8xdG5dfuo=
=94D1
-----END PGP SIGNATURE-----

--E+X2Ad10vc6frda2--


From nobody Wed Feb 23 08:10:39 2022
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 5F8313A1111 for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 08:10:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level: 
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rrr-DhiPkbLd for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 08:10:32 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [134.102.50.15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7C8413A110D for <cbor@ietf.org>; Wed, 23 Feb 2022 08:10:32 -0800 (PST)
Received: from [192.168.217.118] (p5089ad4f.dip0.t-ipconnect.de [80.137.173.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4K3gxK2pWVzDCfn; Wed, 23 Feb 2022 17:10:29 +0100 (CET)
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: <CAKoRMYEarGwqVZcUX0PskLyJUtRNHRUSJ0zGjNTrwGUwkXFrFQ@mail.gmail.com>
Date: Wed, 23 Feb 2022 17:10:29 +0100
Cc: Emile Cormier <emile.cormier.jr@gmail.com>, Duncan Coutts <duncan@well-typed.com>, cbor@ietf.org, Jared Corduan <jared.corduan@iohk.io>, Alexander Byaly <alexander.byaly@iohk.io>
X-Mao-Original-Outgoing-Id: 667325428.893908-594c07edf07096f05b142938505c0baf
Content-Transfer-Encoding: quoted-printable
Message-Id: <8A4B7EFC-6187-4FA3-888E-9D95D6C79400@tzi.org>
References: <9300a81abc33a45a9f3c7c1c62da88908280e54a.camel@well-typed.com> <1D3EF118-0223-43BC-81B2-369D4515DB21@tzi.org> <1ce2c092d3214d5fdce59435fc10b084c1ba48ca.camel@well-typed.com> <DFCBE61C-35B2-42A2-8D1A-A633CF939154@tzi.org> <2e10456c5791a422bf7218e7b84051f2b7121b66.camel@well-typed.com> <CAKoRMYGcwrhVWd-J3dX75WZfc+T_oyb6NCUNaeCXMW5_-VYdTw@mail.gmail.com> <52EDB93C-827A-465F-B644-51B3EF590D06@tzi.org> <C9D895BB-40E6-431F-958F-AC031DE4FB58@tzi.org> <CAKoRMYG9X0JF4ehkMc30_UNi0JtT2YMeG4RgxznS6O3Di6pkRA@mail.gmail.com> <CAKoRMYHwewaYxkX=CsfETBbdV7c9U97jfbd9xg=PyrMX5vJhnA@mail.gmail.com> <3B3B7EF0-152B-4015-8485-B204F7AEFFBC@tzi.org> <CAKoRMYFbEG=TkuZPPOiXv2DjEh23Ujd_Q44kQqiWPGc_0GMTuQ@mail.gmail.com> <CAKoRMYHnF6fGJp1dTrJnRHFTBOhreLRwzR_=cCckW1nBXOEz0A@mail.gmail.com> <E8A9E016-2248-4BB9-9864-C6C7D52A4AE5@tzi.org> <CAKoRMYE+gmWyCL9zYDa-O-c3KV_iuzgYuS+Q4fi=U7VHDNDtkQ@mail.gmail.com> <CAKoRMYFdAr1YY3mtmY0NU5X9Bk8_4WYh7bC0CtXpZc3toLSu8g@mail.gmail.com> <7FA54553-5421-4C45-B7DD-E9B2D379F46F@tzi.org> <CAKoRMYH3MTMi_tX5KHF-O-DTKzopiGqe3fi6XjkPaGCM4823OQ@mail.gmail.com> <7dfd62ccb6c089af90c90f26a8945f23232ecbc1.camel@well-typed.com> <CAKoRMYEOo1Gqfc4W4k3NOLKpFa97Q9YzLCm3r0PJ13V2HJPf3A@mail.gmail.com> <2BBF6463-FDB2-4A8A-B20D-7A1AD976A90D@tzi.org> <CAKoRMYFi8uo2GfHA9s1n+-rMO8Ja9=2qMMzjS9Z=F9r3LFozRQ@mail.gmail.com> <8EA89504-C176-4850-9BB8-C7E7206374FF@tzi.org> <CAKoRMYGmOa0hzEFsJh8kpz0bU5x56Yc9P=DBK-ghU83gXxPv7A@mail.gmail.com> <CAKoRMYGUvmxufQUVyvX2mciq5LCmV0Nz-uE2MJn54GDBB+9DRw@mail.gmail.com> <CAKoRMYF_19V6mu4S9GVqfiNzyQVvvOzX6eYwHp_DtZQoG0xTKg@mail.gmail.com> <4B47F4D7-ADE3-4A22-8A5B-97F4E5FCD933@tzi.org> <CAM70yxACa4ZgOojHLMRv+9Bpuv7dPFtupm+tnrnDZC_i_Dsr8g@mail.gmail.com> <EB822234-89C2-4CFA-8807-2BD2E97D1E60@tzi.org> <CAM70yxAG_rMc8ANWgFvyAao_G5cLNOEL0mrfD8tLmJVxtn_8SA@mail.gmail.com> <CAKoRMYEarGwqVZcUX0PskLyJUtRNHRUSJ0zGjNTrwGUwkXFrFQ@mail.gmail.com>
To: Michael Peyton Jones <michael.peyton-jones@iohk.io>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/ZYvRD1uI-YmMx0rplV0dDve_LKQ>
Subject: Re: [Cbor] A CBOR tag for alternatives/unions, request for comments
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 23 Feb 2022 16:10:38 -0000

On 2022-02-23, at 16:55, Michael Peyton Jones =
<michael.peyton-jones@iohk.io> wrote:
>=20
> I do think we would prefer to keep the overlapping encoding. Many =
other kinds of CBOR encodings have redundancy, starting right from the =
basics with the encoding of numbers.

Yes.  In 2013, for a while I was hoping to fix this for the entirety of =
CBOR (like we did in CoAP), but was advised that was too radical.  There =
also was the occasional use case for non-preferred encoding.

But I don=E2=80=99t think we are out there actively creating more of =
these cases.

> We believe that not only is this approach consistent, but it's =
actually helpful: it allows users to decide whether they care more about =
flexibility or regularity.

Well, in the non-overlapping approach, they get both! :-)

> If you want, you *can* just encode everything with the long form and =
not worry about the compact form. This simplicity is sometimes helpful.

I think that spending two ifs in the encoder is OK here.
(The decoder will need to handle all cases anyway, so there is no =
advantage.)

> Of course, we can (and should) require that the canonical version be =
the most compact.

Which is the case when we do non-overlapping encodings.

Gr=C3=BC=C3=9Fe, Carsten

(Leaving the rest of the message intact as that is still in some =
moderator queue.)

>=20
> Best wishes,
> Michael
>=20
> On Wed, 23 Feb 2022 at 15:06, Emile Cormier =
<emile.cormier.jr@gmail.com> wrote:
> On Wed, Feb 23, 2022 at 10:48 AM Carsten Bormann <cabo@tzi.org> wrote:
> I=E2=80=99m not currently proposing to standardize this, but the cbor =
diagnostic tools support a transform to tunnel CBOR data items through =
JSON [0]:
>=20
> $ echo "122(h'1234')" | diag2cbor.rb | cbor2json.rb -j
> {
>   "@@!t122": {
>     "@@!b": "EjQ"
>   }
> }
>=20
> This works by hijacking JSON object keys starting with @@!; I=E2=80=99m =
not sure the code handles all cases so we have achieved full =
transparency yet, but that is a SMOP [1].
>=20
> Gr=C3=BC=C3=9Fe, Carsten
>=20
> [0]: =
https://github.com/cabo/cbor-diag/blob/master/lib/cbor-transform-j.rb
> [1]: SMOP =3D Small matter of programming
>=20
> I was thinking something as simple as:
>=20
> [<alt_index>, <value>]=20
>=20
> where <alt_index> is a JSON number and <value> is the datum transcoded =
to JSON. However, transcoding this back to CBOR would be lossy without =
any other context.
>=20
>=20
> --=20
>=20
> Michael Peyton Jones
> Software Engineering Lead | London, UK
>=20
> Website: www.iohk.io
> Skype: michael.s.pj
> Twitter: @mpeytonjones
> PGP Key ID: 29F64616
>=20
> =20
>=20
>   =20
>=20
>=20
> This e-mail and any file transmitted with it are confidential and =
intended solely for the use of the recipient(s) to whom it is addressed. =
Dissemination, distribution, and/or copying of the transmission by =
anyone other than the intended recipient(s) is prohibited. If you have =
received this transmission in error please notify IOHK immediately and =
delete it from your system. E-mail transmissions cannot be guaranteed to =
be secure or error free. We do not accept liability for any loss, =
damage, or error arising from this transmission


From michael.peyton-jones@iohk.io  Wed Feb 23 07:55:21 2022
Return-Path: <michael.peyton-jones@iohk.io>
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 70FA43A110C for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 07:55:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.088
X-Spam-Level: 
X-Spam-Status: No, score=-2.088 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_REMOTE_IMAGE=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=iohk.io
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CYMbZgFJDSW9 for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 07:55:16 -0800 (PST)
Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6BB4F3A1106 for <cbor@ietf.org>; Wed, 23 Feb 2022 07:55:16 -0800 (PST)
Received: by mail-wr1-x42e.google.com with SMTP id v21so5092326wrv.5 for <cbor@ietf.org>; Wed, 23 Feb 2022 07:55:16 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iohk.io; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=byTao5+uE8uCn+KxGGijC1i+BKbPecku6hlVrJn0aTU=; b=sTOJEuOe3KfM1AScuFYkyAC6yc9cXrHz2iib4gU6Oo0SlPeVMr9KCyKj4iG7SIoQAW lxZk+zwzPXU1oJUnqEXE36IcMFpYCTonpymKFo14vu+bWUSVOwLljOoxnkIodhmVmyZN 6/Xp5Dar5sox6UvC+tVqWYQGjqPOjniBQ8Ma881zcv90QmD0XHmlJByGfuzeCbQohgtm 6Ewn4gi2MD37M3CgU2Ry+c9dyQg3+zL2Q99OSy8N8V927owFiWQRm33noBgmyV/zpp0a 0lcDkI1KaVB73RS9LQjdmuJa1zVALywK+GYJe9wy3nGACqElP8zAgA/wMJRnePMlbUZR Erjg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=byTao5+uE8uCn+KxGGijC1i+BKbPecku6hlVrJn0aTU=; b=jzOUJKpY93V/+/ZOTeppvGXYUTjmUFkDdJI28DOclMZSS4JjTf/npP/dg4BUcyw/PH KQwFonx0MuBi02YE2s1F/IbtLOGrkC6p6uWcbYZJwd3/G8ppsiytK2oaClmJStu1yQar +rciS+7dMQnzU8GJD48pLGkhEEpYgefF1tkAjh3RPrAPlr19YbKi336avhv1fAy7sd/U 2r6u75ZIuf4C0NCxGwb7iEzWEciPeofB9pT+MmU6iiqU2t2kVAupoEMWJ4fLhynlRW4J OYQgjBGSECoNBUCOucm0pfG73RmGRZCLTr/aHELF0RTD33ilYlIijWla+8nVTuWDgMd/ 2O5A==
X-Gm-Message-State: AOAM531UmriAOhvqSaD704WwqIn0Yl4x+rX0psoXn+Yc3AjaDmMjKFN3 fnkcs+NFEscgNkXrHGXKA+Bfac7D9BIKQCj+UvuT4Q==
X-Google-Smtp-Source: ABdhPJxWP91UF2/lmjCNHXofAkdhDZJ8S/Ipy5HSbXUakjGn3HQLiWaLnXCw9zpE2CG+W4mVnTINtf7P7ZQwpbP5nKA=
X-Received: by 2002:adf:f804:0:b0:1ed:c0b4:c597 with SMTP id s4-20020adff804000000b001edc0b4c597mr228794wrp.66.1645631714244; Wed, 23 Feb 2022 07:55:14 -0800 (PST)
MIME-Version: 1.0
References: <9300a81abc33a45a9f3c7c1c62da88908280e54a.camel@well-typed.com> <1D3EF118-0223-43BC-81B2-369D4515DB21@tzi.org> <1ce2c092d3214d5fdce59435fc10b084c1ba48ca.camel@well-typed.com> <DFCBE61C-35B2-42A2-8D1A-A633CF939154@tzi.org> <2e10456c5791a422bf7218e7b84051f2b7121b66.camel@well-typed.com> <CAKoRMYGcwrhVWd-J3dX75WZfc+T_oyb6NCUNaeCXMW5_-VYdTw@mail.gmail.com> <52EDB93C-827A-465F-B644-51B3EF590D06@tzi.org> <C9D895BB-40E6-431F-958F-AC031DE4FB58@tzi.org> <CAKoRMYG9X0JF4ehkMc30_UNi0JtT2YMeG4RgxznS6O3Di6pkRA@mail.gmail.com> <CAKoRMYHwewaYxkX=CsfETBbdV7c9U97jfbd9xg=PyrMX5vJhnA@mail.gmail.com> <3B3B7EF0-152B-4015-8485-B204F7AEFFBC@tzi.org> <CAKoRMYFbEG=TkuZPPOiXv2DjEh23Ujd_Q44kQqiWPGc_0GMTuQ@mail.gmail.com> <CAKoRMYHnF6fGJp1dTrJnRHFTBOhreLRwzR_=cCckW1nBXOEz0A@mail.gmail.com> <E8A9E016-2248-4BB9-9864-C6C7D52A4AE5@tzi.org> <CAKoRMYE+gmWyCL9zYDa-O-c3KV_iuzgYuS+Q4fi=U7VHDNDtkQ@mail.gmail.com> <CAKoRMYFdAr1YY3mtmY0NU5X9Bk8_4WYh7bC0CtXpZc3toLSu8g@mail.gmail.com> <7FA54553-5421-4C45-B7DD-E9B2D379F46F@tzi.org> <CAKoRMYH3MTMi_tX5KHF-O-DTKzopiGqe3fi6XjkPaGCM4823OQ@mail.gmail.com> <7dfd62ccb6c089af90c90f26a8945f23232ecbc1.camel@well-typed.com> <CAKoRMYEOo1Gqfc4W4k3NOLKpFa97Q9YzLCm3r0PJ13V2HJPf3A@mail.gmail.com> <2BBF6463-FDB2-4A8A-B20D-7A1AD976A90D@tzi.org> <CAKoRMYFi8uo2GfHA9s1n+-rMO8Ja9=2qMMzjS9Z=F9r3LFozRQ@mail.gmail.com> <8EA89504-C176-4850-9BB8-C7E7206374FF@tzi.org> <CAKoRMYGmOa0hzEFsJh8kpz0bU5x56Yc9P=DBK-ghU83gXxPv7A@mail.gmail.com> <CAKoRMYGUvmxufQUVyvX2mciq5LCmV0Nz-uE2MJn54GDBB+9DRw@mail.gmail.com> <CAKoRMYF_19V6mu4S9GVqfiNzyQVvvOzX6eYwHp_DtZQoG0xTKg@mail.gmail.com> <4B47F4D7-ADE3-4A22-8A5B-97F4E5FCD933@tzi.org> <CAM70yxACa4ZgOojHLMRv+9Bpuv7dPFtupm+tnrnDZC_i_Dsr8g@mail.gmail.com> <EB822234-89C2-4CFA-8807-2BD2E97D1E60@tzi.org> <CAM70yxAG_rMc8ANWgFvyAao_G5cLNOEL0mrfD8tLmJVxtn_8SA@mail.gmail.com>
In-Reply-To: <CAM70yxAG_rMc8ANWgFvyAao_G5cLNOEL0mrfD8tLmJVxtn_8SA@mail.gmail.com>
From: Michael Peyton Jones <michael.peyton-jones@iohk.io>
Date: Wed, 23 Feb 2022 15:55:02 +0000
Message-ID: <CAKoRMYEarGwqVZcUX0PskLyJUtRNHRUSJ0zGjNTrwGUwkXFrFQ@mail.gmail.com>
To: Emile Cormier <emile.cormier.jr@gmail.com>
Cc: Carsten Bormann <cabo@tzi.org>, Duncan Coutts <duncan@well-typed.com>, cbor@ietf.org, Jared Corduan <jared.corduan@iohk.io>, Alexander Byaly <alexander.byaly@iohk.io>
Content-Type: multipart/alternative; boundary="000000000000c24de405d8b17dae"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/C_yo1YLhRxZHousTZFwaLMOcMO4>
X-Mailman-Approved-At: Wed, 23 Feb 2022 08:11:45 -0800
Subject: Re: [Cbor] A CBOR tag for alternatives/unions, request for comments
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 23 Feb 2022 15:57:07 -0000

--000000000000c24de405d8b17dae
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I do think we would prefer to keep the overlapping encoding. Many other
kinds of CBOR encodings have redundancy, starting right from the basics
with the encoding of numbers.

We believe that not only is this approach consistent, but it's actually
helpful: it allows users to decide whether they care more about flexibility
or regularity. If you want, you *can* just encode everything with the long
form and not worry about the compact form. This simplicity is sometimes
helpful.

Of course, we can (and should) require that the canonical version be the
most compact.

Best wishes,
Michael

On Wed, 23 Feb 2022 at 15:06, Emile Cormier <emile.cormier.jr@gmail.com>
wrote:

> On Wed, Feb 23, 2022 at 10:48 AM Carsten Bormann <cabo@tzi.org> wrote:
>
>> I=E2=80=99m not currently proposing to standardize this, but the cbor di=
agnostic
>> tools support a transform to tunnel CBOR data items through JSON [0]:
>>
>> $ echo "122(h'1234')" | diag2cbor.rb | cbor2json.rb -j
>> {
>>   "@@!t122": {
>>     "@@!b": "EjQ"
>>   }
>> }
>>
>> This works by hijacking JSON object keys starting with @@!; I=E2=80=99m =
not sure
>> the code handles all cases so we have achieved full transparency yet, bu=
t
>> that is a SMOP [1].
>>
>> Gr=C3=BC=C3=9Fe, Carsten
>>
>> [0]:
>> https://github.com/cabo/cbor-diag/blob/master/lib/cbor-transform-j.rb
>> [1]: SMOP =3D Small matter of programming
>>
>
> I was thinking something as simple as:
>
> [<alt_index>, <value>]
>
> where <alt_index> is a JSON number and <value> is the datum transcoded to
> JSON. However, transcoding this back to CBOR would be lossy without any
> other context.
>


--=20

*Michael Peyton Jones*
Software Engineering Lead | London, UK

Website: www.iohk.io <http://iohk.io>
Skype: michael.s.pj
Twitter: @mpeytonjones
PGP Key ID: 29F64616

[image: Input Output] <http://iohk.io>

[image: Twitter] <https://twitter.com/InputOutputHK> [image: Github]
<https://github.com/input-output-hk> [image: LinkedIn]
<https://www.linkedin.com/company/input-output-global>


This e-mail and any file transmitted with it are confidential and intended
solely for the use of the recipient(s) to whom it is addressed.
Dissemination, distribution, and/or copying of the transmission by anyone
other than the intended recipient(s) is prohibited. If you have received
this transmission in error please notify IOHK immediately and delete it
from your system. E-mail transmissions cannot be guaranteed to be secure or
error free. We do not accept liability for any loss, damage, or error
arising from this transmission

--000000000000c24de405d8b17dae
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>I do think we would prefer to keep the overlapping en=
coding. Many other kinds of CBOR encodings have redundancy, starting right =
from the basics with the encoding of numbers.</div><div><br></div><div>We b=
elieve that not only is this approach consistent, but it&#39;s actually hel=
pful: it allows users to decide whether they care more about flexibility or=
 regularity. If you want, you *can* just encode everything with the long fo=
rm and not worry about the compact form. This simplicity is sometimes helpf=
ul.</div><div><br></div><div>Of course, we can (and should) require that th=
e canonical version be the most compact.<br></div><div><br></div><div></div=
><div>Best wishes,</div><div>Michael<br></div></div><br><div class=3D"gmail=
_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, 23 Feb 2022 at 15:06,=
 Emile Cormier &lt;<a href=3D"mailto:emile.cormier.jr@gmail.com">emile.corm=
ier.jr@gmail.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" =
style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pa=
dding-left:1ex"><div dir=3D"ltr"><div class=3D"gmail_quote"><div dir=3D"ltr=
" class=3D"gmail_attr">On Wed, Feb 23, 2022 at 10:48 AM Carsten Bormann &lt=
;<a href=3D"mailto:cabo@tzi.org" target=3D"_blank">cabo@tzi.org</a>&gt; wro=
te:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px =
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I=E2=80=99m not currently proposing to standardize this, but the cbor diagn=
ostic tools support a transform to tunnel CBOR data items through JSON [0]:=
<br>
<br>
$ echo &quot;122(h&#39;1234&#39;)&quot; | diag2cbor.rb | cbor2json.rb -j<br=
>
{<br>
=C2=A0 &quot;@@!t122&quot;: {<br>
=C2=A0 =C2=A0 &quot;@@!b&quot;: &quot;EjQ&quot;<br>
=C2=A0 }<br>
}<br>
<br>
This works by hijacking JSON object keys starting with @@!; I=E2=80=99m not=
 sure the code handles all cases so we have achieved full transparency yet,=
 but that is a SMOP [1].<br>
<br>
Gr=C3=BC=C3=9Fe, Carsten<br>
<br>
[0]: <a href=3D"https://github.com/cabo/cbor-diag/blob/master/lib/cbor-tran=
sform-j.rb" rel=3D"noreferrer" target=3D"_blank">https://github.com/cabo/cb=
or-diag/blob/master/lib/cbor-transform-j.rb</a><br>
[1]: SMOP =3D Small matter of programming<br></blockquote><div><br></div><d=
iv>I was thinking something as simple as:</div><div><br></div><div>[&lt;alt=
_index&gt;, &lt;value&gt;]=C2=A0</div><div><br></div><div>where &lt;alt_ind=
ex&gt; is a JSON number and &lt;value&gt; is the datum transcoded to JSON. =
However, transcoding this back to CBOR would be lossy without any other con=
text.<br></div></div></div>
</blockquote></div><br clear=3D"all"><br>-- <br><div dir=3D"ltr" class=3D"g=
mail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr=
"><br><b style=3D"color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:11=
6%">Michael Peyton Jones</b><br>
<span style=3D"color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:100%"=
><span style=3D"color:rgb(255,0,0)">Software Engineering Lead |</span> Lond=
on, UK</span><br><br>

<span style=3D"color:rgb(153,153,153);font-family:Helvetica,Arial;font-size=
:85%">Website: <a href=3D"http://iohk.io" style=3D"color:rgb(255,0,0)" targ=
et=3D"_blank">www.iohk.io</a></span><br>
<span style=3D"color:rgb(153,153,153);font-family:Helvetica,Arial;font-size=
:85%">Skype: michael.s.pj</span><br>
<span style=3D"color:rgb(153,153,153);font-family:Helvetica,Arial;font-size=
:85%">Twitter: @mpeytonjones</span><br>
<span style=3D"color:rgb(153,153,153);font-family:Helvetica,Arial;font-size=
:85%">PGP Key ID: 29F64616</span><br>
<br>

<a href=3D"http://iohk.io" target=3D"_blank"><img src=3D"https://static.ioh=
k.io/logo/logo-email.png" alt=3D"Input Output" width=3D"200" height=3D"46">=
</a>
<br>
<br>
<a href=3D"https://twitter.com/InputOutputHK" target=3D"_blank"><img src=3D=
"https://static.iohk.io/images/ic-tw.png" alt=3D"Twitter" width=3D"18" heig=
ht=3D"16"></a>
<a href=3D"https://github.com/input-output-hk" target=3D"_blank"><img src=
=3D"https://static.iohk.io/images/ic-gh.png" alt=3D"Github" width=3D"21" he=
ight=3D"16"></a>
<a href=3D"https://www.linkedin.com/company/input-output-global" target=3D"=
_blank"><img src=3D"https://static.iohk.io/images/ic-li.png" alt=3D"LinkedI=
n" width=3D"19" height=3D"16"></a>

<br>
<br>
<br>

<span style=3D"color:rgb(68,68,68);font-family:Helvetica,Arial;font-size:77=
%"><small>This
 e-mail and any file transmitted with it are confidential and intended=20
solely for the use of the recipient(s) to whom it is addressed.=20
Dissemination, distribution, and/or copying of the transmission by=20
anyone other than the intended recipient(s) is prohibited. If you have=20
received this transmission in error please notify IOHK immediately and=20
delete it from your system. E-mail transmissions cannot be guaranteed to
 be secure or error free. We do not accept liability for any loss,=20
damage, or error arising from this transmission</small></span>
</div></div></div></div></div></div>

--000000000000c24de405d8b17dae--


From nobody Wed Feb 23 11:08:22 2022
Return-Path: <mcr+ietf@sandelman.ca>
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 E06CF3A0745; Wed, 23 Feb 2022 11:08:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.099
X-Spam-Level: 
X-Spam-Status: No, score=-7.099 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=sandelman.ca
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PDvhojYzsoNL; Wed, 23 Feb 2022 11:08:14 -0800 (PST)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [IPv6:2607:f0b0:f:3:216:3eff:fe7c:d1f3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4427A3A0658; Wed, 23 Feb 2022 11:08:13 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by tuna.sandelman.ca (Postfix) with ESMTP id 5DF6639089; Wed, 23 Feb 2022 14:16:44 -0500 (EST)
Received: from tuna.sandelman.ca ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 7K1g-jK-zXsE; Wed, 23 Feb 2022 14:16:42 -0500 (EST)
Received: from sandelman.ca (obiwan.sandelman.ca [IPv6:2607:f0b0:f:2::247]) by tuna.sandelman.ca (Postfix) with ESMTP id 1496F39085; Wed, 23 Feb 2022 14:16:42 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sandelman.ca; s=mail; t=1645643802; bh=JnwxYxOMndmEKkxBDiVfouucciAfxullEWDiSdCICgA=; h=From:To:cc:Subject:In-Reply-To:References:Date:From; b=9LZUt6QbwtgBe7mX8uKivlC+FZaDf1tpd4Q18xvwzYocNOl+6n8tL7j0w1koKD2ag 8AYCFj9iVTGZxX0JzztIl+EqN7FCcLPxXQBo6z9Qal+xFxJBQ2x95LiLN3TuZ7kUD8 PDgcd40XrSqbAVtYMUzdCpCqMhRYNyNRCBxzHbujHPuUtJlPeTnSZogYFDfU9N7S6K roDnLy+fAX4yeRZmRM5euIzDDbGK6/E8ukKpAYVAtVdiXPNK6zSrFMNrKsTp+dyi6E s/M1W4qxiZIg1OmlcehIDJYWCIzafTeD6+FxFTSQAkXTyA1s51McrDFDpTOjqTj1Yt Mat+GeBhUhKOw==
Received: from localhost (localhost [IPv6:::1]) by sandelman.ca (Postfix) with ESMTP id 662DE335; Wed, 23 Feb 2022 14:08:07 -0500 (EST)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: Christian =?us-ascii?Q?=3D=3Fiso-8859-1=3FQ=3FAms=3DFCss=3F=3D?= <christian@amsuess.com>
cc: cbor@ietf.org, draft-ietf-cbor-file-magic@ietf.org
In-Reply-To: <YhTi7sT7O7xzjLQz@hephaistos.amsuess.com>
References: <164442074235.12313.4216473952031101282@ietfa.amsl.com> <YgPhxUmjDUqLTEtK@hephaistos.amsuess.com> <YhTi7sT7O7xzjLQz@hephaistos.amsuess.com>
X-Mailer: MH-E 8.6+git; nmh 1.7+dev; GNU Emacs 26.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature"
Date: Wed, 23 Feb 2022 14:08:07 -0500
Message-ID: <11503.1645643287@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/M48zms_0oMAcObK_c9ukRx_pRyE>
Subject: Re: [Cbor] Chair review of cbor-file-magic 08
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 23 Feb 2022 19:08:20 -0000

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


https://github.com/cbor-wg/cbor-magic-number/pull/17/files

Christian Ams=C3=BCss <christian@amsuess.com> wrote:
    > * "for each major type of object that they might store on disk": It is
    > not used as a proper name, but "major type" might ring the bell of
    > "first 3 bits" of CBOR, which AIU is not intended here.

    >   (Suggestion: "for each kind of object that they might store on
    > disk").

done.

    > * 5.3: At latest here, I'd have expected to read something about the
    > information that is lost when using this tag with 2.2. Maybe there
    > should be a line (not for IANA but for users, so maybe in a different
    > section) that outlines when this works with (non)CBOR content formats
    > and with which encodings.

I've tried how to understand this comment, but I'm failing.
Which information is lost?

    >   I think I understand now that the 5.3 tags can be used with either
    > 2.2, 2.3 or C (55899, 55800 and 55801), but

good...

    >   * with 55899 the ct tags can only be used if the content format is a
    > CBOR content format and coding is identity (and then tags a value)

55899 marks CBOR, so the content had better be CBOR.

    > with 55900 the ct tags can only be used if the content format is a
    > CBOR-sequence content format and coding is identity (and then tags a
    > byte string)

    > * with 55901 the ct tags can always be used, and tag a
    > byte string (which is also encoded according to the coding that is pa=
rt
    > of the ct)

55901 could be used with any content, because it makes no promise about the=
 content.
For CBOR encoded things, any of these tags could be used.
Are you suggesting that we tell people not to use 55901 with CBOR content?

    > * (Maybe security) considerations: 3.2 talks of trivially concatenated
    > data items. If CBOR Tag Sequence is used and the data gets literally
    > "concatenated", (say, `cat *.cborseq > outfile`), one might wind up
    > with self-described tags in the middle of the sequence. (As we do with
    > BOMs).

I have added:
https://github.com/cbor-wg/cbor-magic-number/commit/23c4176796d83e4d69ba56a=
b8a9b7f45cd691272

  The program involved may throw errors or warnings on the CBOR Tag Sequenc=
e if they have not yet been updated, but this may not be a problem.
  -If it is, then consideration should be given to CBOR Tag Wrapped.

  +There are situations where multiple objects may be concatenated into a s=
ingle file.
  +If each object is preceeded by a a CBOR Tag Sequence then there may be m=
ultiple Tag Sequences in the file.
  +If it is, then consideration should be given to CBOR Tag Wrapped instead.

  +It is even possible that objects are of different types, and this may be=
 a feature or a bug.

  +As an example from legacy PEM encoded PKIX certificates, many programs
  +accept a series of PKIX certificates in a single file in order to set up=
 a
  +certificate chain.
  +The file would contain not just the End-Entity (EE) certificate, but also
  +any subordinate certification authorities (CA) needed to validate the EE.
  +This mechanism actually only works for PEM encoded certificates, and not
  +DER encoded certificates.
  +One of the reasons for this specification is to make sure that CBOR
  +encoded certificates do not suffer from this problem.

  +As an example of mixing of types, some TLS server programs also can acce=
pt
  +both their PEM encoded private key, and their PEM encoded certificate in
  +the same file.

    >   Have BOMs caused issues in the past? If so, would you care for grave
    > words we can haul against those who repeat inner-BOMs with CBOR?

I won't talk about BOMs.
My understanding is that they were a problem until people figured out that
they could be dropped.

    > * A.1: This appears to be in direct conflict with the 2.2.1 example
    > (where the same tag is used with a non-bstr content). By the above the
    > limitation to bstr may still make sense, but only in the context of a
    > 55800 or 55801 tag (but there, the tagged value is always not only bs=
tr
    > but even precisely 'BOR'). Maybe the example would be clearer if it
    > would reference one of 2.2, 2.3 and appendix C.

I think that you are having a problem with A.1 wrapping a CBOR thing in
55801?

=2D-
]               Never tell me the odds!                 | ipv6 mesh network=
s [
]   Michael Richardson, Sandelman Software Works        |    IoT architect =
  [
]     mcr@sandelman.ca  http://www.sandelman.ca/        |   ruby on rails  =
  [


=2D-
Michael Richardson <mcr+IETF@sandelman.ca>   . o O ( IPv6 I=C3=B8T consulti=
ng )
           Sandelman Software Works Inc, Ottawa and Worldwide





--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iPMEAQEKAB0WIQSk7ZHEG9TCGBNASfm/sjw/rPYc8wUCYhaGFwAKCRC/sjw/rPYc
8578Bf92mNGgJFvqoYpuyfMsCvohV02bFry1gEqmUihPB5nCq4Lt4+CydCk9eonV
075n8fOc+/5by6+3jOMQFa2Ygz9j/UKofQ6mWgbxgZOn3Ag8B1wXL2m3rxmJhy/j
KpU5AhH0lk6q+LhshotonDaAL7cGw9/oNOlFfv9M60bRVKRTMeZ+Wp2JxIUnUIMT
eOwrJ1+y6GgfQsuyAiZNr0tomZHKUf41kejrBhh1Mcq4s9DINLLArLf/sZFG3BAl
WCRSfQM=
=2HX7
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Wed Feb 23 13:08:48 2022
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 336C73A0BD3; Wed, 23 Feb 2022 13:08:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SdRF7xOtfoIe; Wed, 23 Feb 2022 13:08:40 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [IPv6:2001:638:708:32::15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2DF823A0CC3; Wed, 23 Feb 2022 13:08:40 -0800 (PST)
Received: from smtpclient.apple (p5089ad4f.dip0.t-ipconnect.de [80.137.173.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4K3pYH0MQxzDCc3; Wed, 23 Feb 2022 22:08:35 +0100 (CET)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.60.0.1.1\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <E5AD55D7-33B2-4E50-83EA-5BD1C1462F01@island-resort.com>
Date: Wed, 23 Feb 2022 22:08:34 +0100
Cc: "rats@ietf.org" <rats@ietf.org>, cbor@ietf.org, "cose@ietf.org" <cose@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <2A13AF29-6309-4FA3-9A84-59D4E0C8F089@tzi.org>
References: <e8995f0c-ad85-f702-da6b-051ffdc4cb08@gmail.com> <DBBPR08MB5915B874FD16107A7B0105AAFA3A9@DBBPR08MB5915.eurprd08.prod.outlook.com> <1a16c80d-40cd-baba-b1ce-2033dd0db294@gmail.com> <D22D0D63-F76C-48B3-A034-F8B5B2BB6005@tzi.org> <2c8be442-9899-d117-155c-f6f2096b7055@gmail.com> <92C7CF7C-ED23-41B3-AB32-8438C4C88C20@tzi.org> <14c8d106-3b4b-f973-94b8-018852ff4769@gmail.com> <8C2C6592-D5B9-430A-B878-E1009E9BCF22@tzi.org> <AB9F0C55-9C23-43F1-A83F-91D4159C888F@island-resort.com> <59939C29-5370-4385-AE61-A21ADDC0D194@tzi.org> <ED025590-3CA0-42B8-B50E-030D94FA88D6@island-resort.com> <E74C7303-E7D5-45EA-886C-158DB6D83844@tzi.org> <E5AD55D7-33B2-4E50-83EA-5BD1C1462F01@island-resort.com>
To: Laurence Lundblade <lgl@island-resort.com>
X-Mailer: Apple Mail (2.3693.60.0.1.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/q_oywLlH6HXPmtwnr0FHOIi7x9s>
Subject: Re: [Cbor] [COSE] [Rats] RAM requirements for COSE/CWT
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 23 Feb 2022 21:08:46 -0000

(Pulled in CBOR WG because this is a recurring theme:)

Hi Laurence,

>=20
> I know in reality most decoders will handle non-preferred =
serialization, but I don=E2=80=99t see anything in section 5.2 that says =
that they must. (non-preferred is still well formed).

What part of the first sentence of section 5.2:

>> A generic CBOR decoder can decode all well-formed encoded CBOR data =
items and present the data items to an application.

...could we have phrased better?

>=20
> Pulling an ldexp library could be a big deal. It could increase code =
size by a lot.

Yes.=20
I should probably write some alternative C code that is a couple lines =
longer but doesn=E2=80=99t need ldexp.
(But what do you do with the binary32 then?)

>>=20
>> This discussion was more about lat/lon. =20
>> cti (label 7) is a byte string, so there is no such problem there.
>=20
> Lat/long needs double precision float to be useful to beings the size =
of humans on a planet of earth's size. Half-precision has so little =
precision on a planet of earth's size that it is useless for location.

That is not what this is about.

Saying =E2=80=9CYou need 16 bits to express the unsigned integer weight =
of a street vehicle in kg=E2=80=9D does not mean that I can=E2=80=99t =
encode the weight of my bike in 8 bits.
What the current text in EAT says is equivalent to "you can=E2=80=99t =
ever use 8 bits because some vehicles need 16".  That is not smart.

> I mis-remembered =E2=80=9Ciat=E2=80=9D as =E2=80=9Ccti=E2=80=9D. Iat =
is a time stamp. A uint64 can represent everything needed for a time =
stamp, 1 second precision and +/- 500 million years. Float adds no =
value.

Right, but that is OK: It is a restriction at the data model level.  You =
are asking the application not to feed floats into the generic encoder.

(Note that we strengthened the little wall between integer and floating =
point for RFC 8949, after seeing that RFC 7049 was confusing people a =
lot.)

>=20
> So EAT
> - disallows half-precision in location, but allows doubles to relieve =
a decoder from implementing half-precision

Bad.  Half-precision (binary16) is not a different type at the data =
model level, it is just an efficient way to represent certain numbers in =
your data model.
Binary16 has a significand [sic] precision of 11 bits.  Binary32 has 24 =
bits.
So if you feed random binary32 lat/lon (~ meter precision) to your =
generic encoder, every 8192th will be encoded in half-precision (*).

Since lat/lon values are probably approximately evenly distributed, that =
by itself is not a reason to implement half-precision.
The fact that CBOR preferred encoding does employ half-precision is.
Deviating from that by disallowing binary16 is expensive: You no longer =
can employ generic encoders.

Don=E2=80=99t do that.

> - disallows float for iat to relieve a decoder from implementing =
float, assuming it is not implementing location (many EAT =
implementations will not support location)

Good(**).  That selection of integer second timestamps is a part of your =
data model. =20
You can do that, and no generic encoder will suddenly turn your integer =
iat number into a float.
(Again, with RFC 7049, it possibly could have, but we fixed that.)

Gr=C3=BC=C3=9Fe, Carsten

(*) Note that a similar thing happens in JSON: numbers that happen to be =
whole numbers will be encoded without fractional parts (10.0 becomes =
10).
In certain decoder implementations, that makes them a different =E2=80=9Ct=
ype" than 10.0 or 1e1 or 0.1e2 etc., causing breakage.
But the JSON data model only has numbers, not integers as a separate, =
incompatible type, so these decoders are broken with applications that =
simply expect numbers.
(Find ISO 6093:1985 for some fascinating history in this space :-)

(**) ((I=E2=80=99m not making any representation on whether applications =
need to know with a precision of smaller than a second when your EAT was =
issued. =20
I really can=E2=80=99t imagine that, but that is proof by lack of =
imagination; I do assess that the cost of enabling that is higher than =
the benefits. =20
But that is true until someone has a convincing counterexample=E2=80=A6 =20=

Consolation is that these people can introduce a float iat =3D =
=E2=80=9Cfiat=E2=80=9D :-)))


From nobody Wed Feb 23 13:37:18 2022
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 BA1663A0DD6 for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 13:37:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.896
X-Spam-Level: 
X-Spam-Status: No, score=-1.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZJ07M92bTF5V for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 13:36:57 -0800 (PST)
Received: from p3plsmtpa06-08.prod.phx3.secureserver.net (p3plsmtpa06-08.prod.phx3.secureserver.net [173.201.192.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 B4AAE3A0E42 for <cbor@ietf.org>; Wed, 23 Feb 2022 13:36:57 -0800 (PST)
Received: from [192.168.1.7] ([75.80.148.139]) by :SMTPAUTH: with ESMTPSA id MzJgnuFbmtbo2MzJgn7hkb; Wed, 23 Feb 2022 14:36:56 -0700
X-CMAE-Analysis: v=2.4 cv=M8iIlw8s c=1 sm=1 tr=0 ts=6216a8f8 a=qS/Wyu6Nw1Yro6yF1S+Djg==:117 a=qS/Wyu6Nw1Yro6yF1S+Djg==:17 a=gKmFwSsBAAAA:8 a=NEAV23lmAAAA:8 a=yQ0hMmJQFT9ZCyF6CuIA:9 a=QEXdDO2ut3YA:10 a=7PnlBysqKf8N78CN0UsA:9 a=guNBluFjyaxAMa1b:21 a=_W_S_7VecoQA:10 a=nnPW6aIcBuj1ljLj_o6Q:22
X-SECURESERVER-ACCT: lgl@island-resort.com
From: Laurence Lundblade <lgl@island-resort.com>
Message-Id: <B15CE08B-E9D3-43A5-ACF5-5118AFBA3F8B@island-resort.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_15B610A7-042F-4736-B324-BCDDE010C067"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\))
Date: Wed, 23 Feb 2022 13:36:56 -0800
In-Reply-To: <2A13AF29-6309-4FA3-9A84-59D4E0C8F089@tzi.org>
Cc: "rats@ietf.org" <rats@ietf.org>, cbor@ietf.org, "cose@ietf.org" <cose@ietf.org>
To: Carsten Bormann <cabo@tzi.org>
References: <e8995f0c-ad85-f702-da6b-051ffdc4cb08@gmail.com> <DBBPR08MB5915B874FD16107A7B0105AAFA3A9@DBBPR08MB5915.eurprd08.prod.outlook.com> <1a16c80d-40cd-baba-b1ce-2033dd0db294@gmail.com> <D22D0D63-F76C-48B3-A034-F8B5B2BB6005@tzi.org> <2c8be442-9899-d117-155c-f6f2096b7055@gmail.com> <92C7CF7C-ED23-41B3-AB32-8438C4C88C20@tzi.org> <14c8d106-3b4b-f973-94b8-018852ff4769@gmail.com> <8C2C6592-D5B9-430A-B878-E1009E9BCF22@tzi.org> <AB9F0C55-9C23-43F1-A83F-91D4159C888F@island-resort.com> <59939C29-5370-4385-AE61-A21ADDC0D194@tzi.org> <ED025590-3CA0-42B8-B50E-030D94FA88D6@island-resort.com> <E74C7303-E7D5-45EA-886C-158DB6D83844@tzi.org> <E5AD55D7-33B2-4E50-83EA-5BD1C1462F01@island-resort.com> <2A13AF29-6309-4FA3-9A84-59D4E0C8F089@tzi.org>
X-Mailer: Apple Mail (2.3608.120.23.2.1)
X-CMAE-Envelope: MS4xfB2nElEGEHCZ3vvSgvWMyGWfIlNjQVJK26Hm9TvhNmuPQyJyzklsNfVuRYsGNNzjTSMaP5lPBuQ/xJvmzucnRI+2w77nC39sDzCZcNBeGDoXqDM4ni+s wEDE+Ew1eLUVyw5/WvTvhNw5kc+iLARIlCnMmYF2bVbyNSaPB9+WdPzAQ4rPV2fsRRaV3kfunVgPee4Qmi9thV3vpa2IA4hChn99TdUvfc1jlbCuI/lbEIX3 u78Tu0t5GHz19zETPxS/MA==
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/Ch_rr4l15ndhPok9vgGZHH7IzdY>
Subject: Re: [Cbor] [COSE] [Rats] RAM requirements for COSE/CWT
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 23 Feb 2022 21:37:03 -0000

--Apple-Mail=_15B610A7-042F-4736-B324-BCDDE010C067
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


> On Feb 23, 2022, at 1:08 PM, Carsten Bormann <cabo@tzi.org> wrote:
>>=20
>> Pulling an ldexp library could be a big deal. It could increase code =
size by a lot.
>=20
> Yes.=20
> I should probably write some alternative C code that is a couple lines =
longer but doesn=E2=80=99t need ldexp.
> (But what do you do with the binary32 then?)

I did that with shifts and masks and got a good education about floating =
point. :-)

https://github.com/laurencelundblade/QCBOR/blob/master/src/ieee754.c

More on the other parts later. Appreciate the discussion.

LL



--Apple-Mail=_15B610A7-042F-4736-B324-BCDDE010C067
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><br =
class=3D""><div><blockquote type=3D"cite" class=3D""><div class=3D"">On =
Feb 23, 2022, at 1:08 PM, Carsten Bormann &lt;<a =
href=3D"mailto:cabo@tzi.org" class=3D"">cabo@tzi.org</a>&gt; =
wrote:</div><div class=3D""><blockquote type=3D"cite" =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; =
text-decoration: none;" class=3D""><br class=3D"">Pulling an ldexp =
library could be a big deal. It could increase code size by a lot.<br =
class=3D""></blockquote><br style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;" class=3D""><span style=3D"caret-color: rgb(0, 0, =
0); font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none; float: none; display: inline !important;" =
class=3D"">Yes.<span =
class=3D"Apple-converted-space">&nbsp;</span></span><br =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;" class=3D""><span =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none; float: none; =
display: inline !important;" class=3D"">I should probably write some =
alternative C code that is a couple lines longer but doesn=E2=80=99t =
need ldexp.</span><br style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;" class=3D""><span style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none; float: none; display: inline !important;" class=3D"">(But what do =
you do with the binary32 then?)</span></div></blockquote><br =
class=3D""></div><div>I did that with shifts and masks and got a good =
education about floating point. :-)</div><div><br class=3D""></div><div><a=
 =
href=3D"https://github.com/laurencelundblade/QCBOR/blob/master/src/ieee754=
.c" =
class=3D"">https://github.com/laurencelundblade/QCBOR/blob/master/src/ieee=
754.c</a></div><div><br class=3D""></div><div>More on the other parts =
later. Appreciate the discussion.</div><div><br =
class=3D""></div><div>LL</div><div><br class=3D""></div><br =
class=3D""></body></html>=

--Apple-Mail=_15B610A7-042F-4736-B324-BCDDE010C067--


From nobody Wed Feb 23 15:30:50 2022
Return-Path: <mcr+ietf@sandelman.ca>
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 6D6823A10BA for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 15:30:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=sandelman.ca
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b3neW4E16Rbs for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 15:30:43 -0800 (PST)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [209.87.249.19]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AAEC93A10D8 for <cbor@ietf.org>; Wed, 23 Feb 2022 15:30:42 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by tuna.sandelman.ca (Postfix) with ESMTP id 59FFD38F6D; Wed, 23 Feb 2022 18:39:16 -0500 (EST)
Received: from tuna.sandelman.ca ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id VcRcsxVSM1QL; Wed, 23 Feb 2022 18:39:14 -0500 (EST)
Received: from sandelman.ca (obiwan.sandelman.ca [IPv6:2607:f0b0:f:2::247]) by tuna.sandelman.ca (Postfix) with ESMTP id 5532A38F67; Wed, 23 Feb 2022 18:39:14 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sandelman.ca; s=mail; t=1645659554; bh=vun0ctZPRGfmGXt7glk/BxeItfApB6clWFhUrNmRsEg=; h=From:To:Subject:In-Reply-To:References:Date:From; b=NQbfOfA9CnVHH0Cmz1Su1fNtNV4IdslLgORH7KqyDmcuOjt3fQKKTF8JU8Zbb7VuV yQpzZz9CZBv5Ls7GprpYg6zhKd1w7Qm6VPxtW2ZLE9XO8jc9sqpR4YxaGmrEMwvupm sZ9ecV10/3+LnfiOY7Ccf2t0QcN1AZ26rsDqvjMUq7VQ9J9veqlDDgmhGBhAxNmyFU WrtxgcqxM7+VrV8gNgo/XdX5MWTPDzrEd/J14tiG/OgZxaQz3YG7ZqBtO7FK0z3tBY EUw2lCk2yj1Dovll/pRAT9fOLe8baqsFUTsRuImBNOsdgZwP1PB9+7vQW7vHUDewWX Ioxb2V+V23kKA==
Received: from localhost (localhost [IPv6:::1]) by sandelman.ca (Postfix) with ESMTP id F2119537; Wed, 23 Feb 2022 18:30:38 -0500 (EST)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: Carsten Bormann <cabo@tzi.org>, Michael Peyton Jones <michael.peyton-jones@iohk.io>, Duncan Coutts <duncan@well-typed.com>, cbor@ietf.org, Jared Corduan <jared.corduan@iohk.io>, Alexander Byaly <alexander.byaly@iohk.io>
In-Reply-To: <4B47F4D7-ADE3-4A22-8A5B-97F4E5FCD933@tzi.org>
References: <9300a81abc33a45a9f3c7c1c62da88908280e54a.camel@well-typed.com> <1D3EF118-0223-43BC-81B2-369D4515DB21@tzi.org> <1ce2c092d3214d5fdce59435fc10b084c1ba48ca.camel@well-typed.com> <DFCBE61C-35B2-42A2-8D1A-A633CF939154@tzi.org> <2e10456c5791a422bf7218e7b84051f2b7121b66.camel@well-typed.com> <CAKoRMYGcwrhVWd-J3dX75WZfc+T_oyb6NCUNaeCXMW5_-VYdTw@mail.gmail.com> <52EDB93C-827A-465F-B644-51B3EF590D06@tzi.org> <C9D895BB-40E6-431F-958F-AC031DE4FB58@tzi.org> <CAKoRMYG9X0JF4ehkMc30_UNi0JtT2YMeG4RgxznS6O3Di6pkRA@mail.gmail.com> <CAKoRMYHwewaYxkX=CsfETBbdV7c9U97jfbd9xg=PyrMX5vJhnA@mail.gmail.com> <3B3B7EF0-152B-4015-8485-B204F7AEFFBC@tzi.org> <CAKoRMYFbEG=TkuZPPOiXv2DjEh23Ujd_Q44kQqiWPGc_0GMTuQ@mail.gmail.com> <CAKoRMYHnF6fGJp1dTrJnRHFTBOhreLRwzR_=cCckW1nBXOEz0A@mail.gmail.com> <E8A9E016-2248-4BB9-9864-C6C7D52A4AE5@tzi.org> <CAKoRMYE+gmWyCL9zYDa-O-c3KV_iuzgYuS+Q4fi=U7VHDNDtkQ@mail.gmail.com> <CAKoRMYFdAr1YY3mtmY0NU5X9Bk8_4WYh7bC0CtXpZc3toLSu8g@mail.gmail.com> <7FA54553-5421-4C45-B7DD-E9B2 D379F46F@tzi.org> <CAKoRMYH3MTMi_tX5KHF-O-DTKzopiGqe3fi6XjkPaGCM4823OQ@mail.gmail.com> <7dfd62ccb6c089af90c90f26a8945f23232ecbc1.camel@well-typed.com> <CAKoRMYEOo1Gqfc4W4k3NOLKpFa97Q9YzLCm3r0PJ13V2HJPf3A@mail.gmail.com> <2BBF6463-FDB2-4A8A-B20D-7A1AD976A90D@tzi.org> <CAKoRMYFi8uo2GfHA9s1n+-rMO8Ja9=2qMMzjS9Z=F9r3LFozRQ@mail.gmail.com> <8EA89504-C176-4850-9BB8-C7E7206374FF@tzi.org> <CAKoRMYGmOa0hzEFsJh8kpz0bU5x56Yc9P=DBK-ghU83gXxPv7A@mail.gmail.com> <CAKoRMYGUvmxufQUVyvX2mciq5LCmV0Nz-uE2MJn54GDBB+9DRw@mail.gmail.com> <CAKoRMYF_19V6mu4S9GVqfiNzyQVvvOzX6eYwHp_DtZQoG0xTKg@mail.gmail.com> <4B47F4D7-ADE3-4A22-8A5B-97F4E5FCD933@tzi.org>
X-Mailer: MH-E 8.6+git; nmh 1.7+dev; GNU Emacs 26.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature"
Date: Wed, 23 Feb 2022 18:30:38 -0500
Message-ID: <26378.1645659038@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/HK5wvSYG2eZZnpA1Zh3aVuvjFtQ>
Subject: Re: [Cbor] A CBOR tag for alternatives/unions, request for comments
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 23 Feb 2022 23:30:49 -0000

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


{why haven't we adopted this document yet?}

Hi, I've reviewed section 9 of notable-tags-06.
I raised a minor PR: https://github.com/cabo/notable-tags/pull/1
because I had to stare at the [uint,value] part really hard before I
understood things.  Part of the issue is that the "value" in the previous t=
wo
cases was just "obvious", and then I couldn't understand what it meant in t=
he
third case.

I understood from the meeting this morning that tag 101 'e', is not actually
available.  But, actually it looks like it is according to IANA.org.
Or was it that another draft wanted it?
How about 'x' (NOPE) 'X' YES. 'u' YES.
https://www.iana.org/assignments/cbor-tags/cbor-tags.xhtml#cbor-tags

I think that the document might explain why we optimize the first 7 (0..6),
rather than the first 3 or 5 or 9.  Are the next 128 worth it?
I wonder if there are more than 7, are there typically more 100s?
If it turns out that 9 is the sweet spot, I'd be okay with more 1+1
and no 1+2.  I don't have any data on this.
I wonder if Michael, Duncan, Jared or Alexander do?

I agree with the discussion that tag 101 could just encode 0..x
rather than uint+128.  I think that the simpler encoder might be worth it
here.  Particularly in some cases where I suspect which ones are the lower
numbered onces might not be known until later, and some code wants to come
back and fill in the alternatives afterwards, having left 1+4 for the uint =
or
something like that.

=2D-
Michael Richardson <mcr+IETF@sandelman.ca>   . o O ( IPv6 I=C3=B8T consulti=
ng )
           Sandelman Software Works Inc, Ottawa and Worldwide





--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iPMEAQEKAB0WIQSk7ZHEG9TCGBNASfm/sjw/rPYc8wUCYhbDngAKCRC/sjw/rPYc
8ytYBf9JUVW8W1BlqlPd5fVKZewBoU8A8GhdUnoJj6eEdtFOXLdpt6FdE2oxRWfu
dc3NLC7uXjLk1DQ2i4PNQ3ajW7wE2mjISo03hSqUQpG3S7gtzO4dOkQAcBDd4Eko
r0h3JMMEFD1karDsAFbQ4iDXW6UlnSlPoeUONaPnyq057eiwb0Rtpz8neuxctWX8
6pGhdid4jYS2xFWl02YYZRxaNC9lpLawaGmJJAHmPKDdW9fsaBD12NJMh1UpqDHz
4RVeet8=
=6QZE
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Wed Feb 23 15:31:29 2022
Return-Path: <mcr+ietf@sandelman.ca>
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 7897E3A10E0 for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 15:31:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.099
X-Spam-Level: 
X-Spam-Status: No, score=-7.099 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=sandelman.ca
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V3Ox7dNyRLr1 for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 15:31:23 -0800 (PST)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [209.87.249.19]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 718A63A0989 for <cbor@ietf.org>; Wed, 23 Feb 2022 15:31:23 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by tuna.sandelman.ca (Postfix) with ESMTP id 9ECBD38F6D; Wed, 23 Feb 2022 18:39:57 -0500 (EST)
Received: from tuna.sandelman.ca ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id QmG5nLmMCmrn; Wed, 23 Feb 2022 18:39:56 -0500 (EST)
Received: from sandelman.ca (obiwan.sandelman.ca [209.87.249.21]) by tuna.sandelman.ca (Postfix) with ESMTP id C6E3D38F67; Wed, 23 Feb 2022 18:39:56 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sandelman.ca; s=mail; t=1645659596; bh=R7nOKk44Vm0dhBjhBJzzURV7XywjrZfCiaJtSjyMjko=; h=From:To:cc:Subject:In-Reply-To:References:Date:From; b=d/i2dzhvDsfGT6rTlxEleP5snd67dIxT2lnKrXgFUXoFduJ3cQKsZ+m68vkDCYSdO EkbsBg2T3Tr4J+nZs2oBELYENcGI5LPUphlWVZPEKJkMSNcJ/+WF7XklU98pH6yJ54 +WT/ClDlKSWSmTfS2dRcPDnUspoZCiw91Sc0oSB6/Hlq2ImHFQpo3OlhzdMk+g3+/i GDeNYl0W6urfOnnL61u9rNSCF6/xiyAPZdK1oJjhbePnCTRH8E73vWn0gVZvDatlH8 hgNXDSbqzMQNdi+XdeGPGYS2ZxpULWD28q/3xW+IOPe6r1s4YhX/FTDFTpsnHQod2H QZULS9JJemC7g==
Received: from localhost (localhost [IPv6:::1]) by sandelman.ca (Postfix) with ESMTP id 71504537; Wed, 23 Feb 2022 18:31:21 -0500 (EST)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: Michael Peyton Jones <michael.peyton-jones=40iohk.io@dmarc.ietf.org>
cc: Emile Cormier <emile.cormier.jr@gmail.com>, Duncan Coutts <duncan@well-typed.com>, cbor@ietf.org, Carsten Bormann <cabo@tzi.org>, Jared Corduan <jared.corduan@iohk.io>, Alexander Byaly <alexander.byaly@iohk.io>
In-Reply-To: <CAKoRMYEarGwqVZcUX0PskLyJUtRNHRUSJ0zGjNTrwGUwkXFrFQ@mail.gmail.com>
References: <9300a81abc33a45a9f3c7c1c62da88908280e54a.camel@well-typed.com> <1D3EF118-0223-43BC-81B2-369D4515DB21@tzi.org> <1ce2c092d3214d5fdce59435fc10b084c1ba48ca.camel@well-typed.com> <DFCBE61C-35B2-42A2-8D1A-A633CF939154@tzi.org> <2e10456c5791a422bf7218e7b84051f2b7121b66.camel@well-typed.com> <CAKoRMYGcwrhVWd-J3dX75WZfc+T_oyb6NCUNaeCXMW5_-VYdTw@mail.gmail.com> <52EDB93C-827A-465F-B644-51B3EF590D06@tzi.org> <C9D895BB-40E6-431F-958F-AC031DE4FB58@tzi.org> <CAKoRMYG9X0JF4ehkMc30_UNi0JtT2YMeG4RgxznS6O3Di6pkRA@mail.gmail.com> <CAKoRMYHwewaYxkX=CsfETBbdV7c9U97jfbd9xg=PyrMX5vJhnA@mail.gmail.com> <3B3B7EF0-152B-4015-8485-B204F7AEFFBC@tzi.org> <CAKoRMYFbEG=TkuZPPOiXv2DjEh23Ujd_Q44kQqiWPGc_0GMTuQ@mail.gmail.com> <CAKoRMYHnF6fGJp1dTrJnRHFTBOhreLRwzR_=cCckW1nBXOEz0A@mail.gmail.com> <E8A9E016-2248-4BB9-9864-C6C7D52A4AE5@tzi.org> <CAKoRMYE+gmWyCL9zYDa-O-c3KV_iuzgYuS+Q4fi=U7VHDNDtkQ@mail.gmail.com> <CAKoRMYFdAr1YY3mtmY0NU5X9Bk8_4WYh7bC0CtXpZc3toLSu8g@mail.gmail.com> <7FA54553-5421-4C45-B7DD-E9B2 D379F46F@tzi.org> <CAKoRMYH3MTMi_tX5KHF-O-DTKzopiGqe3fi6XjkPaGCM4823OQ@mail.gmail.com> <7dfd62ccb6c089af90c90f26a8945f23232ecbc1.camel@well-typed.com> <CAKoRMYEOo1Gqfc4W4k3NOLKpFa97Q9YzLCm3r0PJ13V2HJPf3A@mail.gmail.com> <2BBF6463-FDB2-4A8A-B20D-7A1AD976A90D@tzi.org> <CAKoRMYFi8uo2GfHA9s1n+-rMO8Ja9=2qMMzjS9Z=F9r3LFozRQ@mail.gmail.com> <8EA89504-C176-4850-9BB8-C7E7206374FF@tzi.org> <CAKoRMYGmOa0hzEFsJh8kpz0bU5x56Yc9P=DBK-ghU83gXxPv7A@mail.gmail.com> <CAKoRMYGUvmxufQUVyvX2mciq5LCmV0Nz-uE2MJn54GDBB+9DRw@mail.gmail.com> <CAKoRMYF_19V6mu4S9GVqfiNzyQVvvOzX6eYwHp_DtZQoG0xTKg@mail.gmail.com> <4B47F4D7-ADE3-4A22-8A5B-97F4E5FCD933@tzi.org> <CAM70yxACa4ZgOojHLMRv+9Bpuv7dPFtupm+tnrnDZC_i_Dsr8g@mail.gmail.com> <EB822234-89C2-4CFA-8807-2BD2E97D1E60@tzi.org> <CAM70yxAG_rMc8ANWgFvyAao_G5cLNOEL0mrfD8tLmJVxtn_8SA@mail.gmail.com> <CAKoRMYEarGwqVZcUX0PskLyJUtRNHRUSJ0zGjNTrwGUwkXFrFQ@mail.gmail.com>
X-Mailer: MH-E 8.6+git; nmh 1.7+dev; GNU Emacs 26.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature"
Date: Wed, 23 Feb 2022 18:31:21 -0500
Message-ID: <26635.1645659081@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/N8armVluUv8JaVbROdsSbNpDzQY>
Subject: Re: [Cbor] A CBOR tag for alternatives/unions, request for comments
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 23 Feb 2022 23:31:29 -0000

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


Michael Peyton Jones <michael.peyton-jones=3D40iohk.io@dmarc.ietf.org> wrot=
e:
    > We believe that not only is this approach consistent, but it's actual=
ly
    > helpful: it allows users to decide whether they care more about
    > flexibility or regularity. If you want, you *can* just encode
    > everything with the long form and not worry about the compact
    > form. This simplicity is sometimes helpful.

+1

=2D-
Michael Richardson <mcr+IETF@sandelman.ca>   . o O ( IPv6 I=C3=B8T consulti=
ng )
           Sandelman Software Works Inc, Ottawa and Worldwide





--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iPMEAQEKAB0WIQSk7ZHEG9TCGBNASfm/sjw/rPYc8wUCYhbDyQAKCRC/sjw/rPYc
8wkXBfwMgdeqb+ca0G7EGxKiNuZiETxK6OxkfSj3sPRLEGfS3QcOdV754ybjX1PX
/eVBx0Sn406eCRlRVdQFf1vSjhAP/PUYLmqi4IFxW4vXJl7uM9TKNRXZ4Kq872Le
udfxgDcwoHVB1WN3ZLAkKIG/ZWOPnmUspJkUMLBGAnqVfWWCr0n+4pQ31LLihvRB
5Jtn+/z0mCCT6O1YfMq0stpvagm2yfjORP3R6d7xkdGn1D7kW0gmEDRtWYdHyHLl
27P0vxw=
=Ka17
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Wed Feb 23 15:52:58 2022
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 792B73A0A1C for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 15:52:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level: 
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AzEOERvAHip7 for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 15:52:52 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [134.102.50.15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EE9C13A1159 for <cbor@ietf.org>; Wed, 23 Feb 2022 15:52:51 -0800 (PST)
Received: from [192.168.217.118] (p5089ad4f.dip0.t-ipconnect.de [80.137.173.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4K3tBl5tTmzDCc6; Thu, 24 Feb 2022 00:52:47 +0100 (CET)
Content-Type: multipart/signed; boundary="Apple-Mail=_F2C5EF85-3D6F-4666-8DD1-2C806F58740F"; protocol="application/pgp-signature"; micalg=pgp-sha256
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <26635.1645659081@localhost>
Date: Thu, 24 Feb 2022 00:52:47 +0100
Cc: Michael Peyton Jones <michael.peyton-jones=40iohk.io@dmarc.ietf.org>, Emile Cormier <emile.cormier.jr@gmail.com>, Duncan Coutts <duncan@well-typed.com>, cbor@ietf.org, Jared Corduan <jared.corduan@iohk.io>, Alexander Byaly <alexander.byaly@iohk.io>
X-Mao-Original-Outgoing-Id: 667353167.117234-87e677ba1a3a25da087781c33d5b0ff8
Message-Id: <60CC2573-74B1-433C-9620-8270B929D74F@tzi.org>
References: <9300a81abc33a45a9f3c7c1c62da88908280e54a.camel@well-typed.com> <1D3EF118-0223-43BC-81B2-369D4515DB21@tzi.org> <1ce2c092d3214d5fdce59435fc10b084c1ba48ca.camel@well-typed.com> <DFCBE61C-35B2-42A2-8D1A-A633CF939154@tzi.org> <2e10456c5791a422bf7218e7b84051f2b7121b66.camel@well-typed.com> <CAKoRMYGcwrhVWd-J3dX75WZfc+T_oyb6NCUNaeCXMW5_-VYdTw@mail.gmail.com> <52EDB93C-827A-465F-B644-51B3EF590D06@tzi.org> <C9D895BB-40E6-431F-958F-AC031DE4FB58@tzi.org> <CAKoRMYG9X0JF4ehkMc30_UNi0JtT2YMeG4RgxznS6O3Di6pkRA@mail.gmail.com> <CAKoRMYHwewaYxkX=CsfETBbdV7c9U97jfbd9xg=PyrMX5vJhnA@mail.gmail.com> <3B3B7EF0-152B-4015-8485-B204F7AEFFBC@tzi.org> <CAKoRMYFbEG=TkuZPPOiXv2DjEh23Ujd_Q44kQqiWPGc_0GMTuQ@mail.gmail.com> <CAKoRMYHnF6fGJp1dTrJnRHFTBOhreLRwzR_=cCckW1nBXOEz0A@mail.gmail.com> <E8A9E016-2248-4BB9-9864-C6C7D52A4AE5@tzi.org> <CAKoRMYE+gmWyCL9zYDa-O-c3KV_iuzgYuS+Q4fi=U7VHDNDtkQ@mail.gmail.com> <CAKoRMYFdAr1YY3mtmY0NU5X9Bk8_4WYh7bC0CtXpZc3toLSu8g@mail.gmail.com> <7FA54553-5421-4C45-! B7DD-E9B2 D379F46F@tzi.org> <CAKoRMYH3MTMi_tX5KHF-O-DTKzopiGqe3fi6XjkPaGCM4823OQ@mail.gmail.com> <7dfd62ccb6c089af90c90f26a8945f23232ecbc1.camel@well-typed.com> <CAKoRMYEOo1Gqfc4W4k3NOLKpFa97Q9YzLCm3r0PJ13V2HJPf3A@mail.gmail.com> <2BBF6463-FDB2-4A8A-B20D-7A1AD976A90D@tzi.org> <CAKoRMYFi8uo2GfHA9s1n+-rMO8Ja9=2qMMzjS9Z=F9r3LFozRQ@mail.gmail.com> <8EA89504-C176-4850-9BB8-C7E7206374FF@tzi.org> <CAKoRMYGmOa0hzEFsJh8kpz0bU5x56Yc9P=DBK-ghU83gXxPv7A@mail.gmail.com> <CAKoRMYGUvmxufQUVyvX2mciq5LCmV0Nz-uE2MJn54GDBB+9DRw@mail.gmail.com> <CAKoRMYF_19V6mu4S9GVqfiNzyQVvvOzX6eYwHp_DtZQoG0xTKg@mail.gmail.com> <4B47F4D7-ADE3-4A22-8A5B-97F4E5FCD933@tzi.org> <CAM70yxACa4ZgOojHLMRv+9Bpuv7dPFtupm+tnrnDZC_i_Dsr8g@mail.gmail.com> <EB822234-89C2-4CFA-8807-2BD2E97D1E60@tzi.org> <CAM70yxAG_rMc8ANWgFvyAao_G5cLNOEL0mrfD8tLmJVxtn_8SA@mail.gmail.com> <CAKoRMYEarGwqVZcUX0PskLyJUtRNHRUSJ0zGjNTrwGUwkXFrFQ@mail.gmail.com> <26635.1645659081@localhost>
To: Michael Richardson <mcr+ietf@sandelman.ca>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/4OkBDhxFd0DLZiXM_hjPM_8feQw>
Subject: Re: [Cbor] A CBOR tag for alternatives/unions, request for comments
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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, 23 Feb 2022 23:52:57 -0000

--Apple-Mail=_F2C5EF85-3D6F-4666-8DD1-2C806F58740F
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

On 2022-02-24, at 00:31, Michael Richardson <mcr+ietf@sandelman.ca> =
wrote:
>=20
>=20
> Michael Peyton Jones <michael.peyton-jones=3D40iohk.io@dmarc.ietf.org> =
wrote:
>> We believe that not only is this approach consistent, but it's =
actually
>> helpful: it allows users to decide whether they care more about
>> flexibility or regularity. If you want, you *can* just encode
>> everything with the long form and not worry about the compact
>> form. This simplicity is sometimes helpful.
>=20
> +1

Sorry, can=E2=80=99t live with that.

As a protocol designer, I carry a deep conviction that when you create =
different ways to do the same thing, you'll pay dearly for that.  (Look =
at the discussion about preferred/deterministic encoding in RATS/COSE.  =
Duuh.)

As there is no strong (technical or political) reason to do this here, I =
would regard creating different ways to do the same thing as a =
professional error.

Gr=C3=BC=C3=9Fe, Carsten


--Apple-Mail=_F2C5EF85-3D6F-4666-8DD1-2C806F58740F
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org

iQIzBAEBCAAdFiEEcr05t4NZlx5Xee/8VkscnDT509sFAmIWyM8ACgkQVkscnDT5
09v3aQ/+Oyuci7rN8KXnhhW+PmWL31RsorhLQg8OtxFngqFzBSYMm1xbvidSCvQX
hMluIWhUaibJ+pjfuqLvklcP3lfl3ZAeP1sqF2iKrxFEfbP1GAM8zRKirBc4+8bv
dD2sKdmEbiK/hk7EzEak4vokR6c76kwCSOfA7LWCRpKYz7HUUUPA/d+HcmOWmAFV
BOdfoMj1o32w55RS9XFz9t60B95CsFl/UsQclQDRC1N+OKpy2aNb2TEMtAyomakr
2ZQZTkChm05bCOS041U10g2BcQiN++ZhFLQ/V2ipoZcXaN5XrTLU0GRo3dGP1Oly
JKviJ/jy+zg1PobvcWHVoKGmTkVpPLrYgobH6oK3XTImn/nOyj0xGyZkxvFdrtDm
fTu7rHi7ImBNGGgBJVFB3V0WaZR6fex8XU5sq6TK33JKh2g7AZWQNZ6RQ+oCQcbq
QQ+riDA8BXEeJCHOddJZCpHSHFMNLZH5jPsMzTPqvSg49/Pn/mN+LhcAY2+WuQtD
uihEY6dhncUMRio2K1Et8zygHZ5wey1Ewg22pk5zbvIGRdADvNUJj0aDZ9O3BWl0
9CVdqlWR8AYHZhbm9LMHwRT7RQxCYDbDN9T6Or1awc+PAR1bzJ+WsbVy5QMor0xE
1rAsDR8omeukho6fZy3bEIZLOi8w0fwWMsGuG0uRujVZepRks9Y=
=aAzl
-----END PGP SIGNATURE-----

--Apple-Mail=_F2C5EF85-3D6F-4666-8DD1-2C806F58740F--


From nobody Wed Feb 23 16:06:13 2022
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 DE8A83A116A for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 16:06:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level: 
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id o6pZ3Kmftg7B for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 16:06:06 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [IPv6:2001:638:708:32::15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2F4573A0A9A for <cbor@ietf.org>; Wed, 23 Feb 2022 16:06:06 -0800 (PST)
Received: from [192.168.217.118] (p5089ad4f.dip0.t-ipconnect.de [80.137.173.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4K3tV20lR7zDCbq; Thu, 24 Feb 2022 01:06:02 +0100 (CET)
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: <26378.1645659038@localhost>
Date: Thu, 24 Feb 2022 01:06:01 +0100
Cc: Michael Peyton Jones <michael.peyton-jones@iohk.io>, Duncan Coutts <duncan@well-typed.com>, cbor@ietf.org, Jared Corduan <jared.corduan@iohk.io>, Alexander Byaly <alexander.byaly@iohk.io>
X-Mao-Original-Outgoing-Id: 667353961.629038-6613494fe1c5098a2b437d45a0cc2375
Content-Transfer-Encoding: quoted-printable
Message-Id: <94A53D04-2C5A-4965-A65C-4B1C2815647A@tzi.org>
References: <9300a81abc33a45a9f3c7c1c62da88908280e54a.camel@well-typed.com> <1D3EF118-0223-43BC-81B2-369D4515DB21@tzi.org> <1ce2c092d3214d5fdce59435fc10b084c1ba48ca.camel@well-typed.com> <DFCBE61C-35B2-42A2-8D1A-A633CF939154@tzi.org> <2e10456c5791a422bf7218e7b84051f2b7121b66.camel@well-typed.com> <CAKoRMYGcwrhVWd-J3dX75WZfc+T_oyb6NCUNaeCXMW5_-VYdTw@mail.gmail.com> <52EDB93C-827A-465F-B644-51B3EF590D06@tzi.org> <C9D895BB-40E6-431F-958F-AC031DE4FB58@tzi.org> <CAKoRMYG9X0JF4ehkMc30_UNi0JtT2YMeG4RgxznS6O3Di6pkRA@mail.gmail.com> <CAKoRMYHwewaYxkX=CsfETBbdV7c9U97jfbd9xg=PyrMX5vJhnA@mail.gmail.com> <3B3B7EF0-152B-4015-8485-B204F7AEFFBC@tzi.org> <CAKoRMYFbEG=TkuZPPOiXv2DjEh23Ujd_Q44kQqiWPGc_0GMTuQ@mail.gmail.com> <CAKoRMYHnF6fGJp1dTrJnRHFTBOhreLRwzR_=cCckW1nBXOEz0A@mail.gmail.com> <E8A9E016-2248-4BB9-9864-C6C7D52A4AE5@tzi.org> <CAKoRMYE+gmWyCL9zYDa-O-c3KV_iuzgYuS+Q4fi=U7VHDNDtkQ@mail.gmail.com> <CAKoRMYFdAr1YY3mtmY0NU5X9Bk8_4WYh7bC0CtXpZc3toLSu8g@mail.gmail.com> <7FA54553-5421-4C45-! B7DD-E9B2 D379F46F@tzi.org> <CAKoRMYH3MTMi_tX5KHF-O-DTKzopiGqe3fi6XjkPaGCM4823OQ@mail.gmail.com> <7dfd62ccb6c089af90c90f26a8945f23232ecbc1.camel@well-typed.com> <CAKoRMYEOo1Gqfc4W4k3NOLKpFa97Q9YzLCm3r0PJ13V2HJPf3A@mail.gmail.com> <2BBF6463-FDB2-4A8A-B20D-7A1AD976A90D@tzi.org> <CAKoRMYFi8uo2GfHA9s1n+-rMO8Ja9=2qMMzjS9Z=F9r3LFozRQ@mail.gmail.com> <8EA89504-C176-4850-9BB8-C7E7206374FF@tzi.org> <CAKoRMYGmOa0hzEFsJh8kpz0bU5x56Yc9P=DBK-ghU83gXxPv7A@mail.gmail.com> <CAKoRMYGUvmxufQUVyvX2mciq5LCmV0Nz-uE2MJn54GDBB+9DRw@mail.gmail.com> <CAKoRMYF_19V6mu4S9GVqfiNzyQVvvOzX6eYwHp_DtZQoG0xTKg@mail.gmail.com> <4B47F4D7-ADE3-4A22-8A5B-97F4E5FCD933@tzi.org> <26378.1645659038@localhost>
To: Michael Richardson <mcr+ietf@sandelman.ca>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/E5ZrqQoV0EzlMwF1riEduJvdAdA>
Subject: Re: [Cbor] A CBOR tag for alternatives/unions, request for comments
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 24 Feb 2022 00:06:11 -0000

On 2022-02-24, at 00:30, Michael Richardson <mcr+ietf@sandelman.ca> =
wrote:
>=20
>=20
> {why haven't we adopted this document yet?}

So it=E2=80=99s current author can munge it more freely, instead of =
waiting for a WG direction to form.
(You can always do a hostile adoption, though ;-)

> Hi, I've reviewed section 9 of notable-tags-06.
> I raised a minor PR: https://github.com/cabo/notable-tags/pull/1
> because I had to stare at the [uint,value] part really hard before I
> understood things.  Part of the issue is that the "value" in the =
previous two
> cases was just "obvious", and then I couldn't understand what it meant =
in the
> third case.

I just commented on the specific words.

> I understood from the meeting this morning that tag 101 'e', is not =
actually
> available.  But, actually it looks like it is according to IANA.org.
> Or was it that another draft wanted it?
> How about 'x' (NOPE) 'X' YES. 'u' YES.
> https://www.iana.org/assignments/cbor-tags/cbor-tags.xhtml#cbor-tags

(NOPE =3D tag 120 =E2=80=98x=E2=80=99 is already in use.)
I=E2=80=99ll leave that choice to the proposers=E2=80=A6

> I think that the document might explain why we optimize the first 7 =
(0..6),
> rather than the first 3 or 5 or 9.  Are the next 128 worth it?

We could skip the whole 1+2 tag range if we think the 24 1+1+1 cases =
from was-102 are enough of an expansion.
But then we still have lots of 1+2 tags (0.07 % in use right now), if =
these actually are useful.

I can=E2=80=99t really imagine more than 31 cases in one alternative =
being used very often, but then I=E2=80=99d like to hear from the people =
who actually use this.

> I wonder if there are more than 7, are there typically more 100s?
> If it turns out that 9 is the sweet spot, I'd be okay with more 1+1
> and no 1+2.  I don't have any data on this.
> I wonder if Michael, Duncan, Jared or Alexander do?

Yes, we need a PDF (probability distribution function) :-)
(Well, really, some intuition about that.)

My hunch is that this is going to be approximately Zipf=E2=80=99s law, =
and that means the first 4 or 5 are really important, and then it goes =
down, but slowly.=20

> I agree with the discussion that tag 101 could just encode 0..x
> rather than uint+128.  I think that the simpler encoder might be worth =
it
> here.  Particularly in some cases where I suspect which ones are the =
lower
> numbered onces might not be known until later, and some code wants to =
come
> back and fill in the alternatives afterwards, having left 1+4 for the =
uint or
> something like that.

See my previous message.

Gr=C3=BC=C3=9Fe, Carsten



From nobody Wed Feb 23 16:18:29 2022
Return-Path: <mcr+ietf@sandelman.ca>
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 06C043A11AC for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 16:18:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level: 
X-Spam-Status: No, score=-2.098 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=sandelman.ca
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mA3bqp3kgE9C for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 16:18:22 -0800 (PST)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [IPv6:2607:f0b0:f:3:216:3eff:fe7c:d1f3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 782763A11D5 for <cbor@ietf.org>; Wed, 23 Feb 2022 16:18:22 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by tuna.sandelman.ca (Postfix) with ESMTP id 31A0B390F1; Wed, 23 Feb 2022 19:26:55 -0500 (EST)
Received: from tuna.sandelman.ca ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id AK54DtzlXxsi; Wed, 23 Feb 2022 19:26:52 -0500 (EST)
Received: from sandelman.ca (obiwan.sandelman.ca [IPv6:2607:f0b0:f:2::247]) by tuna.sandelman.ca (Postfix) with ESMTP id 03D22390F0; Wed, 23 Feb 2022 19:26:52 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sandelman.ca; s=mail; t=1645662412; bh=ZE7jzwcpzP1sXjbHLlGRHl/gg2k3XiG4rPgPJgKO+wM=; h=From:To:cc:Subject:In-Reply-To:References:Date:From; b=jG5Y7mzW0DhCzzZHsWAQhUx+aTW3rkVFven9yrhOcn3xTAtiMDJz4VsKLKHTaf/2K 0NfWXtrYs5jeKY2/d4qdhgdTF1xqtJNUKFzKvrq2rIjQK4kDVCSCg+64BrIRakm8gQ AQqSzUViFbwqv3c05vnxNGscTTizY/8NT87O6JUKxTLq1ifmJQGddI9DOrqkPsrIOg SyhSW0bZArXtIa0Yz9Xo4hFxPciRurqD0DF32Lc/qkIHViaWy6VxFxXxmI+1K/DHvX QkePK4/q5LXGmwrc9ae0s2BQfr+IfJcDR+Y5AFYyxgKZkxVTqCDOVx1iruUi+c6DnZ vrLHp6yMOR0bg==
Received: from localhost (localhost [IPv6:::1]) by sandelman.ca (Postfix) with ESMTP id 83068864; Wed, 23 Feb 2022 19:18:16 -0500 (EST)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: Christian =?us-ascii?Q?=3D=3Fiso-8859-1=3FQ=3FAms=3DFCss=3F=3D?= <christian@amsuess.com>, cbor@ietf.org
cc: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <YhY8jT6/APLawwBF@hephaistos.amsuess.com>
References: <289545.1643998363@dooku> <982B35D9-8541-4AB6-88DE-55018DB5BB6B@tzi.org> <27168.1644006597@localhost> <D6BA4596-C08F-4CDF-AEB4-20C264D3BB34@tzi.org> <YgO2eOiH5gMdwSGd@hephaistos.amsuess.com> <13A46D26-E131-42C8-B325-C57857246699@tzi.org> <YhY8jT6/APLawwBF@hephaistos.amsuess.com>
X-Mailer: MH-E 8.6+git; nmh 1.7+dev; GNU Emacs 26.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature"
Date: Wed, 23 Feb 2022 19:18:16 -0500
Message-ID: <9709.1645661896@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/vbI-tUYiDsSy_uMyUQE_hA2fbj8>
Subject: Re: [Cbor] eliding CBOR diagnostic notation binary contents
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 24 Feb 2022 00:18:28 -0000

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


I find having a tag for elided stuff really weird :-)
It's a higher level of meta, and maybe that argues for having a tag to
indicate that :-)

From=20my point of view, what I want from tooling is a way to say which fie=
lds
I want to elide when I process my (raw) CBOR into diagnostic notation.
I'd be doing this when building my internet-draft.

I think that I also want something processing diagnostic notation to not
process the elided notation literally.  I gather that the proposal is to put
these tags where the elidation is.  I am very concerned about people copy a=
nd
pasting elided examples into to code and getting surprised.

So I rather would like something that fails.

Christian Ams=C3=BCss <christian@amsuess.com> wrote:
    >> On one hand, one wants to use dt=E2=80=992022-02-09T15:00Z=E2=80=99 =
to be processed as
    >> a number 1644418800.  On the other hand, when showing CBOR, 16444188=
00
    >> is not detectable as something that should be shown as
    >> dt=E2=80=992022-02-09T15:00Z=E2=80=99 =E2=80=94 there would need to =
be an annotation that
    >> makes the diagnostic writer do so, and maybe we indeed need tags for
    >> annotations .

    ca> A particular reason why I'd consider tags for EDN (strawman: the pa=
ir
    ca> #6.88889([tstr, any]), eg. 88889("dt", 1644418800), and
    ca> #6.88887([tstr, tstr]), eg. 88887("dt", "2022-02-09T15:00Z")) useful
    ca> is that while there are many tools for working with CBOR, there are
    ca> few for working with diagnostic notation.

...

    ca> I'd assume that both cases can be handled under the same set of
    ca> switches; something like `--debug-edn` would both leave tag 888 be
    ca> and show 88887 / 88889 as the tags they are, whereas the default
    ca> would be to pretty-print them.


=2D-
Michael Richardson <mcr+IETF@sandelman.ca>   . o O ( IPv6 I=C3=B8T consulti=
ng )
           Sandelman Software Works Inc, Ottawa and Worldwide





--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iPMEAQEKAB0WIQSk7ZHEG9TCGBNASfm/sjw/rPYc8wUCYhbOyAAKCRC/sjw/rPYc
86DJBf49G7y71vYDCDALWAQTsXjTBbi4o56OEpANqmcHCtR+m5I5RKQEq7EOTG8L
w/ppMrAn1pQvC3MOthHN+s+kCw+HzeflFPSPn3K9yRp9v3yVetU14tC37KdSfNkS
KsXjuL4EJcYDtA3MEuZsrFfpmiCsacNObxouA8bVNeXLLtbDnc5K8YEKCUqvZI67
NR8Elx6oMRKsdkr9x+9gDutuxTV5cYGBN5F/amWToIO38mMDcPxPoUGFQvPXWfAT
bW/dFFQ=
=t1y9
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Wed Feb 23 17:07:02 2022
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 42D553A1212 for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 17:07:00 -0800 (PST)
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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8VpvDKOTnuUG for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 17:06:55 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [134.102.50.15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DED523A1210 for <cbor@ietf.org>; Wed, 23 Feb 2022 17:06:53 -0800 (PST)
Received: from [192.168.217.118] (p5089ad4f.dip0.t-ipconnect.de [80.137.173.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4K3vrB64ZMzDCbq; Thu, 24 Feb 2022 02:06:50 +0100 (CET)
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: <9709.1645661896@localhost>
Date: Thu, 24 Feb 2022 02:06:50 +0100
Cc: =?utf-8?Q?Christian_Ams=C3=BCss?= <christian@amsuess.com>, cbor@ietf.org
X-Mao-Original-Outgoing-Id: 667357610.326924-9700352416bf313a00cd87dba9060cae
Content-Transfer-Encoding: quoted-printable
Message-Id: <83575A66-894D-4013-9E89-AA3E0DB4641B@tzi.org>
References: <289545.1643998363@dooku> <982B35D9-8541-4AB6-88DE-55018DB5BB6B@tzi.org> <27168.1644006597@localhost> <D6BA4596-C08F-4CDF-AEB4-20C264D3BB34@tzi.org> <YgO2eOiH5gMdwSGd@hephaistos.amsuess.com> <13A46D26-E131-42C8-B325-C57857246699@tzi.org> <YhY8jT6/APLawwBF@hephaistos.amsuess.com> <9709.1645661896@localhost>
To: Michael Richardson <mcr+ietf@sandelman.ca>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/qP-cCYfnh9G_1g71ixzhWRqtbZ8>
Subject: Re: [Cbor] eliding CBOR diagnostic notation binary contents
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 24 Feb 2022 01:07:00 -0000

On 2022-02-24, at 01:18, Michael Richardson <mcr+ietf@sandelman.ca> =
wrote:
>=20
> So I rather would like something that fails.

Actually processing elisions should be a special flag.
That should address your concern.

Gr=C3=BC=C3=9Fe, Carsten


From nobody Wed Feb 23 17:21:48 2022
Return-Path: <mcr+ietf@sandelman.ca>
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 B76B63A1224 for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 17:21:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level: 
X-Spam-Status: No, score=-2.099 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=sandelman.ca
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hIgZ0kmaO03b for <cbor@ietfa.amsl.com>; Wed, 23 Feb 2022 17:21:41 -0800 (PST)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [IPv6:2607:f0b0:f:3:216:3eff:fe7c:d1f3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A10A53A0B6A for <cbor@ietf.org>; Wed, 23 Feb 2022 17:21:40 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by tuna.sandelman.ca (Postfix) with ESMTP id 496A63910D; Wed, 23 Feb 2022 20:30:14 -0500 (EST)
Received: from tuna.sandelman.ca ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id CHRkIq0uJHQx; Wed, 23 Feb 2022 20:30:13 -0500 (EST)
Received: from sandelman.ca (obiwan.sandelman.ca [209.87.249.21]) by tuna.sandelman.ca (Postfix) with ESMTP id 8C391390F8; Wed, 23 Feb 2022 20:30:13 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sandelman.ca; s=mail; t=1645666213; bh=A6+biXYLNVHZZObqWbiJUZROOg1+UYlHzvIyXHAOyMs=; h=From:To:cc:Subject:In-Reply-To:References:Date:From; b=HNuRgO/KVPIuXfHZwxQ/TZS2g7EZzZ6tl61J8qY7alUfKW8RyOnQbC7Th5Wqhrcnz V7j9lUcoONlDRcuufadGuqF675y01j75i625EjblRSFUIp8Y6BEgGkCpHykgtFf0/L ZcTAJAXjplBSIIuAugbAVEppXNMuvoqwTZuDsYAQVXJ56szZKr7RmqwYAAnQFv04Yc O4HUGmcnlib8hf/fpv4SOzebYiVnx0bpXstUX1n3h9+jNmcl/37pGm/0n0NcFSWHwL DMua2HgGf24qmWnMmRkkaYg5DEhSokKSZNhfB48GBuj0z/f71t4zIgdZq7B+0D5glF meV+WHYPS6hoQ==
Received: from localhost (localhost [IPv6:::1]) by sandelman.ca (Postfix) with ESMTP id E34E9864; Wed, 23 Feb 2022 20:21:37 -0500 (EST)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: Carsten Bormann <cabo@tzi.org>
cc: =?us-ascii?Q?=3D=3Futf-8=3FQ=3FChristian=5FAms=3DC3=3DBCss=3F=3D?= <christian@amsuess.com>, cbor@ietf.org
In-Reply-To: <83575A66-894D-4013-9E89-AA3E0DB4641B@tzi.org>
References: <289545.1643998363@dooku> <982B35D9-8541-4AB6-88DE-55018DB5BB6B@tzi.org> <27168.1644006597@localhost> <D6BA4596-C08F-4CDF-AEB4-20C264D3BB34@tzi.org> <YgO2eOiH5gMdwSGd@hephaistos.amsuess.com> <13A46D26-E131-42C8-B325-C57857246699@tzi.org> <YhY8jT6/APLawwBF@hephaistos.amsuess.com> <9709.1645661896@localhost> <83575A66-894D-4013-9E89-AA3E0DB4641B@tzi.org>
X-Mailer: MH-E 8.6+git; nmh 1.7+dev; GNU Emacs 26.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature"
Date: Wed, 23 Feb 2022 20:21:37 -0500
Message-ID: <30798.1645665697@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/AcrVsm4HWf8tEC0NeRqInQPpwQ0>
Subject: Re: [Cbor] eliding CBOR diagnostic notation binary contents
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 24 Feb 2022 01:21:47 -0000

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


Carsten Bormann <cabo@tzi.org> wrote:
    > On 2022-02-24, at 01:18, Michael Richardson <mcr+ietf@sandelman.ca>
    > wrote:
    >>
    >> So I rather would like something that fails.

    > Actually processing elisions should be a special flag.  That should
    > address your concern.

Yes, that works for me.

=2D-
Michael Richardson <mcr+IETF@sandelman.ca>   . o O ( IPv6 I=C3=B8T consulti=
ng )
           Sandelman Software Works Inc, Ottawa and Worldwide





--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iPMEAQEKAB0WIQSk7ZHEG9TCGBNASfm/sjw/rPYc8wUCYhbdoQAKCRC/sjw/rPYc
82beBgCDpjlL1u9acUQChArRYdT9JAVoyRDaBiWh0ppYE6RkclhfpXNcz5GG4iTQ
GRiWm2pzUbsZra9K1qFEeq837YocXaKbsrQk696gbjAT216dLhOclwcskSalv+O3
wf77Xaly/mxKZKePqdtwc+SfbQZ53Xvj7zlBsBA9dtCe+bzLwwzmaEdt/akxK2X/
wRwNti6fAEHEFSr7k9yoOQOMXsbq2InKz/yWO5lhBH5XOWCjzowSyRht9sdpQ/EW
d+7R5uw=
=y26T
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Wed Feb 23 22:55:30 2022
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 521A33A0147; Wed, 23 Feb 2022 22:55:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FROM_EXCESS_BASE64=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 84slbQvaV4RG; Wed, 23 Feb 2022 22:55:20 -0800 (PST)
Received: from smtp.akis.at (smtp.akis.at [IPv6:2a02:b18:500:a515::f455]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EB2243A00C3; Wed, 23 Feb 2022 22:55:18 -0800 (PST)
Received: from poseidon-mailhub.amsuess.com ([IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bd]) by smtp.akis.at (8.17.1/8.17.1) with ESMTPS id 21O6tD8r099152 (version=TLSv1.2 cipher=ECDHE-ECDSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 24 Feb 2022 07:55:14 +0100 (CET) (envelope-from christian@amsuess.com)
X-Authentication-Warning: smtp.akis.at: Host [IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bd] claimed to be poseidon-mailhub.amsuess.com
Received: from poseidon-mailbox.amsuess.com (poseidon-mailbox.amsuess.com [IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bf]) by poseidon-mailhub.amsuess.com (Postfix) with ESMTP id 0D6DBD0; Thu, 24 Feb 2022 07:55:13 +0100 (CET)
Received: from hephaistos.amsuess.com (unknown [IPv6:2a02:b18:c13b:8010:c452:7e07:77ef:2350]) by poseidon-mailbox.amsuess.com (Postfix) with ESMTPSA id 9F29E7F; Thu, 24 Feb 2022 07:55:12 +0100 (CET)
Received: (nullmailer pid 1234859 invoked by uid 1000); Thu, 24 Feb 2022 06:55:12 -0000
Date: Thu, 24 Feb 2022 07:55:12 +0100
From: Christian =?us-ascii?B?PT9pc28tODg1OS0xP1E/QW1zPUZDc3M/PQ==?= <christian@amsuess.com>
To: Michael Richardson <mcr+ietf@sandelman.ca>
Cc: cbor@ietf.org, draft-ietf-cbor-file-magic@ietf.org
Message-ID: <Yhcr0KlCYiak9Ati@hephaistos.amsuess.com>
References: <164442074235.12313.4216473952031101282@ietfa.amsl.com> <YgPhxUmjDUqLTEtK@hephaistos.amsuess.com> <YhTi7sT7O7xzjLQz@hephaistos.amsuess.com> <11503.1645643287@localhost>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="HmX2Y0iQ11S9F2ty"
Content-Disposition: inline
In-Reply-To: <11503.1645643287@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/9ue87Nrr_ATQUl3rdD0mgLOYdLI>
Subject: Re: [Cbor] Chair review of cbor-file-magic 08
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 24 Feb 2022 06:55:26 -0000

--HmX2Y0iQ11S9F2ty
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Feb 23, 2022 at 02:08:07PM -0500, Michael Richardson wrote:
>     > * 5.3: At latest here, I'd have expected to read something about the
>     > information that is lost when using this tag with 2.2. Maybe there
>     > should be a line (not for IANA but for users, so maybe in a differe=
nt
>     > section) that outlines when this works with (non)CBOR content forma=
ts
>     > and with which encodings.
>=20
> I've tried how to understand this comment, but I'm failing.
> Which information is lost?

I've phrased this badly: The ct encoded in the tag gives information
about the (structured) media type and the content coding. In the 2.2 and
2.3 use cases, the information in the content coding is ... discarded
(should be the word to use rather than lost), if it is acceptable that a
ct for application/mine+cbor@gzip is also used in this tag. Or the
content coding is required to be identity, in which case any
non-identity content coding would be ruled out (just like any non-CBOR
media types are ruled out).


>     >   I think I understand now that the 5.3 tags can be used with either
>     > 2.2, 2.3 or C (55899, 55800 and 55801), but
>=20
> good...
>=20
>     >   * with 55899 the ct tags can only be used if the content format i=
s a
>     > CBOR content format and coding is identity (and then tags a value)
>=20
> 55899 marks CBOR, so the content had better be CBOR.

any tag tags CBOR, so the content needs to be CBOR.

>     > with 55900 the ct tags can only be used if the content format is a
>     > CBOR-sequence content format and coding is identity (and then tags a
>     > byte string)
>=20
>     > * with 55901 the ct tags can always be used, and tag a
>     > byte string (which is also encoded according to the coding that is =
part
>     > of the ct)
>=20
> 55901 could be used with any content, because it makes no promise about t=
he content.
> For CBOR encoded things, any of these tags could be used.
> Are you suggesting that we tell people not to use 55901 with CBOR content?

I'm not saying that (and am pretty meh about whether it should be).

I'm just saying that the formalities of defining the tags are complex
(because 55799(ct1234(X)) can take anything for X, whereas
55801(ct1234(X)) takes precisely a bytestring ('BOR'). The text in the
IANA section 5.3 reflect that correctly, and I haven't found text that
sets the rules (rather than implying them).

>     > * (Maybe security) considerations: 3.2 talks of trivially concatena=
ted
>     > data items. If CBOR Tag Sequence is used and the data gets literally
>     > "concatenated", (say, `cat *.cborseq > outfile`), one might wind up
>     > with self-described tags in the middle of the sequence. (As we do w=
ith
>     > BOMs).
>=20
> I have added:
> https://github.com/cbor-wg/cbor-magic-number/commit/23c4176796d83e4d69ba5=
6ab8a9b7f45cd691272

That sounds like accepting such chains; is that really desirable? It
sounds really messy to me.

> I think that you are having a problem with A.1 wrapping a CBOR thing in
> 55801?

I don't care about what is in a 55801, but the CDDL is confusing because
it is unspecific about which use case it is.

Either this tag is for use with 55800/55801, then it can be `senml-cbor
=3D #6.1668546672('BOR')` right away.

Or it is for use with 55799, then it needs to be `senml-cbor =3D
#6.1668546672([*record])` or whatever we use for SenML.

BR
c

--=20
To use raw power is to make yourself infinitely vulnerable to greater power=
s.
  -- Bene Gesserit axiom

--HmX2Y0iQ11S9F2ty
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEECM1tElX6OodcH7CWOY0REtOkveEFAmIXK8oACgkQOY0REtOk
veHf8A//Y+XxO0mek0jTVvhJowtKcPqHQA7qGzD7+UJ677gsxaCbPDW+e7LY2qv+
MuXFzpeQq/bmymTCfto6J9K3ousJFqEYdiZPs+Oav5O3D16zgfQR1gQVXwvTooHr
RqPDL3brer65K6blfXpXPhzfDtHSkkn6eBE62T1vJ/C0E6xA/XVBeI79X+npnstL
XCL8Tqm9Qg7IbLcj+ik6Ok2Kpprpo2fK3VT+lOsOJuS1Bu10XEzeMDVGbJck08qY
pRdnCYtpV3UCQVxJnvuXhDTj9yepLfr32UevSNe0bVxYWZycAiNX8Vr9fLJW+2FL
JukmzvUAb1MS6a0872ZPlpmPohkkDAJON3yBHauvYaBae7C00X3/2hhQO0DiAJOf
9SGRtDzYvmH4WFWjP/0NSAtum3zrcCNmkUStTmRWmy/J4r5haA5BdWgKrY0CSMck
zbd13xNpTuoc0RI4hGnsR2QvNSrJFyhVSfW8fJKSe7fsVq8lkmFKcKiuT3kpZLVF
pID2qX6tFjkZzMOfI/ll14rTuk26VHXJkjs7BmUWzLWX/CrUHolgeOwFCL2YzMHx
JmUMcqmN01v4Q/b+ZRrmzFBEWCJHM5T1M4eSXi59xBxsItmngfpg8uTDSwSFUGLS
R7zq9cIWw6g1mSPepUhD78745SJHk6oTlcNbYin53t+RDy2E5sM=
=ZKG+
-----END PGP SIGNATURE-----

--HmX2Y0iQ11S9F2ty--


From nobody Thu Feb 24 03:31:09 2022
Return-Path: <michael.peyton-jones@iohk.io>
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 CF6D93A1168 for <cbor@ietfa.amsl.com>; Thu, 24 Feb 2022 03:31:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.088
X-Spam-Level: 
X-Spam-Status: No, score=-7.088 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_REMOTE_IMAGE=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=iohk.io
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wXAi3Uon21Yx for <cbor@ietfa.amsl.com>; Thu, 24 Feb 2022 03:31:01 -0800 (PST)
Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CA4D13A11E3 for <cbor@ietf.org>; Thu, 24 Feb 2022 03:31:00 -0800 (PST)
Received: by mail-wm1-x32f.google.com with SMTP id p4so924879wmg.1 for <cbor@ietf.org>; Thu, 24 Feb 2022 03:31:00 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iohk.io; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fmU9yP/RxQR4CYjSqMUDsOimE9DQ8D7+4+LkO4Q4QzA=; b=Mfux/whKfXKKyf7BygO73ZLcI8Re4K+QFgT6dSPjOwK2Jehj/WdqREhkjQ8LnF52f1 rTjqTyQnma90OTNzYrX871ThRaPKXALclNVtT9rJ+P2VMHWdaEDTDD1mwKiGUb4ERwrN HM+qzINlSgWUyEZLVeU4ouxjkxvutm1VusUTcM+oRoyNsQz3mSq5IvtYY+FvGAou0v22 7aJNH9DAsemNZnl5qU9dsLtVQ/yqcAZx1HEtYwPO6IIU4Y68n20xyf1rft+3lZJvpr97 4vpst9f+1jQGRs7V5mbf9dWqv6vNRc7eu6k1lRs9ViOKgzjotoEMPcvQP4u0ynzAu604 nxFA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fmU9yP/RxQR4CYjSqMUDsOimE9DQ8D7+4+LkO4Q4QzA=; b=43rmkb5E5PuAAp7QX6gbmWLSKYTWBouar448WHh+ghgfJqpNhHfhSWfYsYqRkg9MQe 7PQ74LOg3x7z4byaPfH1g+S6k5VWypK1iW/O0rMPULdOxBF6EuFiNp/YWClCALj+hPy7 y5Vi4JKm+ct2+dQfEvh95dLlzRer03Gd8xVpZapmKkprcKpmZ9MIlyrWOAaE+1TvBHKM iP6B25GMfurfH9OpYy9RDRIAREgke8MBDz9qhWX10gHZk2ngk4k+sCSP2JQoQuQwsvCa aCLfoUcyNgXNIUYSRepgSNrY4tkN+dnu4fYv7xrcawKvCstjxnOtF1oxA9Vt/bRJuAcf Qc4A==
X-Gm-Message-State: AOAM530lqlZchPkPp1O9SsEzxpOtGvVK4cKUPQldl/ialPaq2ppuQ2HI W8uIAv/K4o5D+NELVsCu6pOaw35YHHH95k3qCkO6TQ==
X-Google-Smtp-Source: ABdhPJx00pL/wui7V1+DpX5hR9vcLKcTr2m8CJ1D4+1mIduHg+97lVkxLFbJBXOAjYvTS0axX9Vo1ULpOVkbxQJerwY=
X-Received: by 2002:a05:600c:1c9a:b0:37b:bbbd:b8db with SMTP id k26-20020a05600c1c9a00b0037bbbbdb8dbmr1939760wms.185.1645702258802; Thu, 24 Feb 2022 03:30:58 -0800 (PST)
MIME-Version: 1.0
References: <9300a81abc33a45a9f3c7c1c62da88908280e54a.camel@well-typed.com> <1D3EF118-0223-43BC-81B2-369D4515DB21@tzi.org> <1ce2c092d3214d5fdce59435fc10b084c1ba48ca.camel@well-typed.com> <DFCBE61C-35B2-42A2-8D1A-A633CF939154@tzi.org> <2e10456c5791a422bf7218e7b84051f2b7121b66.camel@well-typed.com> <CAKoRMYGcwrhVWd-J3dX75WZfc+T_oyb6NCUNaeCXMW5_-VYdTw@mail.gmail.com> <52EDB93C-827A-465F-B644-51B3EF590D06@tzi.org> <C9D895BB-40E6-431F-958F-AC031DE4FB58@tzi.org> <CAKoRMYG9X0JF4ehkMc30_UNi0JtT2YMeG4RgxznS6O3Di6pkRA@mail.gmail.com> <CAKoRMYHwewaYxkX=CsfETBbdV7c9U97jfbd9xg=PyrMX5vJhnA@mail.gmail.com> <3B3B7EF0-152B-4015-8485-B204F7AEFFBC@tzi.org> <CAKoRMYFbEG=TkuZPPOiXv2DjEh23Ujd_Q44kQqiWPGc_0GMTuQ@mail.gmail.com> <CAKoRMYHnF6fGJp1dTrJnRHFTBOhreLRwzR_=cCckW1nBXOEz0A@mail.gmail.com> <E8A9E016-2248-4BB9-9864-C6C7D52A4AE5@tzi.org> <CAKoRMYE+gmWyCL9zYDa-O-c3KV_iuzgYuS+Q4fi=U7VHDNDtkQ@mail.gmail.com> <CAKoRMYFdAr1YY3mtmY0NU5X9Bk8_4WYh7bC0CtXpZc3toLSu8g@mail.gmail.com> <CAKoRMYH3MTMi_tX5KHF-O-DTKzopiGqe3fi6XjkPaGCM4823OQ@mail.gmail.com> <7dfd62ccb6c089af90c90f26a8945f23232ecbc1.camel@well-typed.com> <CAKoRMYEOo1Gqfc4W4k3NOLKpFa97Q9YzLCm3r0PJ13V2HJPf3A@mail.gmail.com> <2BBF6463-FDB2-4A8A-B20D-7A1AD976A90D@tzi.org> <CAKoRMYFi8uo2GfHA9s1n+-rMO8Ja9=2qMMzjS9Z=F9r3LFozRQ@mail.gmail.com> <8EA89504-C176-4850-9BB8-C7E7206374FF@tzi.org> <CAKoRMYGmOa0hzEFsJh8kpz0bU5x56Yc9P=DBK-ghU83gXxPv7A@mail.gmail.com> <CAKoRMYGUvmxufQUVyvX2mciq5LCmV0Nz-uE2MJn54GDBB+9DRw@mail.gmail.com> <CAKoRMYF_19V6mu4S9GVqfiNzyQVvvOzX6eYwHp_DtZQoG0xTKg@mail.gmail.com> <4B47F4D7-ADE3-4A22-8A5B-97F4E5FCD933@tzi.org> <26378.1645659038@localhost> <94A53D04-2C5A-4965-A65C-4B1C2815647A@tzi.org>
In-Reply-To: <94A53D04-2C5A-4965-A65C-4B1C2815647A@tzi.org>
From: Michael Peyton Jones <michael.peyton-jones@iohk.io>
Date: Thu, 24 Feb 2022 11:30:47 +0000
Message-ID: <CAKoRMYHyRz7he5qRjCLSQ0v0zDq6y16oJ_dHzjHJSjV1O013Gg@mail.gmail.com>
To: Carsten Bormann <cabo@tzi.org>
Cc: Michael Richardson <mcr+ietf@sandelman.ca>, Duncan Coutts <duncan@well-typed.com>, cbor@ietf.org,  Jared Corduan <jared.corduan@iohk.io>, Alexander Byaly <alexander.byaly@iohk.io>
Content-Type: multipart/alternative; boundary="0000000000008ae4d005d8c1eadd"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/JZWaMyptJNpDq1WRqgK92vbvJ5Q>
Subject: Re: [Cbor] A CBOR tag for alternatives/unions, request for comments
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 24 Feb 2022 11:31:07 -0000

--0000000000008ae4d005d8c1eadd
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I don't think we have any data on how common different number of
alternatives are, but we do have a large amount of experience writing code
in functional programming languages, which are one of the target use cases
for these tags.

The argument for going up to 8 alternatives in the most compact range is
simple:
- As computer scientists, we like to round things to powers of 2 :)
- Data types with more than 4 alternatives are common, so that is fewer
than we would like.
- Data types with more than 8 alternatives are rare.

Ergo: 8 should be enough for most purposes.

The argument for the second range is perhaps less clear. I could see the
argument for not including it at all. However, since the tag space is
comparatively more plentiful, it seemed cheap to use a modest amount of
them for this purpose. Again, the argument for the number of tags is from
experience: data types with more than 100 alternatives are *vanishingly*
rare, and likely machine-generated if they exist at all.

Best wishes,
Michael

On Thu, 24 Feb 2022 at 00:06, Carsten Bormann <cabo@tzi.org> wrote:

> On 2022-02-24, at 00:30, Michael Richardson <mcr+ietf@sandelman.ca> wrote=
:
> >
> >
> > {why haven't we adopted this document yet?}
>
> So it=E2=80=99s current author can munge it more freely, instead of waiti=
ng for a
> WG direction to form.
> (You can always do a hostile adoption, though ;-)
>
> > Hi, I've reviewed section 9 of notable-tags-06.
> > I raised a minor PR: https://github.com/cabo/notable-tags/pull/1
> > because I had to stare at the [uint,value] part really hard before I
> > understood things.  Part of the issue is that the "value" in the
> previous two
> > cases was just "obvious", and then I couldn't understand what it meant
> in the
> > third case.
>
> I just commented on the specific words.
>
> > I understood from the meeting this morning that tag 101 'e', is not
> actually
> > available.  But, actually it looks like it is according to IANA.org.
> > Or was it that another draft wanted it?
> > How about 'x' (NOPE) 'X' YES. 'u' YES.
> > https://www.iana.org/assignments/cbor-tags/cbor-tags.xhtml#cbor-tags
>
> (NOPE =3D tag 120 =E2=80=98x=E2=80=99 is already in use.)
> I=E2=80=99ll leave that choice to the proposers=E2=80=A6
>
> > I think that the document might explain why we optimize the first 7
> (0..6),
> > rather than the first 3 or 5 or 9.  Are the next 128 worth it?
>
> We could skip the whole 1+2 tag range if we think the 24 1+1+1 cases from
> was-102 are enough of an expansion.
> But then we still have lots of 1+2 tags (0.07 % in use right now), if
> these actually are useful.
>
> I can=E2=80=99t really imagine more than 31 cases in one alternative bein=
g used
> very often, but then I=E2=80=99d like to hear from the people who actuall=
y use this.
>
> > I wonder if there are more than 7, are there typically more 100s?
> > If it turns out that 9 is the sweet spot, I'd be okay with more 1+1
> > and no 1+2.  I don't have any data on this.
> > I wonder if Michael, Duncan, Jared or Alexander do?
>
> Yes, we need a PDF (probability distribution function) :-)
> (Well, really, some intuition about that.)
>
> My hunch is that this is going to be approximately Zipf=E2=80=99s law, an=
d that
> means the first 4 or 5 are really important, and then it goes down, but
> slowly.
>
> > I agree with the discussion that tag 101 could just encode 0..x
> > rather than uint+128.  I think that the simpler encoder might be worth =
it
> > here.  Particularly in some cases where I suspect which ones are the
> lower
> > numbered onces might not be known until later, and some code wants to
> come
> > back and fill in the alternatives afterwards, having left 1+4 for the
> uint or
> > something like that.
>
> See my previous message.
>
> Gr=C3=BC=C3=9Fe, Carsten
>
>
>

--=20

*Michael Peyton Jones*
Software Engineering Lead | London, UK

Website: www.iohk.io <http://iohk.io>
Skype: michael.s.pj
Twitter: @mpeytonjones
PGP Key ID: 29F64616

[image: Input Output] <http://iohk.io>

[image: Twitter] <https://twitter.com/InputOutputHK> [image: Github]
<https://github.com/input-output-hk> [image: LinkedIn]
<https://www.linkedin.com/company/input-output-global>


This e-mail and any file transmitted with it are confidential and intended
solely for the use of the recipient(s) to whom it is addressed.
Dissemination, distribution, and/or copying of the transmission by anyone
other than the intended recipient(s) is prohibited. If you have received
this transmission in error please notify IOHK immediately and delete it
from your system. E-mail transmissions cannot be guaranteed to be secure or
error free. We do not accept liability for any loss, damage, or error
arising from this transmission

--0000000000008ae4d005d8c1eadd
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>I don&#39;t think we have any data on how common diff=
erent number of alternatives are, but we do have a large amount of experien=
ce writing code in functional programming languages, which are one of the t=
arget use cases for these tags.</div><div><br></div><div>The argument for g=
oing up to 8 alternatives in the most compact range is simple:</div><div>- =
As computer scientists, we like to round things to powers of 2 :)</div><div=
>- Data types with more than 4 alternatives are common, so that is fewer th=
an we would like.</div><div>- Data types with more than 8 alternatives are =
rare.</div><div><br></div><div>Ergo: 8 should be enough for most purposes.<=
/div><div><br></div><div>The argument for the second range is perhaps less =
clear. I could see the argument for not including it at all. However, since=
 the tag space is comparatively more plentiful, it seemed cheap to use a mo=
dest amount of them for this purpose. Again, the argument for the number of=
 tags is from experience: data types with more than 100 alternatives are *v=
anishingly* rare, and likely machine-generated if they exist at all.</div><=
div><br></div><div>Best wishes,</div><div>Michael<br></div></div><br><div c=
lass=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, 24 Feb 2=
022 at 00:06, Carsten Bormann &lt;<a href=3D"mailto:cabo@tzi.org">cabo@tzi.=
org</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"marg=
in:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1e=
x">On 2022-02-24, at 00:30, Michael Richardson &lt;<a href=3D"mailto:mcr%2B=
ietf@sandelman.ca" target=3D"_blank">mcr+ietf@sandelman.ca</a>&gt; wrote:<b=
r>
&gt; <br>
&gt; <br>
&gt; {why haven&#39;t we adopted this document yet?}<br>
<br>
So it=E2=80=99s current author can munge it more freely, instead of waiting=
 for a WG direction to form.<br>
(You can always do a hostile adoption, though ;-)<br>
<br>
&gt; Hi, I&#39;ve reviewed section 9 of notable-tags-06.<br>
&gt; I raised a minor PR: <a href=3D"https://github.com/cabo/notable-tags/p=
ull/1" rel=3D"noreferrer" target=3D"_blank">https://github.com/cabo/notable=
-tags/pull/1</a><br>
&gt; because I had to stare at the [uint,value] part really hard before I<b=
r>
&gt; understood things.=C2=A0 Part of the issue is that the &quot;value&quo=
t; in the previous two<br>
&gt; cases was just &quot;obvious&quot;, and then I couldn&#39;t understand=
 what it meant in the<br>
&gt; third case.<br>
<br>
I just commented on the specific words.<br>
<br>
&gt; I understood from the meeting this morning that tag 101 &#39;e&#39;, i=
s not actually<br>
&gt; available.=C2=A0 But, actually it looks like it is according to IANA.o=
rg.<br>
&gt; Or was it that another draft wanted it?<br>
&gt; How about &#39;x&#39; (NOPE) &#39;X&#39; YES. &#39;u&#39; YES.<br>
&gt; <a href=3D"https://www.iana.org/assignments/cbor-tags/cbor-tags.xhtml#=
cbor-tags" rel=3D"noreferrer" target=3D"_blank">https://www.iana.org/assign=
ments/cbor-tags/cbor-tags.xhtml#cbor-tags</a><br>
<br>
(NOPE =3D tag 120 =E2=80=98x=E2=80=99 is already in use.)<br>
I=E2=80=99ll leave that choice to the proposers=E2=80=A6<br>
<br>
&gt; I think that the document might explain why we optimize the first 7 (0=
..6),<br>
&gt; rather than the first 3 or 5 or 9.=C2=A0 Are the next 128 worth it?<br=
>
<br>
We could skip the whole 1+2 tag range if we think the 24 1+1+1 cases from w=
as-102 are enough of an expansion.<br>
But then we still have lots of 1+2 tags (0.07 % in use right now), if these=
 actually are useful.<br>
<br>
I can=E2=80=99t really imagine more than 31 cases in one alternative being =
used very often, but then I=E2=80=99d like to hear from the people who actu=
ally use this.<br>
<br>
&gt; I wonder if there are more than 7, are there typically more 100s?<br>
&gt; If it turns out that 9 is the sweet spot, I&#39;d be okay with more 1+=
1<br>
&gt; and no 1+2.=C2=A0 I don&#39;t have any data on this.<br>
&gt; I wonder if Michael, Duncan, Jared or Alexander do?<br>
<br>
Yes, we need a PDF (probability distribution function) :-)<br>
(Well, really, some intuition about that.)<br>
<br>
My hunch is that this is going to be approximately Zipf=E2=80=99s law, and =
that means the first 4 or 5 are really important, and then it goes down, bu=
t slowly. <br>
<br>
&gt; I agree with the discussion that tag 101 could just encode 0..x<br>
&gt; rather than uint+128.=C2=A0 I think that the simpler encoder might be =
worth it<br>
&gt; here.=C2=A0 Particularly in some cases where I suspect which ones are =
the lower<br>
&gt; numbered onces might not be known until later, and some code wants to =
come<br>
&gt; back and fill in the alternatives afterwards, having left 1+4 for the =
uint or<br>
&gt; something like that.<br>
<br>
See my previous message.<br>
<br>
Gr=C3=BC=C3=9Fe, Carsten<br>
<br>
<br>
</blockquote></div><br clear=3D"all"><br>-- <br><div dir=3D"ltr" class=3D"g=
mail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr=
"><br><b style=3D"color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:11=
6%">Michael Peyton Jones</b><br>
<span style=3D"color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:100%"=
><span style=3D"color:rgb(255,0,0)">Software Engineering Lead |</span> Lond=
on, UK</span><br><br>

<span style=3D"color:rgb(153,153,153);font-family:Helvetica,Arial;font-size=
:85%">Website: <a href=3D"http://iohk.io" style=3D"color:rgb(255,0,0)" targ=
et=3D"_blank">www.iohk.io</a></span><br>
<span style=3D"color:rgb(153,153,153);font-family:Helvetica,Arial;font-size=
:85%">Skype: michael.s.pj</span><br>
<span style=3D"color:rgb(153,153,153);font-family:Helvetica,Arial;font-size=
:85%">Twitter: @mpeytonjones</span><br>
<span style=3D"color:rgb(153,153,153);font-family:Helvetica,Arial;font-size=
:85%">PGP Key ID: 29F64616</span><br>
<br>

<a href=3D"http://iohk.io" target=3D"_blank"><img src=3D"https://static.ioh=
k.io/logo/logo-email.png" alt=3D"Input Output" width=3D"200" height=3D"46">=
</a>
<br>
<br>
<a href=3D"https://twitter.com/InputOutputHK" target=3D"_blank"><img src=3D=
"https://static.iohk.io/images/ic-tw.png" alt=3D"Twitter" width=3D"18" heig=
ht=3D"16"></a>
<a href=3D"https://github.com/input-output-hk" target=3D"_blank"><img src=
=3D"https://static.iohk.io/images/ic-gh.png" alt=3D"Github" width=3D"21" he=
ight=3D"16"></a>
<a href=3D"https://www.linkedin.com/company/input-output-global" target=3D"=
_blank"><img src=3D"https://static.iohk.io/images/ic-li.png" alt=3D"LinkedI=
n" width=3D"19" height=3D"16"></a>

<br>
<br>
<br>

<span style=3D"color:rgb(68,68,68);font-family:Helvetica,Arial;font-size:77=
%"><small>This
 e-mail and any file transmitted with it are confidential and intended=20
solely for the use of the recipient(s) to whom it is addressed.=20
Dissemination, distribution, and/or copying of the transmission by=20
anyone other than the intended recipient(s) is prohibited. If you have=20
received this transmission in error please notify IOHK immediately and=20
delete it from your system. E-mail transmissions cannot be guaranteed to
 be secure or error free. We do not accept liability for any loss,=20
damage, or error arising from this transmission</small></span>
</div></div></div></div></div></div>

--0000000000008ae4d005d8c1eadd--


From nobody Thu Feb 24 04:20:27 2022
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 844613A11F8 for <cbor@ietfa.amsl.com>; Thu, 24 Feb 2022 04:20:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.9
X-Spam-Level: 
X-Spam-Status: No, score=-6.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DEj2IQ2XKYFx for <cbor@ietfa.amsl.com>; Thu, 24 Feb 2022 04:20:22 -0800 (PST)
Received: from smtp.akis.at (smtp.akis.at [IPv6:2a02:b18:500:a515::f455]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D7DCC3A0C1A for <cbor@ietf.org>; Thu, 24 Feb 2022 04:20:21 -0800 (PST)
Received: from poseidon-mailhub.amsuess.com ([IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bd]) by smtp.akis.at (8.17.1/8.17.1) with ESMTPS id 21OCKGbd022990 (version=TLSv1.2 cipher=ECDHE-ECDSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 24 Feb 2022 13:20:16 +0100 (CET) (envelope-from christian@amsuess.com)
X-Authentication-Warning: smtp.akis.at: Host [IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bd] claimed to be poseidon-mailhub.amsuess.com
Received: from poseidon-mailbox.amsuess.com (poseidon-mailbox.amsuess.com [IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bf]) by poseidon-mailhub.amsuess.com (Postfix) with ESMTP id B565AD0; Thu, 24 Feb 2022 13:20:14 +0100 (CET)
Received: from hephaistos.amsuess.com (unknown [IPv6:2a02:b18:c13b:8010:c452:7e07:77ef:2350]) by poseidon-mailbox.amsuess.com (Postfix) with ESMTPSA id 4D539FD; Thu, 24 Feb 2022 13:20:14 +0100 (CET)
Received: (nullmailer pid 1422327 invoked by uid 1000); Thu, 24 Feb 2022 12:20:13 -0000
Date: Thu, 24 Feb 2022 13:20:13 +0100
From: Christian =?iso-8859-1?Q?Ams=FCss?= <christian@amsuess.com>
To: Carsten Bormann <cabo@tzi.org>
Cc: Michael Peyton Jones <michael.peyton-jones@iohk.io>, Duncan Coutts <duncan@well-typed.com>, cbor@ietf.org, Jared Corduan <jared.corduan@iohk.io>, Alexander Byaly <alexander.byaly@iohk.io>
Message-ID: <Yhd3/bwVUOLJLzWu@hephaistos.amsuess.com>
References: <CAKoRMYH3MTMi_tX5KHF-O-DTKzopiGqe3fi6XjkPaGCM4823OQ@mail.gmail.com> <7dfd62ccb6c089af90c90f26a8945f23232ecbc1.camel@well-typed.com> <CAKoRMYEOo1Gqfc4W4k3NOLKpFa97Q9YzLCm3r0PJ13V2HJPf3A@mail.gmail.com> <2BBF6463-FDB2-4A8A-B20D-7A1AD976A90D@tzi.org> <CAKoRMYFi8uo2GfHA9s1n+-rMO8Ja9=2qMMzjS9Z=F9r3LFozRQ@mail.gmail.com> <8EA89504-C176-4850-9BB8-C7E7206374FF@tzi.org> <CAKoRMYGmOa0hzEFsJh8kpz0bU5x56Yc9P=DBK-ghU83gXxPv7A@mail.gmail.com> <CAKoRMYGUvmxufQUVyvX2mciq5LCmV0Nz-uE2MJn54GDBB+9DRw@mail.gmail.com> <CAKoRMYF_19V6mu4S9GVqfiNzyQVvvOzX6eYwHp_DtZQoG0xTKg@mail.gmail.com> <4B47F4D7-ADE3-4A22-8A5B-97F4E5FCD933@tzi.org>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="+XGMCsOz7rNIe59m"
Content-Disposition: inline
In-Reply-To: <4B47F4D7-ADE3-4A22-8A5B-97F4E5FCD933@tzi.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/sQ1fkJu9L1jgDxQvxV3KIQEOmoI>
Subject: Re: [Cbor] A CBOR tag for alternatives/unions, request for comments
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 24 Feb 2022 12:20:25 -0000

--+XGMCsOz7rNIe59m
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello Michael, Carsten,

putting my designated-expert hat on because this will sooner or later
reach me through the review that'll be asked for the 24-32767 range.

On Wed, Feb 23, 2022 at 02:16:14PM +0100, Carsten Bormann wrote:
> Current state of tag allocation:
> range  used     %                 free                total
> 0 1+0    12 50.00                   12                   24
> 1 1+1    62 26.72                  170                  232
> 2 1+2    45  0.07                65235                65280
> 3 1+4     3  0.00           4294901757           4294901760
> 4 1+8     2  0.00 18446744069414584318 18446744069414584320

this is asking 6 (in discussion with Michael, 8) out of the ~170
remaining short tags. Chunk allocations are not unheard of, and it's not
a particularly large chunk, but given that this is not a case coming
=66rom the constrained or high-volume applications that CBOR was designed
for, I'd like to confirm:

Does it, for the applications expecting to use this, make a noticable
difference whether a 1+1 or a 1+2 tag is used?

(The difference is likely most pronounced on alternatives without actual
payload; expressing the two values of `Either () ()` (if I'm getting this
right; in Rust I might say `Result<(), ()>`) would take 4 byte each vs.
3 byte each for the full value including the tagged nil / empty-tuple).

If not, I'd suggest that, say, 128 tags could be requested from 1+2,
leaving the 1+1+1+(2..) version for the unbounded range.

If so, please provide some note about how this does make a difference,
which I can refer to when eventually reviewing the entry.

BR
c

--=20
To use raw power is to make yourself infinitely vulnerable to greater power=
s.
  -- Bene Gesserit axiom

--+XGMCsOz7rNIe59m
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEECM1tElX6OodcH7CWOY0REtOkveEFAmIXd/oACgkQOY0REtOk
veGjgg/9Fr6eya4peLhuuB1OvkHzHhQIEmro1qBiE9MbHGWXVDhCJt9lLtbKuXqV
FoKwFk6QPXRfM0wLWzYbeh0xrxpDg+E0/Trahb9fFhieJqkwlGa29rh5bIvqx2DE
hv9WGTFzAe7nOvwQduMj7tVT7a+Hv+cICfF0mfzdXTMyoNT1i+vRuF7mspxrYsXx
r8PcMyaYQAKquBNJoCaX7oGfgzC0gfWwYlbWTvebOFgKhl4Y6mdQFYm5+7U/su88
2v7l+dQU8pjccrdICR5F4wJIawyLDm4+8Q14V2lTyS9QN7KZPZq7UfpZF0t8bgHO
TdzLcGNhVDG5QStOXVxZ1x8DIk4Zb5bAxmOYBd8kn2KW1cKMNbdtso5yUKjJnE7h
qxtZCqjWQbk5cRHhyHulsQrXcsMpNhNxE/8qRpfoUun20OCrxdTSos4QkkqclRka
Td631fB7oa1Kfm6nFXlVdaIXach008/VLcwP2SXRlf16N+e4eTdRD6uu28SnvCGJ
hKgAdxQ1QbH/e/5S9kR6BAFHc9LJ8Kz2yXrttX7/soUYTB4MAoTXDMbVINR9YA0p
ubL2uPeN6DGPIs1Bc3++IVnZmeexTEnsWyg9YFo18a9aVoKilgDbeaIvUTTfmCv4
+GP5TT0KkwVC8Bn17LILULxgP0tnVNGbLDmLxzAqAc5NZ7rWwxI=
=cJAi
-----END PGP SIGNATURE-----

--+XGMCsOz7rNIe59m--


From nobody Thu Feb 24 05:49:09 2022
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 BDDCC3A13D4 for <cbor@ietfa.amsl.com>; Thu, 24 Feb 2022 05:49:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9oxNH78AtANS for <cbor@ietfa.amsl.com>; Thu, 24 Feb 2022 05:49:01 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [134.102.50.15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9759C3A13C5 for <cbor@ietf.org>; Thu, 24 Feb 2022 05:49:00 -0800 (PST)
Received: from [192.168.217.118] (p5089ad4f.dip0.t-ipconnect.de [80.137.173.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4K4DlZ2PXFzDCcr; Thu, 24 Feb 2022 14:48:58 +0100 (CET)
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: <Yhd3/bwVUOLJLzWu@hephaistos.amsuess.com>
Date: Thu, 24 Feb 2022 14:48:57 +0100
Cc: Duncan Coutts <duncan@well-typed.com>, cbor@ietf.org, Michael Peyton Jones <michael.peyton-jones@iohk.io>, Jared Corduan <jared.corduan@iohk.io>, Alexander Byaly <alexander.byaly@iohk.io>
X-Mao-Original-Outgoing-Id: 667403337.934582-77f7e2256b0b951c413172d1db57e62e
Content-Transfer-Encoding: quoted-printable
Message-Id: <B6FC521C-1C28-4B11-90F2-DE62308B7168@tzi.org>
References: <CAKoRMYH3MTMi_tX5KHF-O-DTKzopiGqe3fi6XjkPaGCM4823OQ@mail.gmail.com> <7dfd62ccb6c089af90c90f26a8945f23232ecbc1.camel@well-typed.com> <CAKoRMYEOo1Gqfc4W4k3NOLKpFa97Q9YzLCm3r0PJ13V2HJPf3A@mail.gmail.com> <2BBF6463-FDB2-4A8A-B20D-7A1AD976A90D@tzi.org> <CAKoRMYFi8uo2GfHA9s1n+-rMO8Ja9=2qMMzjS9Z=F9r3LFozRQ@mail.gmail.com> <8EA89504-C176-4850-9BB8-C7E7206374FF@tzi.org> <CAKoRMYGmOa0hzEFsJh8kpz0bU5x56Yc9P=DBK-ghU83gXxPv7A@mail.gmail.com> <CAKoRMYGUvmxufQUVyvX2mciq5LCmV0Nz-uE2MJn54GDBB+9DRw@mail.gmail.com> <CAKoRMYF_19V6mu4S9GVqfiNzyQVvvOzX6eYwHp_DtZQoG0xTKg@mail.gmail.com> <4B47F4D7-ADE3-4A22-8A5B-97F4E5FCD933@tzi.org> <Yhd3/bwVUOLJLzWu@hephaistos.amsuess.com>
To: =?utf-8?Q?Christian_Ams=C3=BCss?= <christian@amsuess.com>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/tXd3EZx7L3YqQ4JA9oKkebQsWyU>
Subject: Re: [Cbor] A CBOR tag for alternatives/unions, request for comments
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 24 Feb 2022 13:49:07 -0000

> [=E2=80=A6] this is not a case coming
> from the constrained or high-volume applications that CBOR was =
designed
> for, [=E2=80=A6]

I=E2=80=99m not so sure about the constrained space:
Rust has a strong ascent as the language of choice in the constrained =
space.
Rust also has a strong enum system.

(Rust is also of interest in the high-volume space.)

Gr=C3=BC=C3=9Fe, Carsten


From nobody Thu Feb 24 06:13:40 2022
Return-Path: <michael.peyton-jones@iohk.io>
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 258883A07B7 for <cbor@ietfa.amsl.com>; Thu, 24 Feb 2022 06:13:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.088
X-Spam-Level: 
X-Spam-Status: No, score=-7.088 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_REMOTE_IMAGE=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=iohk.io
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9IuycFg5iDTS for <cbor@ietfa.amsl.com>; Thu, 24 Feb 2022 06:12:57 -0800 (PST)
Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5E6FE3A0332 for <cbor@ietf.org>; Thu, 24 Feb 2022 06:12:57 -0800 (PST)
Received: by mail-wr1-x42d.google.com with SMTP id r10so2258519wrp.3 for <cbor@ietf.org>; Thu, 24 Feb 2022 06:12:57 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iohk.io; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/pcHVbpEnRE18KlRHciT6I94hiOWtc2FtWTHizQjsxE=; b=yRnMlGJ52wnS617uPS02b3EmqolC1MPzRJjYhiM+xBvYMDJ8/uOy/3Qw9IzUtpa7yj 3Nouqn+i0td6oZCydU9+EFXXXMAXpJtfZsFC1jTnJU1h8szfjN7HQ9Ewp7r+/FEn3LTr rDLKOIJzyo3iTPfjKH3T48q0krbIEqPR9wDYL/Sb5leNWjdlGfJ8N/My90MSt7BFcHAx l3TaoWRs6mFBq6vx9lhyViqXnHCORhnfGH46ZEay9nRmBHqJFAyeOoX5P/7lS7zFPDQT C3qJVJis069a5lqLfPLTlj05ZMgnkqYtfhj6ltK/PIovnjTJm/8Ua52cL6M7XQ7MAk6H XAjg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/pcHVbpEnRE18KlRHciT6I94hiOWtc2FtWTHizQjsxE=; b=eZCs5pk22V6Czt91BNeDzlucGn8x7+18jY0Tz6Nvw2l5CxqgHuu7qEVU1nOgE4XHNA y9wLIxtSNpHbNECAeQKjQ5S5hBWrXDqkOoK1QMoeFu7Kb1NfB1/+GdLnwmo2Vm4b4q24 MoP1Y5nYg4tcDlDlmCztXIZHXzja7dR1nzQd67MD3CwdOJG+YG0ronHZx1GZdIUKLbVn lgieFwwiKbAiek8cAcY2L7N2XDNPtpRk613XRxU42mJAw4PhUqirdWf3jaM42amSyash M/v0wsOvcEI34/LJoq8XfkJlRMpFY11RHa33PZ1XURwoVIq/FafCOtlz8EEY90J8Fr2Y 0IEA==
X-Gm-Message-State: AOAM533glmBbd16pL9yVE+jv+dSbFI6ZNgHnlV6wyGbMc2qTAYPPootM HNUakXCqcZH19Eh6/0cdESquDPfWyBb84FIA3tKTHg==
X-Google-Smtp-Source: ABdhPJzoRUMvNcyptphiLDU+AzwtXtfR7Sj6TTJouKiW+iXfb7FKUkIN4h9Y4sBylfsoJMw1eAYVY76lzV5UQKdhgv0=
X-Received: by 2002:adf:e592:0:b0:1ed:9f91:e299 with SMTP id l18-20020adfe592000000b001ed9f91e299mr2307026wrm.638.1645711974703; Thu, 24 Feb 2022 06:12:54 -0800 (PST)
MIME-Version: 1.0
References: <CAKoRMYH3MTMi_tX5KHF-O-DTKzopiGqe3fi6XjkPaGCM4823OQ@mail.gmail.com> <7dfd62ccb6c089af90c90f26a8945f23232ecbc1.camel@well-typed.com> <CAKoRMYEOo1Gqfc4W4k3NOLKpFa97Q9YzLCm3r0PJ13V2HJPf3A@mail.gmail.com> <2BBF6463-FDB2-4A8A-B20D-7A1AD976A90D@tzi.org> <CAKoRMYFi8uo2GfHA9s1n+-rMO8Ja9=2qMMzjS9Z=F9r3LFozRQ@mail.gmail.com> <8EA89504-C176-4850-9BB8-C7E7206374FF@tzi.org> <CAKoRMYGmOa0hzEFsJh8kpz0bU5x56Yc9P=DBK-ghU83gXxPv7A@mail.gmail.com> <CAKoRMYGUvmxufQUVyvX2mciq5LCmV0Nz-uE2MJn54GDBB+9DRw@mail.gmail.com> <CAKoRMYF_19V6mu4S9GVqfiNzyQVvvOzX6eYwHp_DtZQoG0xTKg@mail.gmail.com> <4B47F4D7-ADE3-4A22-8A5B-97F4E5FCD933@tzi.org> <Yhd3/bwVUOLJLzWu@hephaistos.amsuess.com> <B6FC521C-1C28-4B11-90F2-DE62308B7168@tzi.org>
In-Reply-To: <B6FC521C-1C28-4B11-90F2-DE62308B7168@tzi.org>
From: Michael Peyton Jones <michael.peyton-jones@iohk.io>
Date: Thu, 24 Feb 2022 14:12:43 +0000
Message-ID: <CAKoRMYGVii8eQAPsGWJn-H8+kJ81QkOGWpybDK44b5wsJbjxtw@mail.gmail.com>
To: Carsten Bormann <cabo@tzi.org>
Cc: =?UTF-8?Q?Christian_Ams=C3=BCss?= <christian@amsuess.com>,  Duncan Coutts <duncan@well-typed.com>, cbor@ietf.org,  Jared Corduan <jared.corduan@iohk.io>, Alexander Byaly <alexander.byaly@iohk.io>
Content-Type: multipart/alternative; boundary="000000000000a7bfcb05d8c42db4"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/iwDe2riuvolv53hYuevUhxcy7UA>
Subject: Re: [Cbor] A CBOR tag for alternatives/unions, request for comments
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 24 Feb 2022 14:13:11 -0000

--000000000000a7bfcb05d8c42db4
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

> Does it, for the applications expecting to use this, make a noticable
difference whether a 1+1 or a 1+2 tag is used?

This is a great question.

> The difference is likely most pronounced on alternatives without actual
payload

More generally, the tag overhead is important in cases where the space used
for tags is significant relative to the space used for the payloads. The
case where there is no payload is one example.

Another example that's interesting is where there is a lot of *structure*
to the data. If you'll permit me a toy example, suppose we have a balanced
binary tree of numbers. In Haskell, the data type definition would look
like this:

data Tree =3D Leaf Int | Node Tree Tree

If we encode such a structure using the proposed alternative tags ('0' for
'Leaf' and '1' for 'Node') then we will have 2n-1 nodes for n entries in
the tree, and hence that many tags. If the entries themselves are not
enormous, then the proportion of the total space usage devoted to the tags
can become significant! We have encountered this problem in real life.

Putting it another way: some tags are useful, but occur infrequently. There
is little point in optimizing their space usage. However, we expect that
the users who *do* use these tags will use them a *lot*, and so optimizing
them provides a decent benefit.

Best wishes,
Michael

On Thu, 24 Feb 2022 at 13:48, Carsten Bormann <cabo@tzi.org> wrote:

> > [=E2=80=A6] this is not a case coming
> > from the constrained or high-volume applications that CBOR was designed
> > for, [=E2=80=A6]
>
> I=E2=80=99m not so sure about the constrained space:
> Rust has a strong ascent as the language of choice in the constrained
> space.
> Rust also has a strong enum system.
>
> (Rust is also of interest in the high-volume space.)
>
> Gr=C3=BC=C3=9Fe, Carsten
>
>

--=20

*Michael Peyton Jones*
Software Engineering Lead | London, UK

Website: www.iohk.io <http://iohk.io>
Skype: michael.s.pj
Twitter: @mpeytonjones
PGP Key ID: 29F64616

[image: Input Output] <http://iohk.io>

[image: Twitter] <https://twitter.com/InputOutputHK> [image: Github]
<https://github.com/input-output-hk> [image: LinkedIn]
<https://www.linkedin.com/company/input-output-global>


This e-mail and any file transmitted with it are confidential and intended
solely for the use of the recipient(s) to whom it is addressed.
Dissemination, distribution, and/or copying of the transmission by anyone
other than the intended recipient(s) is prohibited. If you have received
this transmission in error please notify IOHK immediately and delete it
from your system. E-mail transmissions cannot be guaranteed to be secure or
error free. We do not accept liability for any loss, damage, or error
arising from this transmission

--000000000000a7bfcb05d8c42db4
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>&gt; Does it, for the applications expecting to use t=
his, make a noticable<br>
difference whether a 1+1 or a 1+2 tag is used?</div><div><br></div><div>Thi=
s is a great question.<br></div><div><br></div><div>&gt; The difference is =
likely most pronounced on alternatives without actual</div><div>
payload</div><br><div>More generally, the tag overhead is important in case=
s where the space used for tags is significant relative to the space used f=
or the payloads. The case where there is no payload is one example.</div><d=
iv><br></div><div>Another example that&#39;s interesting is where there is =
a lot of *structure* to the data. If you&#39;ll permit me a toy example, su=
ppose we have a balanced binary tree of numbers. In Haskell, the data type =
definition would look like this:<br></div><div><br></div><div>data Tree =3D=
 Leaf Int | Node Tree Tree</div><div><br></div><div>If we encode such a str=
ucture using the proposed alternative tags (&#39;0&#39; for &#39;Leaf&#39; =
and &#39;1&#39; for &#39;Node&#39;) then we will have 2n-1 nodes for n entr=
ies in the tree, and hence that many tags. If the entries themselves are no=
t enormous, then the proportion of the total space usage devoted to the tag=
s can become significant! We have encountered this problem in real life.</d=
iv><div><br></div><div>Putting it another way: some tags are useful, but oc=
cur infrequently. There is little point in optimizing their space usage. Ho=
wever, we expect that the users who *do* use these tags will use them a *lo=
t*, and so optimizing them provides a decent benefit.</div><div><br></div><=
div>Best wishes,</div><div>Michael<br></div></div><br><div class=3D"gmail_q=
uote"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, 24 Feb 2022 at 13:48, C=
arsten Bormann &lt;<a href=3D"mailto:cabo@tzi.org">cabo@tzi.org</a>&gt; wro=
te:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px =
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">&gt; [=E2=80=
=A6] this is not a case coming<br>
&gt; from the constrained or high-volume applications that CBOR was designe=
d<br>
&gt; for, [=E2=80=A6]<br>
<br>
I=E2=80=99m not so sure about the constrained space:<br>
Rust has a strong ascent as the language of choice in the constrained space=
.<br>
Rust also has a strong enum system.<br>
<br>
(Rust is also of interest in the high-volume space.)<br>
<br>
Gr=C3=BC=C3=9Fe, Carsten<br>
<br>
</blockquote></div><br clear=3D"all"><br>-- <br><div dir=3D"ltr" class=3D"g=
mail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr=
"><br><b style=3D"color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:11=
6%">Michael Peyton Jones</b><br>
<span style=3D"color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:100%"=
><span style=3D"color:rgb(255,0,0)">Software Engineering Lead |</span> Lond=
on, UK</span><br><br>

<span style=3D"color:rgb(153,153,153);font-family:Helvetica,Arial;font-size=
:85%">Website: <a href=3D"http://iohk.io" style=3D"color:rgb(255,0,0)" targ=
et=3D"_blank">www.iohk.io</a></span><br>
<span style=3D"color:rgb(153,153,153);font-family:Helvetica,Arial;font-size=
:85%">Skype: michael.s.pj</span><br>
<span style=3D"color:rgb(153,153,153);font-family:Helvetica,Arial;font-size=
:85%">Twitter: @mpeytonjones</span><br>
<span style=3D"color:rgb(153,153,153);font-family:Helvetica,Arial;font-size=
:85%">PGP Key ID: 29F64616</span><br>
<br>

<a href=3D"http://iohk.io" target=3D"_blank"><img src=3D"https://static.ioh=
k.io/logo/logo-email.png" alt=3D"Input Output" width=3D"200" height=3D"46">=
</a>
<br>
<br>
<a href=3D"https://twitter.com/InputOutputHK" target=3D"_blank"><img src=3D=
"https://static.iohk.io/images/ic-tw.png" alt=3D"Twitter" width=3D"18" heig=
ht=3D"16"></a>
<a href=3D"https://github.com/input-output-hk" target=3D"_blank"><img src=
=3D"https://static.iohk.io/images/ic-gh.png" alt=3D"Github" width=3D"21" he=
ight=3D"16"></a>
<a href=3D"https://www.linkedin.com/company/input-output-global" target=3D"=
_blank"><img src=3D"https://static.iohk.io/images/ic-li.png" alt=3D"LinkedI=
n" width=3D"19" height=3D"16"></a>

<br>
<br>
<br>

<span style=3D"color:rgb(68,68,68);font-family:Helvetica,Arial;font-size:77=
%"><small>This
 e-mail and any file transmitted with it are confidential and intended=20
solely for the use of the recipient(s) to whom it is addressed.=20
Dissemination, distribution, and/or copying of the transmission by=20
anyone other than the intended recipient(s) is prohibited. If you have=20
received this transmission in error please notify IOHK immediately and=20
delete it from your system. E-mail transmissions cannot be guaranteed to
 be secure or error free. We do not accept liability for any loss,=20
damage, or error arising from this transmission</small></span>
</div></div></div></div></div></div>

--000000000000a7bfcb05d8c42db4--


From nobody Thu Feb 24 06:23:43 2022
Return-Path: <mcr+ietf@sandelman.ca>
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 A7FAE3A02F9 for <cbor@ietfa.amsl.com>; Thu, 24 Feb 2022 06:23:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.099
X-Spam-Level: 
X-Spam-Status: No, score=-7.099 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=sandelman.ca
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3T-PMsFjYmSl for <cbor@ietfa.amsl.com>; Thu, 24 Feb 2022 06:23:35 -0800 (PST)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [IPv6:2607:f0b0:f:3:216:3eff:fe7c:d1f3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2605C3A011B for <cbor@ietf.org>; Thu, 24 Feb 2022 06:23:33 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by tuna.sandelman.ca (Postfix) with ESMTP id D614E392BD; Thu, 24 Feb 2022 09:32:08 -0500 (EST)
Received: from tuna.sandelman.ca ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 8PWEo6nIbtnr; Thu, 24 Feb 2022 09:32:06 -0500 (EST)
Received: from sandelman.ca (obiwan.sandelman.ca [IPv6:2607:f0b0:f:2::247]) by tuna.sandelman.ca (Postfix) with ESMTP id 9D6F7392AC; Thu, 24 Feb 2022 09:32:06 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sandelman.ca; s=mail; t=1645713126; bh=KlSnBPavetozkMPLIMfH5uE8q3BnGx9z87Y1Ls7BT0o=; h=From:To:cc:Subject:In-Reply-To:References:Date:From; b=mUHT/8xN4s7QYeo80PHIwkK1+oBHSnqlOeNjiOTuEmfE/duSkDmocckmZpSFXfNzw +jjuRHyVKPAAfofY5R3mexZBVpscI/Y4n1XyaWHnPWnsdBMqW+nTlu9Ed3FneJ58ml 8R0rkjtPbKANCzQsECVjHN9ZRTdYmOzSv/iK7TVVtGDwK09JicjQt5nWZva0dzzD66 ib4Nc3G3BKkscfSuC/qaroMtTvfFigIvtId4oEFEK9XPkbNGygKdTwrw4vZpVxyV63 ZfxHVcSpJolz+AtzGOQ5u0kPyYMZFCPconfr56Wt5adWv0ewvRJ87XhXGEh8UMkTbd Cs4A9hTbwFylA==
Received: from localhost (localhost [IPv6:::1]) by sandelman.ca (Postfix) with ESMTP id DCC8B65; Thu, 24 Feb 2022 09:23:28 -0500 (EST)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: Michael Peyton Jones <michael.peyton-jones@iohk.io>
cc: Carsten Bormann <cabo@tzi.org>, Duncan Coutts <duncan@well-typed.com>, cbor@ietf.org, Jared Corduan <jared.corduan@iohk.io>, Alexander Byaly <alexander.byaly@iohk.io>
In-Reply-To: <CAKoRMYHyRz7he5qRjCLSQ0v0zDq6y16oJ_dHzjHJSjV1O013Gg@mail.gmail.com>
References: <9300a81abc33a45a9f3c7c1c62da88908280e54a.camel@well-typed.com> <1D3EF118-0223-43BC-81B2-369D4515DB21@tzi.org> <1ce2c092d3214d5fdce59435fc10b084c1ba48ca.camel@well-typed.com> <DFCBE61C-35B2-42A2-8D1A-A633CF939154@tzi.org> <2e10456c5791a422bf7218e7b84051f2b7121b66.camel@well-typed.com> <CAKoRMYGcwrhVWd-J3dX75WZfc+T_oyb6NCUNaeCXMW5_-VYdTw@mail.gmail.com> <52EDB93C-827A-465F-B644-51B3EF590D06@tzi.org> <C9D895BB-40E6-431F-958F-AC031DE4FB58@tzi.org> <CAKoRMYG9X0JF4ehkMc30_UNi0JtT2YMeG4RgxznS6O3Di6pkRA@mail.gmail.com> <CAKoRMYHwewaYxkX=CsfETBbdV7c9U97jfbd9xg=PyrMX5vJhnA@mail.gmail.com> <3B3B7EF0-152B-4015-8485-B204F7AEFFBC@tzi.org> <CAKoRMYFbEG=TkuZPPOiXv2DjEh23Ujd_Q44kQqiWPGc_0GMTuQ@mail.gmail.com> <CAKoRMYHnF6fGJp1dTrJnRHFTBOhreLRwzR_=cCckW1nBXOEz0A@mail.gmail.com> <E8A9E016-2248-4BB9-9864-C6C7D52A4AE5@tzi.org> <CAKoRMYE+gmWyCL9zYDa-O-c3KV_iuzgYuS+Q4fi=U7VHDNDtkQ@mail.gmail.com> <CAKoRMYFdAr1YY3mtmY0NU5X9Bk8_4WYh7bC0CtXpZc3toLSu8g@mail.gmail.com> <CAKoRMYH3MTMi_tX5KHF-O-DTKzo piGqe3fi6XjkPaGCM4823OQ@mail.gmail.com> <7dfd62ccb6c089af90c90f26a8945f23232ecbc1.camel@well-typed.com> <CAKoRMYEOo1Gqfc4W4k3NOLKpFa97Q9YzLCm3r0PJ13V2HJPf3A@mail.gmail.com> <2BBF6463-FDB2-4A8A-B20D-7A1AD976A90D@tzi.org> <CAKoRMYFi8uo2GfHA9s1n+-rMO8Ja9=2qMMzjS9Z=F9r3LFozRQ@mail.gmail.com> <8EA89504-C176-4850-9BB8-C7E7206374FF@tzi.org> <CAKoRMYGmOa0hzEFsJh8kpz0bU5x56Yc9P=DBK-ghU83gXxPv7A@mail.gmail.com> <CAKoRMYGUvmxufQUVyvX2mciq5LCmV0Nz-uE2MJn54GDBB+9DRw@mail.gmail.com> <CAKoRMYF_19V6mu4S9GVqfiNzyQVvvOzX6eYwHp_DtZQoG0xTKg@mail.gmail.com> <4B47F4D7-ADE3-4A22-8A5B-97F4E5FCD933@tzi.org> <26378.1645659038@localhost> <94A53D04-2C5A-4965-A65C-4B1C2815647A@tzi.org> <CAKoRMYHyRz7he5qRjCLSQ0v0zDq6y16oJ_dHzjHJSjV1O013Gg@mail.gmail.com>
X-Mailer: MH-E 8.6+git; nmh 1.7+dev; GNU Emacs 26.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature"
Date: Thu, 24 Feb 2022 09:23:28 -0500
Message-ID: <9905.1645712608@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/T108BW26FyeNPdjfjWcDAWf3Eyk>
Subject: Re: [Cbor] A CBOR tag for alternatives/unions, request for comments
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 24 Feb 2022 14:23:41 -0000

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


Michael Peyton Jones <michael.peyton-jones@iohk.io> wrote:
    > of them for this purpose. Again, the argument for the number of tags =
is
    > from experience: data types with more than 100 alternatives are
    > *vanishingly* rare, and likely machine-generated if they exist at all.

Like, a code path for each CBOR tag value :-)

=2D-
Michael Richardson <mcr+IETF@sandelman.ca>   . o O ( IPv6 I=C3=B8T consulti=
ng )
           Sandelman Software Works Inc, Ottawa and Worldwide





--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iPMEAQEKAB0WIQSk7ZHEG9TCGBNASfm/sjw/rPYc8wUCYheU4AAKCRC/sjw/rPYc
8w8ABf49tdRbFLuj29qEVN340ypQrWSThaS7HuTXxZFDn4hmWY9opCpVgJ9X69ps
UPGKf6n6Ouqp7Pe8jJu64C642Bx9JA+92uHomCqJhS5XZMHucRittNT8efmaa5hr
dK8y6j/n78gpP0JOgGVyQ9EqQIxWc3tUFuYfk7ogx7/fx65/OftIIwpWti2ESe5t
r440D1LTVOSEII2z0EAljpAUbPqmQPhL0maIRQE2g2N04hmkqgDfGeCnW9xiZPTf
+nRHz8Y=
=Q7V4
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Thu Feb 24 06:27:50 2022
Return-Path: <mcr+ietf@sandelman.ca>
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 C4EED3A033F for <cbor@ietfa.amsl.com>; Thu, 24 Feb 2022 06:27:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.099
X-Spam-Level: 
X-Spam-Status: No, score=-7.099 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=sandelman.ca
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xWJheIUgdXWF for <cbor@ietfa.amsl.com>; Thu, 24 Feb 2022 06:27:42 -0800 (PST)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [IPv6:2607:f0b0:f:3:216:3eff:fe7c:d1f3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C3FE93A067A for <cbor@ietf.org>; Thu, 24 Feb 2022 06:27:16 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by tuna.sandelman.ca (Postfix) with ESMTP id EA44F392C0; Thu, 24 Feb 2022 09:35:51 -0500 (EST)
Received: from tuna.sandelman.ca ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id InHDi5Lty2DE; Thu, 24 Feb 2022 09:35:50 -0500 (EST)
Received: from sandelman.ca (obiwan.sandelman.ca [IPv6:2607:f0b0:f:2::247]) by tuna.sandelman.ca (Postfix) with ESMTP id 52E85392BF; Thu, 24 Feb 2022 09:35:50 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sandelman.ca; s=mail; t=1645713350; bh=BpYctRfzSVfeIrNMCuhXhtjH7+utpnqxRsOKrSzsi2U=; h=From:To:cc:Subject:In-Reply-To:References:Date:From; b=KTs9SMIXPU3AOZ6JZLZpzrc3qJINmGZdpVDhRxrIwmxiiSco0XpKxRYBLwI4L7gHB tp/U37OFF1Y4dZcGJfhHBP7CFQzelO1L8mQp8MdTeMSGSBPofKm/TzHjP3DWUzHhdk TdYstmnCe4T73BzYP0UTaeoamWMH55cCYsHdqHsVvrME40IS3FwojF/S7TMbEu0I9f ONwh6owqMTe18+Iikme5KfelC1KbooK2bkHR6SRX8nH26+K5a95tzajrD08jyKxksb A90YLUOY3i1seDX41kxZ9eestEZlYmsmws+y6Xv7RZpNjyBNweGYKXUoAN8HhIb8TQ EzXHyPfRMgkdw==
Received: from localhost (localhost [IPv6:::1]) by sandelman.ca (Postfix) with ESMTP id 9561765; Thu, 24 Feb 2022 09:27:12 -0500 (EST)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: Christian =?us-ascii?Q?=3D=3Fiso-8859-1=3FQ=3FAms=3DFCss=3F=3D?= <christian@amsuess.com>, cbor@ietf.org
cc: Carsten Bormann <cabo@tzi.org>, Duncan Coutts <duncan@well-typed.com>, Michael Peyton Jones <michael.peyton-jones@iohk.io>, Jared Corduan <jared.corduan@iohk.io>, Alexander Byaly <alexander.byaly@iohk.io>
In-Reply-To: <Yhd3/bwVUOLJLzWu@hephaistos.amsuess.com>
References: <CAKoRMYH3MTMi_tX5KHF-O-DTKzopiGqe3fi6XjkPaGCM4823OQ@mail.gmail.com> <7dfd62ccb6c089af90c90f26a8945f23232ecbc1.camel@well-typed.com> <CAKoRMYEOo1Gqfc4W4k3NOLKpFa97Q9YzLCm3r0PJ13V2HJPf3A@mail.gmail.com> <2BBF6463-FDB2-4A8A-B20D-7A1AD976A90D@tzi.org> <CAKoRMYFi8uo2GfHA9s1n+-rMO8Ja9=2qMMzjS9Z=F9r3LFozRQ@mail.gmail.com> <8EA89504-C176-4850-9BB8-C7E7206374FF@tzi.org> <CAKoRMYGmOa0hzEFsJh8kpz0bU5x56Yc9P=DBK-ghU83gXxPv7A@mail.gmail.com> <CAKoRMYGUvmxufQUVyvX2mciq5LCmV0Nz-uE2MJn54GDBB+9DRw@mail.gmail.com> <CAKoRMYF_19V6mu4S9GVqfiNzyQVvvOzX6eYwHp_DtZQoG0xTKg@mail.gmail.com> <4B47F4D7-ADE3-4A22-8A5B-97F4E5FCD933@tzi.org> <Yhd3/bwVUOLJLzWu@hephaistos.amsuess.com>
X-Mailer: MH-E 8.6+git; nmh 1.7+dev; GNU Emacs 26.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature"
Date: Thu, 24 Feb 2022 09:27:12 -0500
Message-ID: <10956.1645712832@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/ikqFbL_4k2eYVCndWleN_1fQNjY>
Subject: Re: [Cbor] A CBOR tag for alternatives/unions, request for comments
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 24 Feb 2022 14:27:49 -0000

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


Christian Ams=C3=BCss <christian@amsuess.com> wrote:
    > Does it, for the applications expecting to use this, make a noticable
    > difference whether a 1+1 or a 1+2 tag is used?

...

    > If not, I'd suggest that, say, 128 tags could be requested from 1+2,
    > leaving the 1+1+1+(2..) version for the unbounded range.

I would also ask this question.

Carsten Bormann <cabo@tzi.org> wrote:
    >> [=E2=80=A6] this is not a case coming from the constrained or high-v=
olume
    >> applications that CBOR was designed for, [=E2=80=A6]

    > I=E2=80=99m not so sure about the constrained space: Rust has a stron=
g ascent
    > as the language of choice in the constrained space.  Rust also has a
    > strong enum system.

    > (Rust is also of interest in the high-volume space.)

As a Rustacian, I'm not sure it matters 1+1 vs 1+2.
It's not about Rust, it's about how/where this serialization is going to be
stored/transfered.
I don't object to 7/8 1+1 though, it's just not clear to me that it is a hu=
ge win.

=2D-
Michael Richardson <mcr+IETF@sandelman.ca>   . o O ( IPv6 I=C3=B8T consulti=
ng )
           Sandelman Software Works Inc, Ottawa and Worldwide





--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iPMEAQEKAB0WIQSk7ZHEG9TCGBNASfm/sjw/rPYc8wUCYheVwAAKCRC/sjw/rPYc
85IpBf4yThM1cY0vYuzFhImBNqK2L8mrE2co+PJuQKvsWeohSheNYl5z54yl4+2s
D6VX0IbNRqfX+OWhNl4sswXX+pPsNGPdsQsVbEb7zaa9S8Hj9w7RHshdmq1bfER8
Ao9iGScETPMv7pIbh/I8tUu6dmnqSXZRzS45k0JcucL+1t+hpdzJZ9qknZagXwUD
vf3YCS5Aeoz60epEtLFC8gg9/A+s74E8H13jrSPVql2wL3y2LNHqRA5ZgikiHrdY
VK3SgSM=
=UyVU
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Thu Feb 24 09:32:27 2022
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 218743A08B4 for <cbor@ietfa.amsl.com>; Thu, 24 Feb 2022 09:32:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id THW72298FCz3 for <cbor@ietfa.amsl.com>; Thu, 24 Feb 2022 09:32:18 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [134.102.50.15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E40B63A073D for <cbor@ietf.org>; Thu, 24 Feb 2022 09:32:17 -0800 (PST)
Received: from [192.168.217.118] (p5089ad4f.dip0.t-ipconnect.de [80.137.173.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4K4KjB0GZmzDCcJ; Thu, 24 Feb 2022 18:32:14 +0100 (CET)
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>
Date: Thu, 24 Feb 2022 18:32:13 +0100
X-Mao-Original-Outgoing-Id: 667416733.631905-ad06bcd69acadfca3551505e9c8b5a81
Content-Transfer-Encoding: quoted-printable
Message-Id: <F5E1157E-4FFB-470D-A3E6-F975DC6DA599@tzi.org>
References: <164572377862.14104.224632674636119723@ietfa.amsl.com>
To: cbor@ietf.org
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/3AZE8LmVotFrwGQeIb2vGnUoizw>
Subject: [Cbor] Fwd: New Version Notification for draft-bormann-cbor-cddl-csv-00.txt
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 24 Feb 2022 17:32:24 -0000

Rob Wilton (unknowingly) made me do it.
With big apologies from my side=E2=80=A6

(But this brief spec is actually filling a real gap, so I would like to =
seriously pursue this.)

Gr=C3=BC=C3=9Fe, Carsten


> Begin forwarded message:
>=20
> From: internet-drafts@ietf.org
> Subject: New Version Notification for =
draft-bormann-cbor-cddl-csv-00.txt
> Date: 2022-02-24 at 18:29:38 CET
> To: "Carsten Bormann" <cabo@tzi.org>
> Message-Id: <164572377862.14104.224632674636119723@ietfa.amsl.com>
>=20
>=20
> A new version of I-D, draft-bormann-cbor-cddl-csv-00.txt
> has been successfully submitted by Carsten Bormann and posted to the
> IETF repository.
>=20
> Name:		draft-bormann-cbor-cddl-csv
> Revision:	00
> Title:		Using CDDL for CSVs
> Document date:	2022-02-24
> Group:		Individual Submission
> Pages:		6
> URL:            =
https://www.ietf.org/archive/id/draft-bormann-cbor-cddl-csv-00.txt
> Status:         =
https://datatracker.ietf.org/doc/draft-bormann-cbor-cddl-csv/
> Html:           =
https://www.ietf.org/archive/id/draft-bormann-cbor-cddl-csv-00.html
> Htmlized:       =
https://datatracker.ietf.org/doc/html/draft-bormann-cbor-cddl-csv
>=20
>=20
> Abstract:
>   The Concise Data Definition Language (CDDL), standardized in RFC
>   8610, is defined to provide data models for data shaped like JSON or
>   CBOR.
>=20
>   Another representation format that is quote popular is the CSV file
>   as defined by RFC 4180.
>=20
>   The present document shows how to use CDDL to provide a data model
>   for CSV files.
>=20
>=20
>=20
>=20
> The IETF Secretariat
>=20
>=20


From nobody Thu Feb 24 09:49:20 2022
Return-Path: <henk.birkholz@sit.fraunhofer.de>
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 B47CA3A0D28 for <cbor@ietfa.amsl.com>; Thu, 24 Feb 2022 09:49:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.613
X-Spam-Level: 
X-Spam-Status: No, score=-2.613 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, NICE_REPLY_A=-0.714, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=fraunhofer.onmicrosoft.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Bcw3K4vlVsJV for <cbor@ietfa.amsl.com>; Thu, 24 Feb 2022 09:49:10 -0800 (PST)
Received: from mail-edgeKA24.fraunhofer.de (mail-edgeka24.fraunhofer.de [153.96.1.24]) (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 1B7A53A0D1F for <cbor@ietf.org>; Thu, 24 Feb 2022 09:49:07 -0800 (PST)
IronPort-SDR: 5PPocAFNzAkj3Ca4TywoyYCQEi5jFk0EQ8Nr7UxMxOrPXtCllkau4BVay5uZvgyOfJs+4hbEf7 NT6nf48rBXoC5cN6fTC7fJJJb30TmoJ621s9H8ioeOi9W3svBIEe5b5Pd2CgnRzxeyoQOYl2j3 Zkx6fmjbbnIHTaN5HciP66mJVGP3mX81vRctg1FDSeqLAK1FltTodaXm6xUkpmyrshRiMRBjz9 Yo5Kc0o1Dv3C8UtOFNqGLbHqZ+XYK5KJ7i4vI8aqUXgPNrbcxZO0WFM8qBxB6DoxbMGRveP5rC AM0=
X-IPAS-Result: =?us-ascii?q?A2EmAQCyxBdi/xmnZsBaHAEBAQEBAQcBARIBAQQEAQFAg?= =?us-ascii?q?UkEAQELAYInfoFVhFWOFYJULgObLIJTAxgWGwsLAQEBAQEBAQEBCAEqCwwEA?= =?us-ascii?q?QEDBIUAAoQPJjcGDgECBAEBAQEDAgMBAQEBBQEBBgEBAQEBAQUEAgKBGIUvO?= =?us-ascii?q?Q2CcGNNBjUBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEFA?= =?us-ascii?q?g00HikMMQEBAQECAQEBIQ8BBQgBASwJAwQLCQIOAwMBAgECAiYCAicLHQgGA?= =?us-ascii?q?QwGAgEBgwABgmUDDTCSKZsSeoExgQGCCAEBBgQEgUtBgn8YXIFbAwYJAYEGL?= =?us-ascii?q?AGDDYs1N4FVRIEVJw+CdD6CYwEBAQEBhHWCZZQxgTAEJwEQCw4CFEd/BpMJJ?= =?us-ascii?q?o1Yn2g0B4IRgTqBOQYLh2WBV5RLBhQug3KMJ4YnNZEhkSOFLCCMcpRAhHgCB?= =?us-ascii?q?AIEBQIOCIF3ggBNJC4hgmkTPhkPjiCDcoUUhUt0AgE1AgYBCgEBAwmTCwEB?=
IronPort-PHdr: A9a23:u71pLhNwUQmKUkMPUMsl6ncLWUAX0o4cdiYZ6Zsi3rRJdKnrv5HvJ 1fW6vgliljVFZ7a5PRJh6uz0ejgVGUM7IzHvCUEd5pBBBMAgN8dygonBsPNAEbnLfnsOio9G skKVFJs83yhd0ZPH8OrfFzO5HOo5CMUGhLxOBAzKummcrM=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-AV: E=Sophos;i="5.90,134,1643670000"; d="scan'208";a="39867581"
Received: from mail-mtadd25.fraunhofer.de ([192.102.167.25]) by mail-edgeKA24.fraunhofer.de with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Feb 2022 18:48:43 +0100
IronPort-SDR: DIPsSpkAb77s0IIEDWhhDkPeeS2Q7QO6oqU9HEMS1UlVwJS3/Itn/CEsRDMkkT6GX1J+YeyqVv DpYS3aYn38MigrNuYZirkEDQriHVTZweU=
X-IPAS-Result: =?us-ascii?q?A0DAAACyxBdiiX+zYZlaHAEBAQEBAQcBARIBAQQEAQFAC?= =?us-ascii?q?YFABAEBCwGBUVZ+WSZWhFSDSwEBhTmFD16Bdi4DOAGac4JTA1QLAQMBAQEBA?= =?us-ascii?q?QgBKgsMBAEBhQcChAwCJjcGDgECBAEBAQEDAgMBAQEBBQEBBQEBAQIBAQUEF?= =?us-ascii?q?AEBAQENFAcSAxAQOwZeBmiBT4FhEws0DYZCAQEBAQIBAQEQEQ8BBQgBARQYC?= =?us-ascii?q?QMECwkCDgMDAQIBAgImAgInCwcWCAYBDAYCAQEegmIBgmUDDSABAQ6SKY82A?= =?us-ascii?q?YE6AoofeoExgQGCCAEBBgQEgUtBgn8YXIFbAwYJAYEGLAGDDYs1N4FVRIEVJ?= =?us-ascii?q?w+CdD6CYwEBAQEBhHWCZZQxgTAEJwEQCw4CFEd/BpMJJo1Yn2g0B4IRgTqBO?= =?us-ascii?q?QYLh2WBV5RLBhQug3KMJ4YnNZEhkSOFLCCMcpRAhHgCBAIEBQIOAQEGgXeBf?= =?us-ascii?q?00kLiGCaRM7AQIBAg0BAgIDAQIBAgkBAQKOHRmDWYUUhUtCMgIBNQIGAQoBA?= =?us-ascii?q?QMJkwsBAQ?=
IronPort-PHdr: A9a23:arEKpRbXIHf89D+nov2m6Uz/LTAhhN3EVzX9orIriLNLJ6Kk+Zmqf EnS/u5kg1KBW4LHo+lFhOzbv+GFOyQA7J+NvWpEfMlKUBkI2skTlhYrVciCD0CzJfX2bis8S cJFUlIt/3yyPUVPXsjkYFiHuXyuqzAIEwj5NQ17K/6zFoOB5/k=
IronPort-Data: A9a23:b1INdKoKL5x2OwjuBAN6Jrp+zr1eBmJHYxIvgKrLsJaIsI4StFCzt garIBmDO6qPZ2SnKI9wPI2/8khQ7cDRnNNlG1dsrSA2QikR8+PIVI+TRqvS04x+DSFjoGZPt Zh2hgzodZhsJpPkjk72dOWn8RGQ7InQLlbGILes1htZGEk1EE/NtTo5w7Rj2tQy3YDia++wk YqaT/P3aAfNNwFcbzp8B5Kr8HuDa9yr5Vv0FnRnDRx6lAe2e0s9VfrzFontR5fMebS4K8bhL wr1IBFVyUuCl/slIovNfr8W6STmSJaKVeSFoiI+t6RPHnGuqwRqupvXOsbwZm9QtB7Uj9p3x +8SuJGfF1osY4LgmsECBkww/yFWZcWq+ZfcJGSn98GDxE2AfWHl3vNuC087J8sU946bA0kXq KdeeW9LN0/Swbvsn9pXScE07ignBMnmOoBZsHB6zjHeCeQOWpHfBavQ7MJe3DA+i9oIEfu2i 88xMGExM0SeOUITUrsRIJsUp+aluiD9Tzd7q0KH5vsrzGL46wMkhdABN/KPI4fTHpUE9qqCn UrN9m7+Kg0INZqY0zXt2nmmgfXnnC7nVsQVDrLQyxJxqATOnSlCV1hPCgr++KPmzFC7HdkZJ VYd5ywuqqY/7gqnQ7ERQiFUvlaDgTVBS9BWHNdl5QyilPfRvim1BE0bG2sphMMdiOc6Qjkj1 1msltzvBCByvLD9dZ573uvJxd9VEXVMRVLudRPoXiNYuoOy8dpbYgbnH4oySfbdYsjdQ2moq w1muhTSkJ0/oKY2O0iTpA2cxmPz48GWH0tsvFqRQGfj5UV3foe4YYyv51XBq/pNRGp4crVjl CVU8yR9xLpVZX1oqMBraL5WdF1Oz6rdWAAweXY1Q/EcG82FohZPh7x47jBkP1tOOc0ZYzLva 0K7kVoPuMINYCLyNfcpO9rZ5yEWIU7IS4qNuhf8MYAmX3SNXFXYpUmCmGbPjjuyyBJw+U3BE cvBKJ32ZZrlNUiX5GDvHL5Gge5DKtEWyW7OWYvwzxm8mbSZfmWeSaoDP0CIY/wrhJ5oUy2Km +uzw/CimkU3eLSnOkH/qNdPRXhXfSlTLc2n9KR/KLXZSiI4Qz5JNhMk6eh+E2CTt/8Ix7+gE 7DUchMw9WcTclWdd13RMyg7MOmHsFQWhStTABHA9G2AgxALCbtDJo9OH3fuVbV4puFl09BuS PwJJ5eJDvhVE2uV4DUBK5fnpZFkdBOliBjIMyf8OGozeJtpRgro/N74f1KzpXdUUXft7ZMz8 ++6ywfWYZsfXAA8XszYX/KYyQ/jt3Yqnu8vDVDDJcNeeRm3/YUzc37xg/Y7LtsiMxLGwjfGh Q+aDQ1B+rvWopNz/sPAmKaEqImkCa1yExMCTWXc6L+3Mwjc/3aimNMRDrzXIGqFDG6tofesf +RYyf34IcYrplcSvtouCatvwII/+8Dr+e1QwDNkK3OXPV6lPbVtfyud1s5Vu6wRnbJUtFfkW k+L/dUGa7yFNNm/SwwKIRY9KOmT3vFSlCPb8PI1J0v3/ml78ePfA0lVOhCNjg1bLad0ad90n 71+5ZROswHv2AA3NtumjzxP8zjeJHI3Vah65IoRB5Xmi1Z2x1weM4bQDDT6vMOGZ9lWaRJ4e 2LPwfudwu0Dlw+bKSV1C32L1qxTn50TvhBNwlIYYViEw4KXivgy1RxX0DI2UgUMkkQZib0uY DAzOh0nP7iK8hdpmNNHAzKmFTZHCUDL4Uf20VYIyDDUQkTAurYh94Hh1TthJHwkzl8=
IronPort-HdrOrdr: A9a23:i9dct6rX6isefYcsHq0O0x8aV5vKL9V00zEX/kB9WHVpm5Oj+P xGzc526farslsssREb+OxoS5PwJ080kqQFnbX5XI3SITUO3VHHEGgM1/qG/9SNIVyEygcZ79 YbT0EcMqyAMbEZt7eZ3ODQKb9Jq7PmgcOVbKXlvg9QpGlRGt9dBmxCe2Gm+yNNNXB77NYCZf 6hDp0tnUveRZ1bVLXyOlA1G8z44/HbnpPvZhALQzYh9Qm1lDutrJr3CQKR0BsyWy5Ghe5Kyx mOryXJooGY992rwB7V0GHeq7xQhdva09NGQOiBkNIcJDnAghuhIK5hR7qBljYop/zH0idgrP D85zMbe+hj4XLYeW+45TPrxgnbyT4rr0TvzFeJ6EGT1vDRdXYfMY5slIhZehzW5w4Lp9dnyp 9G2Gqfqt5+EQ7AtD6V3amGazha0m6P5VYym+8aiHJSFaEEbqVKkIAZ9ERJVL8dASPB7pw9Gu UGNrCR2B9vSyLaU5nlhBgu/DT1NU5DXStuA3Jy9/B96gIm0kyQlCAjtY4idnRpzuNId3AL3Z WADk1SrsA8ciYnV9MMOA4/e7rENoXse2O7DIvAGyWvKEk4U0i93qIfpo9FoN2XRA==
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-AV: E=Sophos;i="5.90,134,1643670000"; d="scan'208";a="136786274"
Received: from 153-97-179-127.vm.c.fraunhofer.de (HELO smtp.exch.fraunhofer.de) ([153.97.179.127]) by mail-mtaDD25.fraunhofer.de with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Feb 2022 18:48:36 +0100
Received: from XCH-HYBRID-04.ads.fraunhofer.de (10.225.9.46) by XCH-HYBRID-04.ads.fraunhofer.de (10.225.9.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15; Thu, 24 Feb 2022 18:48:35 +0100
Received: from EUR01-DB5-obe.outbound.protection.outlook.com (104.47.2.51) by XCH-HYBRID-04.ads.fraunhofer.de (10.225.9.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15 via Frontend Transport; Thu, 24 Feb 2022 18:48:35 +0100
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ReRmJjm2xhZSc45MoF6cHACFgWQ43o9f62ubbvnrsy5+lyAenTE7iW/y46lbzeDp4FB9E4o7IXfavd/hByYRUeZbWXlsFRvlJNDdooU+6/qo/yW5EGe8cURxCZwE+WPXrsw30ewOrZ6YC5ONVUkvmqOC+BCxB7AEfdfgRsu6RsavBPegi8J4jg3wg8DOTmAFMXNaUpW+hWsozIzwA8Sq16JC1LzWM2VOgNiT8K7jPicZM1Zoj6HmR6eq0Ue9mol8oATpvqtPDJ6d2tINsMD+SlTmtq80/nkfYbfoVWgl7Bcmp/b8xIjlDpqt/f+zGHFNQddWBjVNDoL0Z3pL3wgrDA==
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=GkHasdI5FKsN+lcrc164a+C5tpNZu0nZdsng2wTUJss=; b=cHSAEd/o0bvQV+fxto3PpVHTWpYFD4jwxG48eDu9YNUx77eSd4ABaHgS4aQyrKsDAWp+5fu6eTvh3f5Ugnq8GqqoBQA0Sl9G4/Urs/s5UvlU8NZiz0yg7HMkwTL6psMkDcrGGakDlGVO3Qfb90AmYfBk2X5gGtRslWpkQU1wOqCpXhsTn2tzY66bZktTJJSe5wa3xZ5kESyANroqQjrn9Mmygi2TEdfZFhu7Z0YwcLZ64+zD5vrDRUMmZU/VFuktf+2uz6V3bKw+IjA0G6Y8El0P++Mn+FqrVoxgUQLprdt107IeQEo/tO6qP1fCzkzTETnMOyFQLLckzOJN9HPECg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=sit.fraunhofer.de; dmarc=pass action=none header.from=sit.fraunhofer.de; dkim=pass header.d=sit.fraunhofer.de; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fraunhofer.onmicrosoft.com; s=selector2-fraunhofer-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GkHasdI5FKsN+lcrc164a+C5tpNZu0nZdsng2wTUJss=; b=livwTMi4dTjxm1yb04lj/K6Qye1MyKwHt1/TZdp/XpMPsJpJM/lOux9HbTQ09eo4o6sckYl05vhBIZLGeDHkFCamSLSlS3hZFbyJLCiI1IT83RZcJfmvnZU8admZeB3RyhtxPdqYTOxtPpSHx9MvDy2CoKSiBtlioA9HHo95N2c=
Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=sit.fraunhofer.de;
Received: from DU2P194MB1709.EURP194.PROD.OUTLOOK.COM (2603:10a6:10:276::9) by DB8P194MB0486.EURP194.PROD.OUTLOOK.COM (2603:10a6:10:144::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.24; Thu, 24 Feb 2022 17:48:34 +0000
Received: from DU2P194MB1709.EURP194.PROD.OUTLOOK.COM ([fe80::ec87:f3dc:70f7:2421]) by DU2P194MB1709.EURP194.PROD.OUTLOOK.COM ([fe80::ec87:f3dc:70f7:2421%5]) with mapi id 15.20.5017.024; Thu, 24 Feb 2022 17:48:34 +0000
Message-ID: <77ccb940-bbb3-6dc4-d589-320015934527@sit.fraunhofer.de>
Date: Thu, 24 Feb 2022 18:48:33 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0
Content-Language: en-US
To: Carsten Bormann <cabo@tzi.org>, <cbor@ietf.org>
References: <164572377862.14104.224632674636119723@ietfa.amsl.com> <F5E1157E-4FFB-470D-A3E6-F975DC6DA599@tzi.org>
From: Henk Birkholz <henk.birkholz@sit.fraunhofer.de>
In-Reply-To: <F5E1157E-4FFB-470D-A3E6-F975DC6DA599@tzi.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-ClientProxiedBy: AS8PR04CA0207.eurprd04.prod.outlook.com (2603:10a6:20b:2f3::32) To DU2P194MB1709.EURP194.PROD.OUTLOOK.COM (2603:10a6:10:276::9)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 3abb8b9e-d7e9-4f08-289f-08d9f7bde109
X-MS-TrafficTypeDiagnostic: DB8P194MB0486:EE_
X-Microsoft-Antispam-PRVS: <DB8P194MB0486E260A170F47D6BB9B5A0A83D9@DB8P194MB0486.EURP194.PROD.OUTLOOK.COM>
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: KEU8Vdt/Fe8UmlibDfLlyf8Z5mpUtZbyxY3KKIZlYxFsV6907AZ5qrhrP3WD3kkm1GtrHzpCleKBomHdhhsgZ0xZo9AXFetvuvcNwEDxmyN5KDWcQcEROiN+egCZOm8Z39GBTF6MPZpvp9iZQmMTjHEZGQcsurgu9GrFgTFqyoOB3MeZlwByfhCSDb2HGks3kLfdEa9HwfCDB7obWKsMCI0UgEHIKQKLJzHcyYfQPtImOR1WZSpKHx1tsxUcp1PWWv2/E9P2ETydT03/OAee4ToDmoPxkBnMzNVtZOMbEiudokFqF4wgzOYaXKciaFdAFSub5YqSIWV6nE2+zjYx1V8qEJACvmeb+PkgrnXzjIV6QhtqYHUgJuoEDN5q5jOfB2bcNEwMlnksmlR92UwAHlFsy+qUDT40y22Y9uXYMoJjVVtNiCF1DQMh3pP4wfPJj2q8k+RlOxFHdH5MMzbRgUm747pM4QngUMj//SRyCEw87M4mZdDdRL2vLhWOIRNoZOAML52GVXDsYO6Ya6sUk755Ke4hYfUn6bL6Cog/tN8hP9nNInx0eUZCzjKjJK+1VyfzMp58a4mqoFLT1JADNaH50Y/Iz4InuJoLr2lcep1pEnf2oF76mpf9JTWgPt13tRMoKRcHL1O1PwyXIW7UFzOCOM8aW6AoFHlLlOq8UhLSPYG0Ld83huy1YbhrnqM5cqGC8Ct0R4F5OqTvy19OKG/iTCstb1xmsw8yuClmw+1r92QB8tjEE0cPTFBXi0x81AMQMAcQIBAnMDMQPcC5d+wPdid3Ujbdyb2L0vVx3ksxX5clZoybQe/32cCvcNhUjybDTHmHFto4rNXmFq3rZc38gCzY+EH8JvBbaZUf/Xp8unc1VAbAZ9iRsXHTu0ZymAr1gqQ5tAOgn4lDP7835Q==
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;  IPV:NLI; SFV:NSPM; H:DU2P194MB1709.EURP194.PROD.OUTLOOK.COM; PTR:; CAT:NONE;  SFS:(13230001)(4636009)(366004)(53546011)(38350700002)(316002)(82960400001)(186003)(38100700002)(2616005)(26005)(83380400001)(15650500001)(66574015)(5660300002)(44832011)(6506007)(52116002)(508600001)(31686004)(66946007)(6512007)(2906002)(66556008)(66476007)(8676002)(966005)(86362001)(31696002)(6486002)(8936002)(45980500001)(43740500002); DIR:OUT; SFP:1102; 
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?UEM0NnZxTThNVTJ3OER2QXIvcVZoQjZIaVppb1NFSHRzQjg3U3dISHBVb0t6?= =?utf-8?B?MFVtM1Rsa245N0ptL1VNZEpDakQ0T0doTlhvT25HMFNPMnVteEFnVVlBZkM4?= =?utf-8?B?SVcvcUxkZlM3bGpUZUR4Q0lLcVBSUDZYNytxWElmZTV4cDF5R2poY0N3ZExi?= =?utf-8?B?UXVJaVRZVnlNdmp5WE5qRHd5WGNLakV2R01zYjdvK0JYQ0x3eGJhNUQ0aExq?= =?utf-8?B?YkpGRUtlbmxkeDNURWJzQkc4UUpPYnM2SFdBOE1VK3ZsaHZTakVhT3lhQjNZ?= =?utf-8?B?NC9qcTJZQmZOazdUblRaYzFyL1BOdHFrd3M2YWNJYXp3ZDZIUEJpQUxVNmJu?= =?utf-8?B?N3Z0WTVXcHBiU1puVDA1ZWxkSEFWS0cwZTNBTG1BU1h1b0RNV2Z2czVRRjh3?= =?utf-8?B?VjRrSDA1ZUx0TEpyNXZYRlZjNDJDK041bHU2QndHUm0vK0dubFRPQnJMR1h6?= =?utf-8?B?V0UwQ25QYisyMFQ5WWFNTUN3U2FGclJLT0lqOVB0YVRRN3dCSGsvTkVWbktH?= =?utf-8?B?aTk4SWx5MG5iYWtFVTJCZndPaDJrVUJ1cTBsRXlOMFBHcHZodFMyTWU3b0M3?= =?utf-8?B?K2F0Y2NkbllHVEsrbjZsT2FXaVV3K3p1UU9ObWtSKzlpQUE4VTduUFFabTVN?= =?utf-8?B?SWo4bWhXV2lRTG5NMXkySE1wNzU3UjA3Szg3SGhNWDJIczhjbFpTNjZwV09t?= =?utf-8?B?UktSMHhmVG0rdk1VM0x1Z0twcFU1ZFBvTDdBNVp1YkVpWlB2dm16c085cDBZ?= =?utf-8?B?YzdkSGM2dWNwM0h3MHZRTkNUV1E4Y3B5Vm84R3Q1Y3M4eE5XRG15a1hTVTIr?= =?utf-8?B?aHNDSUxETUM5NmRvdnBMUjhsWWVRRk0xVUV3dzNQbzhXRmhnT3FVc05sTU4z?= =?utf-8?B?ODlEMTdKd2IraVJPVitZQnkzOGhlc0x1V2F0dzRyNWZwU2d0WmdmK0FzbFZt?= =?utf-8?B?SDRDRDVGS1hObGNiNnFBVFZlaThOK3pmY3ZZZURoQXVUR1d0NEYrZmEzaXBy?= =?utf-8?B?KzN0QWpzT0x1Vjk5VkpuSWlkN0oyQ1hEN211TlJ6U21WUjFzVkZQMm1EcDd0?= =?utf-8?B?cytVMWtoREhOK1YzRTVyckg0OG4vNXE2VXN4eS9WbHR4MURoaldwZTNteWRX?= =?utf-8?B?TTl5RVV2YTJ6WmFRTkxKczJoZlpoWW1Edi9XUVBaVm4wMnhoamR6dTgvaU5V?= =?utf-8?B?SWRZc243VVVkL2lOaEtlazFudzF2Q25WbjN0NFU0ellvQjN6eGFFbERDZU9k?= =?utf-8?B?NmczSmdhejNJb1V4aCtHQW8rNjJGMEdCRHVjUW15K21ITnhibmJyRGwvYy92?= =?utf-8?B?WXFvWHBzM0NiU2xqS2NPaVdHeUxWdkVYKzhkRHBuTzZLS2JpL2t0ZTREUks2?= =?utf-8?B?bnZoMDl0MGsrQ2tiZ3owNFhRY0tKNDJRcTBNVmZ5Uk92b2RRam9LZWhzTjU5?= =?utf-8?B?UEV5SzlBb2lKU2lhbFZ2c1htLzd2ZVZqQytrZERKcDJGNFg0aXRJeXZnd0Za?= =?utf-8?B?VC9BUU0zM0pZczcwWXJJL1NBckppVFYxV0gzT1MxY3NkNSt2Ti85a3A5U01S?= =?utf-8?B?eFJLNS9aTDM4Rk1kaHJaN1FOOWhZMUEycFY5elpuVFpNcXpadW5PVlZTbmtx?= =?utf-8?B?VkxyV095MVNjdW15VTN5VnVZZnAzNk8xeUxpV1V1QTZFSkhQZHFENTdMeDRw?= =?utf-8?B?RVRZVGFQZVRrL0NQV25jakdmeEdMcU56NHZMeTZzVmhVdWxCMDUvMGczUlNU?= =?utf-8?B?K3BBV3dyNUZTOERKS01HbnZsWEk2NGJ6ZkRIZlc4cGk1RE1ESFVacTlzL202?= =?utf-8?B?RzQrMTUxcUJTa2gwVVFFaWhWSmJjZmxUNVBtTjc5Z3NBOFpUV1dLb01DbWIz?= =?utf-8?B?TmpKVnhyYjExZFVNSnRoaFYydkZvb0VEMnRPTngweWU0Z2wyL0w0bkhObE4z?= =?utf-8?B?K2VTbkdSSENuVHRlYzhibFoyb2FqZlRZcHlpZGNUNXNMeTNodFlqR0xUQ2ph?= =?utf-8?B?QTJkVUJGR1VhZzVBeVdzMzZzTE95YWVhUElLU3RzaVFZdjdPTWVtMm1tRStp?= =?utf-8?B?SlVSakRPUjZ1K0prQWZrRDJGbVR6NnVTcStoYklFdndHeTd0OW05QWxPUmVT?= =?utf-8?B?Y1V4Y2hXVmhqM3MvaWxxYjd5bnFmREpBayt4UFN0Y3hKOG5TM1JidjVnUmlu?= =?utf-8?B?dFF1eVVmQ0F3cG5DV2VUeFBaYmo2RTlOajFqdDFNckUrSjJSVW9OSmtEb2o3?= =?utf-8?Q?wnsK0FKR77kOQws35Oi0X7+ClOwnL7WNE7tVwWOrho=3D?=
X-MS-Exchange-CrossTenant-Network-Message-Id: 3abb8b9e-d7e9-4f08-289f-08d9f7bde109
X-MS-Exchange-CrossTenant-AuthSource: DU2P194MB1709.EURP194.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Feb 2022 17:48:34.6906 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: f930300c-c97d-4019-be03-add650a171c4
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: 44Q5tzL/6HEqLVnxgLEHESCUMkcboN+39sbXL+yRdVQcoTO+YsBmoIs7vAJuLQNrfRMN6+hfI5LORjiAOab0Suj3eqd3t37rvJPU5uWByx4=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8P194MB0486
X-OriginatorOrg: sit.fraunhofer.de
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/c8zOKFuXoWZh2ql7xoqmEZsGuUM>
Subject: Re: [Cbor] Fwd: New Version Notification for draft-bormann-cbor-cddl-csv-00.txt
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 24 Feb 2022 17:49:18 -0000

Hi Carsten,

this is *exactly* what fills a surprisingly big gap that might look 
trivial at first... but there is so. much. weirdness. out there. Please 
have a look at specimen A.):

> https://www.w3.org/TR/tabular-data-primer/

And then there have been even deeper and more dangerous semantic 
tranches being dug. Please have look at specimen B.) while having your 
OWL spectacles at hand:

> https://github.com/CommonCoreOntology/CommonCoreOntologies

(if OWL is not your native language) With the latter, I am referring to 
  InformationContentEntity and the InformationBearingEntity - semantic 
classes that, if you look into the details, potentially enable you to 
associate URI based semantics for header field values in a CSV.

*shudders*

The idea is good, but the execution is... an interesting read.

There are a lot of things that I.D-draft-bormann-cbor-cddl-csv could 
kickstart to fix.

Viele Grüße,

Henk



On 24.02.22 18:32, Carsten Bormann wrote:
> Rob Wilton (unknowingly) made me do it.
> With big apologies from my side…
> 
> (But this brief spec is actually filling a real gap, so I would like to seriously pursue this.)
> 
> Grüße, Carsten
> 
> 
>> Begin forwarded message:
>>
>> From: internet-drafts@ietf.org
>> Subject: New Version Notification for draft-bormann-cbor-cddl-csv-00.txt
>> Date: 2022-02-24 at 18:29:38 CET
>> To: "Carsten Bormann" <cabo@tzi.org>
>> Message-Id: <164572377862.14104.224632674636119723@ietfa.amsl.com>
>>
>>
>> A new version of I-D, draft-bormann-cbor-cddl-csv-00.txt
>> has been successfully submitted by Carsten Bormann and posted to the
>> IETF repository.
>>
>> Name:		draft-bormann-cbor-cddl-csv
>> Revision:	00
>> Title:		Using CDDL for CSVs
>> Document date:	2022-02-24
>> Group:		Individual Submission
>> Pages:		6
>> URL:            https://www.ietf.org/archive/id/draft-bormann-cbor-cddl-csv-00.txt
>> Status:         https://datatracker.ietf.org/doc/draft-bormann-cbor-cddl-csv/
>> Html:           https://www.ietf.org/archive/id/draft-bormann-cbor-cddl-csv-00.html
>> Htmlized:       https://datatracker.ietf.org/doc/html/draft-bormann-cbor-cddl-csv
>>
>>
>> Abstract:
>>    The Concise Data Definition Language (CDDL), standardized in RFC
>>    8610, is defined to provide data models for data shaped like JSON or
>>    CBOR.
>>
>>    Another representation format that is quote popular is the CSV file
>>    as defined by RFC 4180.
>>
>>    The present document shows how to use CDDL to provide a data model
>>    for CSV files.
>>
>>
>>
>>
>> The IETF Secretariat
>>
>>
> 
> _______________________________________________
> CBOR mailing list
> CBOR@ietf.org
> https://www.ietf.org/mailman/listinfo/cbor


From nobody Sat Feb 26 10:02:20 2022
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 839FB3A0AA6; Sat, 26 Feb 2022 10:02:16 -0800 (PST)
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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Jq1HhetsW43g; Sat, 26 Feb 2022 10:02:13 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [IPv6:2001:638:708:32::15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CF58A3A0AA0; Sat, 26 Feb 2022 10:02:12 -0800 (PST)
Received: from [192.168.217.118] (p5089ad4f.dip0.t-ipconnect.de [80.137.173.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4K5ZGm2jgQzDCc0; Sat, 26 Feb 2022 19:02:08 +0100 (CET)
From: Carsten Bormann <cabo@tzi.org>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Mao-Original-Outgoing-Id: 667591327.975728-155bbd535d9d688a6c2ab395ecfd4bab
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
Date: Sat, 26 Feb 2022 19:02:08 +0100
Message-Id: <11AAF35A-BC6E-4516-8F8D-C8EF8FAF9371@tzi.org>
To: ace@ietf.org, "core@ietf.org WG (core@ietf.org)" <core@ietf.org>, cose <cose@ietf.org>, cbor@ietf.org, t2trg@irtf.org
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/dwy_DkMNxmT4AnQ44UqxHsUm340>
Subject: [Cbor] Constrained Node/Network Cluster @ IETF113: FINAL AGENDA
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Sat, 26 Feb 2022 18:02:17 -0000

Here is my usual eclectic condensed agenda based on the "FINAL" AGENDA
for IETF113.  Remember that further agenda changes can still happen.

The IoT-relevant conflicts that most meet the eye this time are
LPWAN/ACE (probably little actual overlap) and DRIP/ROLL/RATS
(probably a little more overlap, but not that much).
CFRG and ICNRG are the only RGs not on top of IoT meetings (T2TRG,
like e.g. CBOR and JSONPATH, decided to go for interims instead).
In the "FINAL" agenda, DANCE is now on top of CORE; not much else has
changed from a constrained node networks point of view.

All times are in UTC.

Note that the third and fourth weeks in March (W11 =3D pre-IETF week,
W12 =3D IETF week) are Weeks of Confusion, where DST has not yet started
in Europe but did already start in North America.
https://datatracker.ietf.org/meeting/agenda-utc might be handy.

Gr=C3=BC=C3=9Fe, Carsten

(### DST in US, no DST in EU ###)

SATURDAY, March 19, 2022

0830-2000  Hackathon - Grand Klimt Hall 1/2
0930-1000  Hackathon Kickoff - Grand Klimt Hall 1/2

SUNDAY, March 20, 2022

0830-1500  Hackathon - Grand Klimt Hall 1/2
(0900-1700  IETF Registration - Park Ensemble)
1300-1500  Hackathon Results Presentations - Grand Klimt Hall 1/2
(1600-1800  Welcome Reception - Grand Park Hall 1/2/3)

MONDAY, March 21, 2022

0900-1100  Morning Session I
G Park Hall 3	ART	dispatch	Dispatch WG - Joint with ARTAREA
G Park Hall 1	OPS	v6ops	IPv6 Operations WG
G Klimt Hall 2	RTG	raw	Reliable and Available Wireless WG
Park Suite 9	SEC	openpgp	Open Specification for Pretty Good =
Privacy WG
Park Suite 8	SEC ***	teep	Trusted Execution Environment =
Provisioning WG

1200-1300  Afternoon session I
Park Suite 8	ART	sedate	Serialising Extended Data About Times =
and Events WG
G Park Hall 2	IRTF	pearg	Privacy Enhancements and Assessments =
Research Group
Park Suite 3	SEC	acme	Automated Certificate Management =
Environment WG
Park Suite 9	SEC ***	cose	CBOR Object Signing and Encryption WG
G Park Hall 3	TSV	tsvwg	Transport Area Working Group WG

1330-1530  Afternoon Session II
G Klimt Hall 2	SEC ***	lake	Lightweight Authenticated Key Exchange =
WG
Park Suite 8	SEC	oauth	Web Authorization Protocol WG
G Park Hall 1	TSV	masque	Multiplexed Application Substrate over =
QUIC Encryption WG

TUESDAY, March 22, 2022

0900-1100  Morning Session I
Park Suite 9	INT	6man	IPv6 Maintenance WG
G Park Hall 1	RTG	can	Computing-Aware Networking BOF
Park Suite 3	SEC ***	rats	Remote ATtestation ProcedureS WG
G Park Hall 3	TSV	quic	QUIC WG

1200-1300  Afternoon session I
G Park Hall 2	INT ***	lpwan	IPv6 over Low Power Wide-Area Networks =
WG
G Park Hall 1	IRTF	qirg	Quantum Internet Research Group
Park Suite 3	SEC ***	ace	Authentication and Authorization for =
Constrained Environments WG
Park Suite 8	SEC	emu	EAP Method Update WG
Park Suite 9	TSV	tsvarea	Transport Area Open Meeting

1330-1530  Afternoon Session II
G Klimt Hall 2	INT	intarea	Internet Area Working Group WG
G Park Hall 2	IRTF	irtfopen	IRTF Open Meeting
G Park Hall 1	RTG	detnet	Deterministic Networking WG
G Park Hall 3	SEC	secdispatch	Security Dispatch WG

WEDNESDAY, March 23, 2022

0900-1100  Morning Session I
G Klimt Hall 2	ART	moq	Media Over QUIC BOF
Park Suite 8	INT ***	6lo	IPv6 over Networks of =
Resource-constrained Nodes WG
Park Suite 9	IRTF	maprg	Measurement and Analysis for Protocols
G Park Hall 2	RTG	rtgarea	Routing Area Open Meeting
G Park Hall 3	SEC	tls	Transport Layer Security WG

1200-1300  Afternoon session I
Park Suite 2	ART	mediaman	Media Type Maintenance WG
G Park Hall 1	INT ***	drip	Drone Remote ID Protocol WG
Park Suite 8	RTG ***	roll	Routing Over Low power and Lossy =
networks WG
Park Suite 3	SEC	mls	Messaging Layer Security WG
G Park Hall 3	SEC ***	rats	Remote ATtestation ProcedureS WG
G Park Hall 2	TSV	taps	Transport Services WG

1330-1530  Afternoon Session II
Park Suite 3	RTG	bier	Bit Indexed Explicit Replication WG

1600-1800  IETF Plenary - Grand Park Hall 1-3

THURSDAY, March 24, 2022

0900-1100  Morning Session I
G Park Hall 2	ART	httpapi	Building Blocks for HTTP APIs WG
G Park Hall 1	INT	savnet	Source Address Validation in =
Intra-domain and Inter-domain Networks BOF
G Klimt Hall 2	IRTF	coinrg	Computing in the Network Research Group
Park Suite 9	OPS ***	iotops	IOT Operations WG
G Park Hall 3	SEC	saag	Security Area Open Meeting

1200-1300  Afternoon session I
G Park Hall 3	INT	madinas	MAC Address Device Identification for =
Network and Application Services WG
G Klimt Hall 2	IRTF	panrg	Path Aware Networking RG
Park Suite 8	RTG	rift	Routing In Fat Trees WG
Park Suite 3	SEC	privacypass	Privacy Pass WG
G Park Hall 2	SEC ***	suit	Software Updates for Internet of Things =
WG

1330-1530  Afternoon Session II
G Klimt Hall 2	ART	webtrans	WebTransport WG
G Park Hall 2	INT	add	Adaptive DNS Discovery WG
G Park Hall 3	IRTF	cfrg	Crypto Forum
Park Suite 2	SEC	oauth	Web Authorization Protocol WG

FRIDAY, March 25, 2022

0900-1100  Morning Session I
G Klimt Hall 2	ART ***	core	Constrained RESTful Environments WG
Park Suite 8	SEC	dance	DANE Authentication for Network Clients =
Everywhere WG
G Park Hall 2	SEC	gnap	Grant Negotiation and Authorization =
Protocol WG
G Park Hall 3	TSV	tsvwg	Transport Area Working Group WG

1130-1330  Afternoon Session I
Park Suite 3	IRTF	icnrg	Information-Centric Networking
G Klimt Hall 2	OPS	anima	Autonomic Networking Integrated Model =
and Approach WG

(### DST STARTS IN EUROPE ON SUNDAY ###)


From nobody Mon Feb 28 21:42:04 2022
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 C5B4E3A18DD for <cbor@ietfa.amsl.com>; Mon, 28 Feb 2022 21:42:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.906
X-Spam-Level: 
X-Spam-Status: No, score=-1.906 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5eslXJkiNKdk for <cbor@ietfa.amsl.com>; Mon, 28 Feb 2022 21:41:58 -0800 (PST)
Received: from p3plsmtpa08-01.prod.phx3.secureserver.net (p3plsmtpa08-01.prod.phx3.secureserver.net [173.201.193.102]) (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 8148B3A18DB for <cbor@ietf.org>; Mon, 28 Feb 2022 21:41:58 -0800 (PST)
Received: from [192.168.1.7] ([75.80.148.139]) by :SMTPAUTH: with ESMTPSA id OvEbnf9mq5SpGOvEcn4Wbq; Mon, 28 Feb 2022 22:39:42 -0700
X-CMAE-Analysis: v=2.4 cv=fetod2cF c=1 sm=1 tr=0 ts=621db19e a=qS/Wyu6Nw1Yro6yF1S+Djg==:117 a=qS/Wyu6Nw1Yro6yF1S+Djg==:17 a=gKmFwSsBAAAA:8 a=W4_2ROo46K8fUIwON-YA:9 a=QEXdDO2ut3YA:10 a=-F49n0WADCVw7yqD:21 a=_W_S_7VecoQA:10 a=nnPW6aIcBuj1ljLj_o6Q:22
X-SECURESERVER-ACCT: lgl@island-resort.com
From: Laurence Lundblade <lgl@island-resort.com>
Message-Id: <33373B82-D46C-498B-A0EB-78E34870C8A7@island-resort.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_1A814C4B-627C-4F24-8E4B-07B309721F76"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\))
Date: Mon, 28 Feb 2022 21:39:41 -0800
In-Reply-To: <2A13AF29-6309-4FA3-9A84-59D4E0C8F089@tzi.org>
Cc: "rats@ietf.org" <rats@ietf.org>, cbor@ietf.org, "cose@ietf.org" <cose@ietf.org>
To: Carsten Bormann <cabo@tzi.org>
References: <e8995f0c-ad85-f702-da6b-051ffdc4cb08@gmail.com> <DBBPR08MB5915B874FD16107A7B0105AAFA3A9@DBBPR08MB5915.eurprd08.prod.outlook.com> <1a16c80d-40cd-baba-b1ce-2033dd0db294@gmail.com> <D22D0D63-F76C-48B3-A034-F8B5B2BB6005@tzi.org> <2c8be442-9899-d117-155c-f6f2096b7055@gmail.com> <92C7CF7C-ED23-41B3-AB32-8438C4C88C20@tzi.org> <14c8d106-3b4b-f973-94b8-018852ff4769@gmail.com> <8C2C6592-D5B9-430A-B878-E1009E9BCF22@tzi.org> <AB9F0C55-9C23-43F1-A83F-91D4159C888F@island-resort.com> <59939C29-5370-4385-AE61-A21ADDC0D194@tzi.org> <ED025590-3CA0-42B8-B50E-030D94FA88D6@island-resort.com> <E74C7303-E7D5-45EA-886C-158DB6D83844@tzi.org> <E5AD55D7-33B2-4E50-83EA-5BD1C1462F01@island-resort.com> <2A13AF29-6309-4FA3-9A84-59D4E0C8F089@tzi.org>
X-Mailer: Apple Mail (2.3608.120.23.2.1)
X-CMAE-Envelope: MS4xfP7MLZ30PUfHQc6iYVNMyBFz8yvnQ1PdH+e4n4H3WnSJt/PVeTtqNR91GO0z4mgruimmSVPzjy9xFqhFp49azGJC7jTt18lXiUwNg06MqMOg9kFK0A9a 2j7/R8Z6/xGF5wZcZs41rusbdw89Q36+Ql3CvC1hV6IXPxsTSBRQUy07mupZQKsK10gGrHn8PtfPwZLKTxJerCt2/x4wQhAKBk0Kflzr9Jc79M9HUHIFmuwR f5NpqzIihlDmIiLLqR1ttg==
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/82mDTU-NBvOtvE-4K__I98Ac1fA>
Subject: Re: [Cbor] [COSE] [Rats] RAM requirements for COSE/CWT
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Tue, 01 Mar 2022 05:42:03 -0000

--Apple-Mail=_1A814C4B-627C-4F24-8E4B-07B309721F76
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


> On Feb 23, 2022, at 1:08 PM, Carsten Bormann <cabo@tzi.org> wrote:
>=20
> Hi Laurence,
>=20
>>=20
>> I know in reality most decoders will handle non-preferred =
serialization, but I don=E2=80=99t see anything in section 5.2 that says =
that they must. (non-preferred is still well formed).
>=20
> What part of the first sentence of section 5.2:
>=20
>>> A generic CBOR decoder can decode all well-formed encoded CBOR data =
items and present the data items to an application.
>=20
> ...could we have phrased better?


Well, um, maybe.  :-)

It=E2=80=99s a small sentence with potentially big implications.=20

If your generic decoder is like the pseudo code the implications =
aren=E2=80=99t big, but for decoders like QCBOR that do a lot more work =
for you, the implications are large =E2=80=94 deep combined nesting of =
interleaved definite length and indefinite lengths maps and arrays, huge =
indefinite length strings, multiple levels of tag nesting for a data =
item that is a map label, a nested set of maps that is used as a map =
label,=E2=80=A6

I haven=E2=80=99t checked, but there might not be very many truly =
conformant generic decoders. QCBOR definitely isn=E2=80=99t, because it =
has limits like a max of 4GB for encoded input, max levels of map, array =
and tag nesting and such to be efficient with code size and memory.

That said, probably most decoders can handle non-preferred integers, the =
topic at hand, just fine because it is trivial.

Yes you are of course right that 5.2 that defines generic decoders says =
non-preferred serialization must be supported.

LL


--Apple-Mail=_1A814C4B-627C-4F24-8E4B-07B309721F76
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><br =
class=3D""><div><blockquote type=3D"cite" class=3D""><div class=3D"">On =
Feb 23, 2022, at 1:08 PM, Carsten Bormann &lt;<a =
href=3D"mailto:cabo@tzi.org" class=3D"">cabo@tzi.org</a>&gt; =
wrote:</div><br class=3D"Apple-interchange-newline"><div class=3D""><span =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none; float: none; =
display: inline !important;" class=3D"">Hi Laurence,</span><br =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;" class=3D""><br =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;" =
class=3D""><blockquote type=3D"cite" style=3D"font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant-caps: normal; =
font-weight: normal; letter-spacing: normal; orphans: auto; text-align: =
start; text-indent: 0px; text-transform: none; white-space: normal; =
widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; =
-webkit-text-stroke-width: 0px; text-decoration: none;" class=3D""><br =
class=3D"">I know in reality most decoders will handle non-preferred =
serialization, but I don=E2=80=99t see anything in section 5.2 that says =
that they must. (non-preferred is still well formed).<br =
class=3D""></blockquote><br style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;" class=3D""><span style=3D"caret-color: rgb(0, 0, =
0); font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none; float: none; display: inline !important;" =
class=3D"">What part of the first sentence of section 5.2:</span><br =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;" class=3D""><br =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;" =
class=3D""><blockquote type=3D"cite" style=3D"font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant-caps: normal; =
font-weight: normal; letter-spacing: normal; orphans: auto; text-align: =
start; text-indent: 0px; text-transform: none; white-space: normal; =
widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; =
-webkit-text-stroke-width: 0px; text-decoration: none;" =
class=3D""><blockquote type=3D"cite" class=3D"">A generic CBOR decoder =
can decode all well-formed encoded CBOR data items and present the data =
items to an application.<br class=3D""></blockquote></blockquote><br =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;" class=3D""><span =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none; float: none; =
display: inline !important;" class=3D"">...could we have phrased =
better?</span></div></blockquote></div><div class=3D""><br =
class=3D""></div><div class=3D"">Well, um, maybe. &nbsp;:-)</div><div =
class=3D""><br class=3D""></div><div class=3D"">It=E2=80=99s a small =
sentence with potentially big implications.&nbsp;</div><div class=3D""><br=
 class=3D""></div><div class=3D"">If your generic decoder is like the =
pseudo code the implications aren=E2=80=99t big, but for decoders like =
QCBOR that do a lot more work for you, the implications are large =E2=80=94=
 deep combined nesting of interleaved definite length and indefinite =
lengths maps and arrays, huge indefinite length strings, multiple levels =
of tag nesting for a data item that is a map label, a nested set of maps =
that is used as a map label,=E2=80=A6</div><div class=3D""><br =
class=3D""></div><div class=3D"">I haven=E2=80=99t checked, but there =
might not be very many truly conformant generic decoders. QCBOR =
definitely isn=E2=80=99t, because it has limits like a max of 4GB for =
encoded input, max levels of map, array and tag nesting and such to be =
efficient with code size and memory.</div><div class=3D""><br =
class=3D""></div><div class=3D"">That said, probably most decoders can =
handle non-preferred integers, the topic at hand, just fine because it =
is trivial.</div><div class=3D""><br class=3D""></div><div class=3D"">Yes =
you are of course right that 5.2 that defines generic decoders says =
non-preferred serialization must be supported.</div><div class=3D""><br =
class=3D""></div><div class=3D"">LL</div><div class=3D""><br =
class=3D""></div></body></html>=

--Apple-Mail=_1A814C4B-627C-4F24-8E4B-07B309721F76--

