Re: [Cbor] Consolidated set of tags for containers

Kio Smallwood <kio@mothers-arms.co.uk> Tue, 06 April 2021 17:19 UTC

Return-Path: <kio@mothers-arms.co.uk>
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 402853A2997 for <cbor@ietfa.amsl.com>; Tue, 6 Apr 2021 10:19:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.498
X-Spam-Level:
X-Spam-Status: No, score=-1.498 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, KHOP_HELO_FCRDNS=0.399, SPF_HELO_NONE=0.001, SPF_NONE=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 YUF6cjg3i7cg for <cbor@ietfa.amsl.com>; Tue, 6 Apr 2021 10:19:54 -0700 (PDT)
Received: from authenticated.a-painless.mh.aa.net.uk (painless-a.thn.aa.net.uk [IPv6:2001:8b0:62::26]) (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 94D133A2994 for <cbor@ietf.org>; Tue, 6 Apr 2021 10:19:54 -0700 (PDT)
Received: from cpc105076-sgyl40-2-0-cust233.18-2.cable.virginm.net ([82.4.24.234] helo=Galaxy-S10e.lan) by painless-a.thn.aa.net.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from <kio@mothers-arms.co.uk>) id 1lTpMl-0002kH-Pn; Tue, 06 Apr 2021 18:19:52 +0100
Date: Tue, 06 Apr 2021 18:19:47 +0100
User-Agent: K-9 Mail for Android
In-Reply-To: <CAM70yxDJ8fNBPWLtheiWKvvpKUayw0ueuNtAbnd8BsVWV8gKMg@mail.gmail.com>
References: <CAM70yxDJ8fNBPWLtheiWKvvpKUayw0ueuNtAbnd8BsVWV8gKMg@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----FVD6AO01LXUP2U03ARXMNCWNC9SZEE"
Content-Transfer-Encoding: 7bit
To: cbor@ietf.org, Emile Cormier <emile.cormier.jr@gmail.com>
From: Kio Smallwood <kio@mothers-arms.co.uk>
Message-ID: <161ED597-9822-41BC-9B1B-311DBBD26BE6@mothers-arms.co.uk>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/2-XFOFo0dyyj8eSrCWJfuGbLelE>
Subject: Re: [Cbor] Consolidated set of tags for containers
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, 06 Apr 2021 17:19:56 -0000

I'm quite happy with this. Especially the use of abstract data types. 

I would like to add that Sets already have a tag of 258

Would it be worth considering how to handle multiple tags that fulfil the same role e.g. tag 258 and 144?

Cheers. 
Kio



On 19 March 2021 00:27:53 GMT, Emile Cormier <emile.cormier.jr@gmail.com> wrote:
>I branched my consolidated map tags proposal to include tags for
>list-like
>containers. This now lives on the "with-lists" branch on my GitHub
>repo.
>With the addition of list-like containers, the proposal now contains
>tags
>for representing containers like lists, sets and bags.
>
>https://github.com/ecorm/cbor-map-like/blob/with-lists/README.md
>
>Summary of changes:
>
>* Added "Category" column for either "Dictionary" or "Collection"
>
>* Added dictionaries with arbitrary keys and uniform values to make
>decoding the traits less insane. This increases the total number of
>tags
>from 20 to 24.
>
>* Removed programming languages section in favor of abstract data types
>that model each tag. Much less maintenance this way.
>
>I await your comments, critiques, and questions.

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.