Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-04.txt

Vadim Goncharov <vadimnuclight@gmail.com> Mon, 16 January 2023 21:43 UTC

Return-Path: <vadimnuclight@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 83BF7C1524C6 for <cbor@ietfa.amsl.com>; Mon, 16 Jan 2023 13:43:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.098
X-Spam-Level:
X-Spam-Status: No, score=-7.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_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1yterjrDBWXR for <cbor@ietfa.amsl.com>; Mon, 16 Jan 2023 13:43:30 -0800 (PST)
Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 29AB7C14CE33 for <cbor@ietf.org>; Mon, 16 Jan 2023 13:43:30 -0800 (PST)
Received: by mail-lf1-x134.google.com with SMTP id bf43so44434235lfb.6 for <cbor@ietf.org>; Mon, 16 Jan 2023 13:43:30 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=656NPniFsMr12ihbm1DYzagD1lBu4+KKU7U5Pw96f2I=; b=KW94lHBO85j0ZxFygMc+lEVv86GGsvTIXenkr7ywFbL/OY8857SKcnI2l+SH0amwFI yMVkAMFYGwZ3LsXXA+FEeFgWw4uK0AZQu6v+GIwVcp/HiCfFwBOWssAVfdnhhFvTW06A xhB1BW7UcVMu8RiJ7Wvds5ErD55FRh+d5FsmkP6KXQO+01Rop8f79BHl3Wavaxpjv1WK KlQ3szRnfiEpkFBg62oV2bgcxoF9BmPEo6kizUMuU1uV5LfE2qGjf37u9gnviP59QBqQ Cql8hwFOBflwZwyQzo1fLrJQSDD86A1h8vnGONJS5XvXhLwuScF4H3LQhqpEeFFY/stO AQWA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=656NPniFsMr12ihbm1DYzagD1lBu4+KKU7U5Pw96f2I=; b=OVRNK0Iw7oYFLHxIwPP41lpQn5pJBdCMHzHeaVRs/IUPJwGD//VIFg/Pf2Sif/uYUc amU7cp+0Yy49mZWHCNKdkb4zGEjY8BI4YUQztTf4FtzdI5xBiZD1ObbAK6+wv+DnRwfk kek4rnSis4ilKQOXhY9sKzP/5TF9HFY1ZOL7Dwddo8htmflyzKSn8foYnmzkKtV/Df5V fJLEeTZ0v2f7BVFK9Q45U3s0A8DMN5TrwF6ZDUktfjxX7y03udwzcFswBjEza0tiPiQb /nBCK8dzZJ/gE7c4htzk0TOoJTuvpj7arrsNMI0wTndmYg4o0/bce8n0g0ENbK2Z5LqM 8Ggg==
X-Gm-Message-State: AFqh2ko+qSANwGZnIg2gfqpPCxPpe6Z+aR4XMTyqKpWRQo6A74OWthPB 9Kx8jOKl85OS2e4KSjdsFb8=
X-Google-Smtp-Source: AMrXdXubAryWiVVlLEc0oBS4c6eHuhTxrgWwUlquzq+pZKCyIod/vccdGFBTEAxbNzFACocIjXU9Jw==
X-Received: by 2002:a05:6512:4022:b0:4b5:a4f1:fbbe with SMTP id br34-20020a056512402200b004b5a4f1fbbemr183812lfb.67.1673905408446; Mon, 16 Jan 2023 13:43:28 -0800 (PST)
Received: from nuclight (broadband-77-37-180-193.ip.moscow.rt.ru. [77.37.180.193]) by smtp.gmail.com with ESMTPSA id bf12-20020a056512258c00b004d55bd1de13sm953926lfb.33.2023.01.16.13.43.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 13:43:28 -0800 (PST)
Date: Tue, 17 Jan 2023 00:43:26 +0300
From: Vadim Goncharov <vadimnuclight@gmail.com>
To: Carsten Bormann <cabo@tzi.org>
Cc: Emile Cormier <emile.cormier.jr@gmail.com>, cbor@ietf.org
Message-ID: <20230117004326.5642c6ab@nuclight>
In-Reply-To: <0B9B7A5E-D61E-4B97-9CE5-9A8AE7055F50@tzi.org>
References: <167345627851.15097.9738487459393843034@ietfa.amsl.com> <CAM70yxD2Z52JsJ=XHFFrJWFuAEG5oHv-B8gf6zRYVK4fhpDpeQ@mail.gmail.com> <0B9B7A5E-D61E-4B97-9CE5-9A8AE7055F50@tzi.org>
X-Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; amd64-portbld-freebsd12.3)
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/uvk1z9UphSD8xTrOo7ttHHv6VoY>
Subject: Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-04.txt
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: Mon, 16 Jan 2023 21:43:30 -0000

On Mon, 16 Jan 2023 18:34:08 +0100
Carsten Bormann <cabo@tzi.org> wrote:

> > I would prefer clock quality to be a separate tag altogether, so
> > that it is defined in terms of the date/time tag instead of
> > recursively.  
> 
> I’m not sure what’s wrong about recursion.
> But I hear that you would like to be able to carry around separately
> a clock quality data structure (e.g., for factoring out that
> information or to separate out its processing). This could be a map
> that contains only keys that indicate clock quality, including those
> defined in Section 3.5 and any further ones registered. There would
> be no base time and no additional information about the actual time.
> We could discuss whether this should be limited to clock quality only
> or could include, say, key -10 or -11.  If the latter, we’ll need to
> discuss whether timestamp-modifying keys such as -1 are allowed.

Sounds like it is "inheritance" what is needed - possibility to have
"base" tagged map in a big structure with "settings" keys and smaller
"inheriting" ones with just timestamps itself.

For simplicity "inheritance" could be defined by just combining keys
with overriding, e.g. in Perl example:

  %basehash = (
    key1 => val1,
    key2 => val2,
  );
  %childhash = (
    key2 => val3,
    key4 => val4,
  );

results in

  %final = (
    key1 => val1,
    key2 => val3,
    key4 => val4,
  );

To Emile Cormier: then your fixed-size structs can just have a pointer
to "base" struct", will it be enough?

> > An application wanting to bundle a clock quality along with a
> > date/time could simply group them in a 2-element array (i.e. a
> > tuple).  
> 
> Sure (which might need a tag…).

Or like "namespaces" as tags 25/256 example - some tag (256) for big
outer structure, within it smaller tags (25) have their meaning...

-- 
WBR, @nuclight