Re: [Cbor] Encoding Arbitrary Time Ratios

Carsten Bormann <cabo@tzi.org> Sun, 04 April 2021 18:02 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 ECF3F3A1324 for <cbor@ietfa.amsl.com>; Sun, 4 Apr 2021 11:02:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.219
X-Spam-Level:
X-Spam-Status: No, score=-4.219 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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 xw8oKPbZ8eb4 for <cbor@ietfa.amsl.com>; Sun, 4 Apr 2021 11:02:36 -0700 (PDT)
Received: from gabriel-vm-2.zfn.uni-bremen.de (gabriel-vm-2.zfn.uni-bremen.de [134.102.50.17]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AD3753A1323 for <cbor@ietf.org>; Sun, 4 Apr 2021 11:02:36 -0700 (PDT)
Received: from [192.168.217.118] (p548dc178.dip0.t-ipconnect.de [84.141.193.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-vm-2.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4FD1pd6JrFzyWV; Sun, 4 Apr 2021 20:02:33 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <CAM70yxCZ2OJwUEbu1ARUCG4FPZKjZ4f4LG0QPnJ8tOFKfUu-Ag@mail.gmail.com>
Date: Sun, 04 Apr 2021 20:02:33 +0200
Cc: cbor@ietf.org
X-Mao-Original-Outgoing-Id: 639252153.215874-7460e84abfa4958848036c75091c6ef8
Content-Transfer-Encoding: quoted-printable
Message-Id: <12E37C16-1B62-4A68-8E11-ED779089A90C@tzi.org>
References: <CAM70yxBF2XeewhsXOGv06kTVitz1kNHkYLHGqm3gX0Vyc2c2YA@mail.gmail.com> <A96FD12B-2F8B-495B-83F1-4A0F50DAA12C@tzi.org> <CAM70yxCaOps1n7pLo_BPR0_ggZ_QbJnY-jsNPw2NYPfP=psihg@mail.gmail.com> <C354E68B-0B1A-4644-AB38-67453F8A52C3@tzi.org> <CAM70yxCZ2OJwUEbu1ARUCG4FPZKjZ4f4LG0QPnJ8tOFKfUu-Ag@mail.gmail.com>
To: Emile Cormier <emile.cormier.jr@gmail.com>
X-Mailer: Apple Mail (2.3608.120.23.2.4)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/sXXXaIzbgIar7S2XsUZt9C9uwi4>
Subject: Re: [Cbor] Encoding Arbitrary Time Ratios
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, 04 Apr 2021 18:02:41 -0000

On 2021-04-04, at 19:05, Emile Cormier <emile.cormier.jr@gmail.com> wrote:
> 
>> I'm wondering if a new C*N/D tag could be useful in application domains outside of timekeeping. It could be called something like "scaled ratio".
> 
> Probably.
> Making it amenable to cbor-packed suffix (or circumfix!) compression would make this a quite versatile tool.
> 
> 
> Are you referring to https://tools.ietf.org/html/draft-ietf-cbor-packed-02 ? I wasn't aware of its existence before this.

Indeed.  This doesn’t mean we should design tags with the assumption that we will always have packing available, but we also can assume if there is a strong reason to be very frugal with encoding space, cbor-packed will be available as an alternative to touching every single detail to make it more compact.

Grüße, Carsten