Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-04.txt
Vadim Goncharov <vadimnuclight@gmail.com> Thu, 19 January 2023 19:03 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 490CAC151552 for <cbor@ietfa.amsl.com>; Thu, 19 Jan 2023 11:03:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.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_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 OyFgWu_usW3M for <cbor@ietfa.amsl.com>; Thu, 19 Jan 2023 11:03:46 -0800 (PST)
Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) (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 CF158C151548 for <cbor@ietf.org>; Thu, 19 Jan 2023 11:03:46 -0800 (PST)
Received: by mail-ej1-x635.google.com with SMTP id rl14so4882081ejb.2 for <cbor@ietf.org>; Thu, 19 Jan 2023 11:03:46 -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=XI6TACIgcIUrUTmNx3w0NGPyLdVSROCQqIvLqlNLyo4=; b=lAHlJRVteFRfRmq2hwBHzOaEscPtuqjKoasyF+tbnkOUa2+/9SbztLxYCM0kUlem3g R7zWJzeN0FOT2xHwbCVK+6L5uj5AgHY6CYhohZxC0S6kG1N5vLAJ3IrpzVZBk1+BtCB1 hP6CVFBNO781BxCYTO5vK3i6T+QxSOoYdmJHTXJ1GlmvAMzNVDwS0YGlg7BVcKkHh2jB 7jV7BsRGAlXcMbK1IiZjJKwF/v9FkL3rPDTvWN0DvzKzSU9r/gbXGgzzEuBqL1IRtzzD eCJW+ZjcmlK5whETvG+YuSGTMZgeUV7WbbZm8RIYMznfRW19E2FS1zXHPaU6qvbACd8O LVyg==
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=XI6TACIgcIUrUTmNx3w0NGPyLdVSROCQqIvLqlNLyo4=; b=XYvYiCYggC0fJE6eUnnLODg7gWwKC+HszieGeQh6ZauVicCuZCj6nGhMAXZQI9BH2P 8Qs6E9qyb4aPhSVyMdtEeghRpHzqYARhEAdR4bSwK8kDr/AFR8XJYE/v5cNU5Invl8SL WfQK+E5MWCkydWj/uZX3Ii8Z7tnEzpGFp7nQHA1xRfTYxWyj3AdtCFBiZcfnzhkdqbVV ef8tDoJkHD/9TPDREQcDZ7TquyFFhiG/ZN8LTy7JMyAw9FFuBsiojEh7fEFxytrEajxa rzAZ8ptp+vSxaC1tksNEGDAx5JMNXTAtYou7Q0Qg3epBrEuZ5Uanrz4BsAQrFDdRyqop vN1w==
X-Gm-Message-State: AFqh2kot3SMrTJgD1XLbDVgQeE5XkubzaYWmsuzhtw9PAS5zbBI667cd SPL8zCC24CGdyXK7+rzzl7Y=
X-Google-Smtp-Source: AMrXdXugsAXVwvaFaelROZoI89W0HD3tGo3vZdtd8BYgUhgBR3oTb17/JTfa5AiZYb+uBqKQXhQvfA==
X-Received: by 2002:a17:906:7f03:b0:86e:eccd:ba61 with SMTP id d3-20020a1709067f0300b0086eeccdba61mr19552385ejr.66.1674155025350; Thu, 19 Jan 2023 11:03:45 -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 v2-20020a170906292200b008710789d85fsm5777894ejd.156.2023.01.19.11.03.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jan 2023 11:03:45 -0800 (PST)
Date: Thu, 19 Jan 2023 22:03:42 +0300
From: Vadim Goncharov <vadimnuclight@gmail.com>
To: Emile Cormier <emile.cormier.jr@gmail.com>
Cc: Carsten Bormann <cabo@tzi.org>, cbor@ietf.org
Message-ID: <20230119220342.52de686b@nuclight>
In-Reply-To: <CAM70yxDtVa6iYycwOVj-eeV+Zkvxyhsxb=SC7FW=Zpas8TstGg@mail.gmail.com>
References: <167345627851.15097.9738487459393843034@ietfa.amsl.com> <CAM70yxD2Z52JsJ=XHFFrJWFuAEG5oHv-B8gf6zRYVK4fhpDpeQ@mail.gmail.com> <0B9B7A5E-D61E-4B97-9CE5-9A8AE7055F50@tzi.org> <20230117004326.5642c6ab@nuclight> <CAM70yxAs=9S-H6ve2HfDf5W=f4cKGZ3B=AXJV==vm26ERs9-mg@mail.gmail.com> <20230117204606.2b742f14@nuclight> <CAM70yxAeLGmiPyidn1zc64rjRcKNHp7hSUt+d6veH-AqguObkw@mail.gmail.com> <20230117220443.6c5054e7@nuclight> <CAM70yxBbNtn0D91tZ1mSY3Cg-MMVnpaCodius5MWH-wEjQHu-g@mail.gmail.com> <20230118013504.330bd132@nuclight> <CAM70yxCgTCO_xLvZegqWFEkTzsxFMeLcL1dH0VWeHARYuY1CdQ@mail.gmail.com> <CAM70yxDtVa6iYycwOVj-eeV+Zkvxyhsxb=SC7FW=Zpas8TstGg@mail.gmail.com>
X-Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; amd64-portbld-freebsd12.3)
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/8ss6yxMVh7BuPDX2-ivszuojwXM>
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: Thu, 19 Jan 2023 19:03:47 -0000
On Wed, 18 Jan 2023 17:56:11 -0400 Emile Cormier <emile.cormier.jr@gmail.com> wrote: > > > [quantity, exponent] > > > > > > where 'quantity' is an integer or float, and 'exponent' is an > > > integer for a 10^(exponent) multiplier for the quantity. > > > > May be two variants of exponent - one decimal, other binary? > > > > It could be as simple as: > > [magnitude, radix, exponent] > > where radix is either 2 or 10. I would actually prefer this scheme > for the subseconds component in Tags 1001-1003 (instead of the > current messiness of scanning "magic" -3/-6/-9/-12 key values that If there are only two values of exponent, then it can be encoded by a single bit, is so needed. Just need to choose from which value this bit should be sacrificed :-) > > But that would require an extra precious byte (Carsten, you need > > to get a better mobile data plan. ;-) ). > > > > In making that silly joke (intended as genial), it made me think > about how CBOR would work nicely in the remote telemetry domain with > radio modems, so I guess there is a case for making CBOR as compact > as reasonably possible, at the expense of some encoder/decoder > complexity and CPU usage. > > It's not easy to please everyone, and I don't envy Carson's position. Well, CBOR is such because of IEEE 802.15.4 where maximal packet size (MTU) is limited to 128 bytes and the usable space in corner case may be as small as just 33 bytes. Actually I'm designing protocol able to run on excatly this Procrustus size, needing even more compactness than CBOR could offer (going sub-byte resolution and giving up some genericity), and I can tell you it's very hard to achieve more compact than CBOR, and definitely with more complex implementation - CBOR is in fact pretty easy to implement. -- WBR, @nuclight
- [Cbor] I-D Action: draft-ietf-cbor-time-tag-04.txt internet-drafts
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Carsten Bormann
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Barry Leiba
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Vadim Goncharov
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Carsten Bormann
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Vadim Goncharov
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Carsten Bormann
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Doug Ewell
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Carsten Bormann
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Carsten Bormann
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Henk Birkholz
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Michael Richardson
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… lgl island-resort.com
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Laurence Lundblade
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Doug Ewell
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Emile Cormier
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Carsten Bormann
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Carsten Bormann
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Carsten Bormann
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Emile Cormier
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Emile Cormier
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Vadim Goncharov
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Vadim Goncharov
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Vadim Goncharov
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Vadim Goncharov
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Doug Ewell
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Emile Cormier
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Carsten Bormann
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Emile Cormier
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Vadim Goncharov
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Emile Cormier
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Vadim Goncharov
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Laurence Lundblade
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Laurence Lundblade
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Emile Cormier
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Vadim Goncharov
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Emile Cormier
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Emile Cormier
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Carsten Bormann
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Emile Cormier
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Carsten Bormann
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Vadim Goncharov
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Vadim Goncharov
- Re: [Cbor] I-D Action: draft-ietf-cbor-time-tag-0… Carsten Bormann