Re: [Cbor] Record proposal

Emile Cormier <emile.cormier.jr@gmail.com> Thu, 02 December 2021 09:49 UTC

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 666873A0D7B for <cbor@ietfa.amsl.com>; Thu, 2 Dec 2021 01:49:13 -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 w2RRlW9TmUFn for <cbor@ietfa.amsl.com>; Thu, 2 Dec 2021 01:49:08 -0800 (PST)
Received: from mail-yb1-xb36.google.com (mail-yb1-xb36.google.com [IPv6:2607:f8b0:4864:20::b36]) (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 C06DC3A0854 for <cbor@ietf.org>; Thu, 2 Dec 2021 01:49:08 -0800 (PST)
Received: by mail-yb1-xb36.google.com with SMTP id d10so71702768ybe.3 for <cbor@ietf.org>; Thu, 02 Dec 2021 01:49:08 -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=0tAmoxQ4oUpZNnNmDpF7/zZr78MQfNTW9QEP9Hmxv9w=; b=Ubm7UBXxBQGdUUnBAuxv90XA2tYpzjXatg//FIeZYHYrxmFmRK7tiIPOe2M6/3JB4n rODHZjYwcfGNaN/Hw+1xRpXplHJsSE5D3w4i8DcrNEgYMbrZ22WmaiSTcNQH6QAjKyN6 h1YC/juBgcUHdo0y/PKYtdF6heUB/8CNKqOUIaugrCjiE4IEGX+Z2gdhybsBx9JtyrEf w7hmPqZ5Lw1g9iJa0apEtpvs4q/x4rcq+JNkYFhF2g7gnsvdelpl9bMgecX2aKwHGJxF ccKkTJLFS+xmesWyoWAkUJSP3CEMkbVlKYWKE1fQYqL4sb4DN4wZMvVovRfjWQsGrXDh n9kg==
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=0tAmoxQ4oUpZNnNmDpF7/zZr78MQfNTW9QEP9Hmxv9w=; b=gGTXnmJsW64Io27qbxChvB1xREXRin4M9vYLQ2CzntKZIXGzl1EGSwNJPhoHfHkjZa kIz0wEMvWJ+AvIg9Z/7oRqYvaekrq31dBfOICLTRuZJiYiUYkFzGEfY2sbqixZsZL08B TWlgCz87ebi/Ibzimm/H5ZvlBkJwbFK3aAKO8xPSIp8dHmKQ83Bkx955Zw0/Qn5hI0U4 RL9J7qdwEHgbkJQ55gXSEXoWDE7CZwYSc/MbCx4pn+1hRGGrgQM7bhI/6o7WhGUyhob0 ULTlMgGgoek7Dd0QOHkJDFwZp0Dn1HZWSzCIES0yfxlDNLNntpbEeqU7ICAOJuCgvnq2 jIRw==
X-Gm-Message-State: AOAM530ppN3nlBUHBapGy7G2r1lrSbt/2HoGcR/gk+/SVxA3xnFakemC gPiWtigzdaVDLW7sAf3NwVi8sauJ6hyNbr1XkV4=
X-Google-Smtp-Source: ABdhPJzatbdvzLubmKcjG6DV9itC2vMzZZ22qngkogouTA66RxD7vr/5gkbQ+w+Uh01nIul1vrI70LdKvy1m/BOJOV8=
X-Received: by 2002:a25:bfca:: with SMTP id q10mr13280970ybm.68.1638438545289; Thu, 02 Dec 2021 01:49:05 -0800 (PST)
MIME-Version: 1.0
References: <CAEs2a6vNhrHhaiPUNtbJ68WYfbrprETPr+kmWNJgNXMSawyBig@mail.gmail.com> <E3F121DA-95EE-43C6-BC72-E3763C034944@tzi.org> <CAEs2a6uZrT9FFP6qa+hPV2sYO0y+xJJmLaF-pPoynE2vqspfBg@mail.gmail.com> <CAEs2a6uHyvvghAMCN=UmhpJMoiES7zoPmGi-bATZWXgjA068Mg@mail.gmail.com> <YY0B4YxuMuw20umu@hephaistos.amsuess.com> <CAEs2a6utA=GQSx2Ln=5wnoNdS6z+0ExdCcfNXG6cAg=1MxnT=w@mail.gmail.com> <901541DC-A520-44CD-AA8D-F2CE77F03FA0@tzi.org> <CAEs2a6sZd4s-DJ3R_M4BLwO12s8i2AGfv0yXCaWdy+baOuAEqw@mail.gmail.com> <8CA1A63D-70B5-4109-ABE7-9CF9197F0375@tzi.org> <CAEs2a6uTKJ1DOTjREjKaRSY6kNAHSof97OoRAZbjDWOazLQC+A@mail.gmail.com> <CAEs2a6tY02haauD4OL18fp15Zet2bqkq+xVzEvAEiK5cvTpy2w@mail.gmail.com> <5C7719D8-8DCB-41BE-9111-882A02D43506@tzi.org> <CAEs2a6vVL9_wvrbwske80m5P5Y1xKw6_ecitDL9uybf2TsvWHw@mail.gmail.com> <CAEs2a6tW7K71wKfK-EerdntmyTppqDrz=Fjb7BfADXAkH5N3gA@mail.gmail.com> <CAM70yxB_YaRWccUk_UfLgxwd1gSUNxkDmaWfh-15wEiXsVe9Ng@mail.gmail.com> <CAEs2a6s3=jSb2N7+JHntApW9PWgBCUxV5TP5ej7vLfuR4T6fug@mail.gmail.com> <CAM70yxDJFiv=skuU4=vkos9Zk1JpqQ+6xGGDFj6+Tb6gqCdKFg@mail.gmail.com> <7AF3052A-3B03-4F8A-988D-9F7228001C91@tzi.org>
In-Reply-To: <7AF3052A-3B03-4F8A-988D-9F7228001C91@tzi.org>
From: Emile Cormier <emile.cormier.jr@gmail.com>
Date: Thu, 2 Dec 2021 05:48:54 -0400
Message-ID: <CAM70yxBhyXTGLegrQVFGu1pxKcZDfd6Q+oYDcoyotSPNAun0oA@mail.gmail.com>
To: Carsten Bormann <cabo@tzi.org>
Cc: =?UTF-8?Q?Christian_Ams=C3=BCss?= <christian@amsuess.com>, "cbor@ietf.org" <cbor@ietf.org>, Kris Zyp <kriszyp@gmail.com>
Content-Type: multipart/alternative; boundary="0000000000007a7a3805d226b3d1"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/Y4pWCyNEpSd8dn6cO3t7FR1YcS8>
Subject: Re: [Cbor] Record proposal
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, 02 Dec 2021 09:49:14 -0000

On Thu, Dec 2, 2021 at 3:35 AM Carsten Bormann <cabo@tzi.org> wrote:


> > Without the semantic meaning, there isn't data loss; raw CBOR structures
> could always be transcoded to JSON or anything else (with conventions for
> tags and such)
>
> That doesn’t work in general: An array with two elements could be a valid
> data item as well, so you get ambiguity.
> Tags provide with a clean way to extend the data model.
>

For the record, the "Without the semantic meaning, there isn't data
loss..." remark was by Kris, not me.

I think it would have been cleaner for extensions to the data model to be
done purely in terms of the core data model. All tags should do is
*identify* the new data type and not provide a few extra bytes of storage
to that new data type.

Well it seems the genie is out of the bottle in terms of tag ranges being
used to "cheaply" store a few bytes of extra information and I'm not going
to convince you of putting the genie back in. :-)