Re: [Cbor] A CBOR tag for alternatives/unions, request for comments

Carsten Bormann <cabo@tzi.org> Tue, 05 July 2022 15:48 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D110DC13C553 for <cbor@ietfa.amsl.com>; Tue, 5 Jul 2022 08:48:35 -0700 (PDT)
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, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TE4y4YaaN25V for <cbor@ietfa.amsl.com>; Tue, 5 Jul 2022 08:48:32 -0700 (PDT)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [IPv6:2001:638:708:32::15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E527EC15AD2F for <cbor@ietf.org>; Tue, 5 Jul 2022 08:48:30 -0700 (PDT)
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 4LcnBy4ZzczDCck; Tue, 5 Jul 2022 17:48:26 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <CAKoRMYGMMnCU5i-pNRopL-t4tzb4bN8MiBipoYFjfip4FN_Dpg@mail.gmail.com>
Date: Tue, 05 Jul 2022 17:48:26 +0200
Cc: Christian Amsüss <christian@amsuess.com>, Duncan Coutts <duncan@well-typed.com>, Alexander Byaly <alexander.byaly@iohk.io>, Jared Corduan <jared.corduan@iohk.io>, cbor@ietf.org
X-Mao-Original-Outgoing-Id: 678728905.974974-55eb669896787db7c88acb317342d883
Content-Transfer-Encoding: quoted-printable
Message-Id: <6F1A3589-6E03-41D4-BCDC-D171A2377A46@tzi.org>
References: <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> <CAKoRMYGVii8eQAPsGWJn-H8+kJ81QkOGWpybDK44b5wsJbjxtw@mail.gmail.com> <YmAkKEkRMtVFGiTU@hephaistos.amsuess.com> <CAKoRMYGMMnCU5i-pNRopL-t4tzb4bN8MiBipoYFjfip4FN_Dpg@mail.gmail.com>
To: Michael Peyton Jones <michael.peyton-jones=40iohk.io@dmarc.ietf.org>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/2yVVCmLe2qJXIziV6nYNk4_HV6I>
Subject: Re: [Cbor] A CBOR tag for alternatives/unions, request for comments
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "Concise Binary Object Representation \(CBOR\)" <cbor.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cbor>, <mailto:cbor-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor/>
List-Post: <mailto:cbor@ietf.org>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cbor>, <mailto:cbor-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 05 Jul 2022 15:48:35 -0000

Hi Michael,

> I'm not sure what the status of this proposal is. It seems like there's broad agreement that this is desirable, but we don't have consensus on the exact tags to use. How can we reach consensus here? Would it be useful to provide a summary of alternatives and vote?

We don’t vote in the IETF…

The last communication from Christian was that he could live with the allocation as proposed in draft-bormann-cbor-notable-tags-06.  (We are only 5 1+1 tags apart, so it’s not such a big different anyway.)

(There is one PR that adds text and that will be in -07; that has no bearing on the registration.  I finally fixed the CI that was stuck, so you can see the diff from the link “Compare Editor's Copy to Individual Draft” in the README at https://github.com/cabo/notable-tags .)

To push this forward, you could send in the registration request to IANA pointing to https://datatracker.ietf.org/doc/html/draft-bormann-cbor-notable-tags-06.txt#section-9.1

Please use the form at:

https://www.iana.org/form/protocol-assignment

You can just point to the section 9.1 as an answer to all questions (except your name :-).

We’ll then see whether IANA sees me as an author of this spec (which I’m not really, but my name is on the draft), in which case the other designated expert (Christian) has to make the determination.

Christian is on vacation right now, so his approval could take a couple of weeks.

Grüße, Carsten


> 
> Best wishes,
> Michael
> 
> On Wed, 20 Apr 2022 at 16:18, Christian Amsüss <christian@amsuess.com> wrote:
> Hello Michael, Carsten,
> 
> On Thu, Feb 24, 2022 at 02:12:43PM +0000, Michael Peyton Jones wrote:
> > 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:
> 
> Right, multiply tagged items are something I did not consider
> originally. (My mental model for these was shaped by Rust where there is
> often type information available, so that an Option<Option<Option<u8>>>
> has all the information available to still fit in 16 bit, but that's of
> course only available on types that are just repetitive and not
> recursive).
> 
> I'd still be slightly happier if this would take less of the 1+1 space
> (121 and 122, maybe? That would suffice for the deep parts of the tree),
> but given it also has Carsten's support (who is the other expert for the
> registry), I'd be OK with it.
> 
> The policy for registering these are "specification required", so it all
> doesn't have to wait for notable-tags to be full and done -- and I'm
> just about to send out another mail suggesting to use this. What's your
> plan for progressing with this?
> 
> BR
> Christian
> 
> -- 
> There's always a more constrained fish.
>   -- Qui-Gon Jinn
> 
> 
> -- 
> 
> Michael Peyton Jones
> Software Engineering Lead | London, UK
> 
> Website: www.iohk.io
> Skype: michael.s.pj
> Twitter: @mpeytonjones
> PGP Key ID: 29F64616
> 
>  
> 
>    
> 
> 
> 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
> _______________________________________________
> CBOR mailing list
> CBOR@ietf.org
> https://www.ietf.org/mailman/listinfo/cbor