[Cbor] Re: dCBOR Rust Implementation Now Supports Bignums
Carsten Bormann <cabo@tzi.org> Sat, 20 December 2025 13:22 UTC
Return-Path: <cabo@tzi.org>
X-Original-To: cbor@mail2.ietf.org
Delivered-To: cbor@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 67F4D9D40387 for <cbor@mail2.ietf.org>; Sat, 20 Dec 2025 05:22:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -3.989
X-Spam-Level:
X-Spam-Status: No, score=-3.989 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=neutral reason="invalid (public key: not available)" header.d=tzi.org
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XhaO7730QNfq for <cbor@mail2.ietf.org>; Sat, 20 Dec 2025 05:22:11 -0800 (PST)
Received: from smtp.zfn.uni-bremen.de (smtp.zfn.uni-bremen.de [IPv6:2001:638:708:32::21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 065F49D4037F for <cbor@ietf.org>; Sat, 20 Dec 2025 05:22:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=tzi.org; s=2019; t=1766236930; bh=UTYDcgDP0K6CUd+Sa4fo/nsr4Vn+WXAvdHhAZdNFuRM=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=BNrAUZtXv5ynzv1GLxQUN/dK/X+jG4rXLPRcvAMQTHVODx+dbTuVEohzV1Om4GxP9 jy1vxfvHMEskB6fTB387zdNUxvSGD1t6S0WRS6EXJF5NkHphkme+AFV2c/JplzUNLq tw4QRCJLVt6H8KIoHKWBeptpbyPKuIIafgUsciPcR9wKYEWW4ne5E1/NSNeZWeE72U 65Ju7dYFpOToCTfWrOJqRmw00JJM3wr7k7qPBV6wc9S8YjBIVnK/hlSFtCGs7KsLz1 aO6E3zZLJ2/1U9DOsvDWD8YY0skol6p0xa9cuGkeIJvaoBTKF4hUHtzTsPkq4k3dG0 UrIsPjqX50jiA==
Received: from [192.168.217.132] (p548dcea3.dip0.t-ipconnect.de [84.141.206.163]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4dYQ6n5y5WzDCbK; Sat, 20 Dec 2025 14:22:09 +0100 (CET)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <20be4724-332a-49d2-8f9c-3ab9d22ca786@gmail.com>
Date: Sat, 20 Dec 2025 14:22:09 +0100
X-Mao-Original-Outgoing-Id: 787929729.296453-5e831e62607a502d5a708720e16d46b4
Content-Transfer-Encoding: quoted-printable
Message-Id: <5065104F-8294-485F-96A1-FED8DA5D76CE@tzi.org>
References: <5B266DF8-20CB-4D2F-984E-763313A5BB4C@wolfmcnally.com> <CAE7DB7C-D994-4E57-AC2B-A9ED0AB3776F@tzi.org> <CAKoiRuap-4z3wdMZpjG+evRL6e4dfmBP5QCQOGVevQWraOXzkA@mail.gmail.com> <20be4724-332a-49d2-8f9c-3ab9d22ca786@gmail.com>
To: Anders Rundgren <anders.rundgren.net@gmail.com>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
X-FromAuthMilter: ok
Message-ID-Hash: 6AIQGZXFTXQVQJHNYJQPN47BAP2SYPG4
X-Message-ID-Hash: 6AIQGZXFTXQVQJHNYJQPN47BAP2SYPG4
X-MailFrom: cabo@tzi.org
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-cbor.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: Rohan Mahy <rohan.mahy@gmail.com>, Wolf McNally <wolf@wolfmcnally.com>, CBOR <cbor@ietf.org>, Christopher Allen <christophera@lifewithalacrity.com>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [Cbor] Re: dCBOR Rust Implementation Now Supports Bignums
List-Id: "Concise Binary Object Representation (CBOR)" <cbor.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/jUkGY2ir6YCPZPmnzPXshYMahiI>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Owner: <mailto:cbor-owner@ietf.org>
List-Post: <mailto:cbor@ietf.org>
List-Subscribe: <mailto:cbor-join@ietf.org>
List-Unsubscribe: <mailto:cbor-leave@ietf.org>
On 2025-12-20, at 14:05, Anders Rundgren <anders.rundgren.net@gmail.com> wrote: > > On 2025-12-20 13:48, Rohan Mahy wrote: >> If we had a time machine and could change the spec before it was implemented, I would have the spec do what Wolf described. However this is implemented in enough places that changing this aspect of preferred serialization is going to break something. > > I (of course) don't know for sure, but given the fact that Bignums have limited utility In your world. > and are represented in another way(!) in basic serialization, Huh? > I don't think a change would break many *applications*. This might be because your field of view is a bit narrow^W focused. > Breaking *implementations* is less of a problem. Not all implementers will agree. (It is a big problem if it is not clear whether a “fix” is really just a fix or another section of the smorgasbord.) > As I wrote before, the CDE way is not even normative (4.2.2) using IETF nomenclature and practices. Please occasionally reread RFC 8949: 3.4. Tagging of Items [...] The tag definition may specify a preferred serialization (Section 4.1) that is recommended for generic encoders; this may prefer basic generic data model representations over ones that employ a tag. 3.4.3. Bignums [...] preferred serialization (Section 4.1) never makes use of bignums that also can be expressed as basic integers (see below). [Most of 3.4.3 is about the consequences of the equivalence defined for tag 2/3.] > A change would affect EDN as well since Bignums would need a different syntax, like the n-suffix in JavaScript. Here the idea of having a single tag that can be slapped around any RFC 8949 integer would shine. (If we don’t do that, an application-specific extension is the way to go.) Grüße, Carsten
- [Cbor] dCBOR Rust Implementation Now Supports Big… Wolf McNally
- [Cbor] Re: dCBOR Rust Implementation Now Supports… Carsten Bormann
- [Cbor] Re: dCBOR Rust Implementation Now Supports… Rohan Mahy
- [Cbor] Re: dCBOR Rust Implementation Now Supports… Carsten Bormann
- [Cbor] Re: dCBOR Rust Implementation Now Supports… Anders Rundgren
- [Cbor] Re: dCBOR Rust Implementation Now Supports… Vadim Goncharov
- [Cbor] Re: dCBOR Rust Implementation Now Supports… Carsten Bormann
- [Cbor] Re: dCBOR Rust Implementation Now Supports… Vadim Goncharov
- [Cbor] Re: dCBOR Rust Implementation Now Supports… Anders Rundgren
- [Cbor] Re: dCBOR Rust Implementation Now Supports… Vadim Goncharov
- [Cbor] Re: dCBOR Rust Implementation Now Supports… Carsten Bormann
- [Cbor] Re: dCBOR Rust Implementation Now Supports… Carsten Bormann
- [Cbor] Re: dCBOR Rust Implementation Now Supports… Carsten Bormann
- [Cbor] Re: dCBOR Rust Implementation Now Supports… Anders Rundgren
- [Cbor] Re: dCBOR Rust Implementation Now Supports… Carsten Bormann
- [Cbor] Re: dCBOR Rust Implementation Now Supports… Anders Rundgren
- [Cbor] Re: dCBOR Rust Implementation Now Supports… Anders Rundgren
- [Cbor] Re: dCBOR Rust Implementation Now Supports… Wolf McNally
- [Cbor] Re: dCBOR Rust Implementation Now Supports… Vadim Goncharov
- [Cbor] Improve section 3.4.3 wording (was Re: dCB… Laurence Lundblade
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Wolf McNally
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Carsten Bormann
- [Cbor] Re: dCBOR Rust Implementation Now Supports… David Kemp
- [Cbor] Re: dCBOR Rust Implementation Now Supports… Vadim Goncharov
- [Cbor] Re: dCBOR Rust Implementation Now Supports… Vadim Goncharov
- [Cbor] Re: dCBOR Rust Implementation Now Supports… David Kemp
- [Cbor] Re: dCBOR Rust Implementation Now Supports… Anders Rundgren
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Carsten Bormann
- [Cbor] Interoperability Issues / dCBOR Rust Imple… Anders Rundgren
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Anders Rundgren
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Laurence Lundblade
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Carsten Bormann
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Wolf McNally
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Carsten Bormann
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Wolf McNally
- [Cbor] Re: dCBOR Rust Implementation Now Supports… David Kemp
- [Cbor] Re: Interoperability Issues / dCBOR Rust I… Vadim Goncharov
- [Cbor] Re: Interoperability Issues / dCBOR Rust I… Anders Rundgren
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Laurence Lundblade
- [Cbor] Update. Re: Interoperability Issues / dCBO… Anders Rundgren
- [Cbor] Re: Update. Re: Interoperability Issues / … Carsten Bormann
- [Cbor] Re: Update. Re: Interoperability Issues / … Anders Rundgren
- [Cbor] Re: Update. Re: Interoperability Issues / … Carsten Bormann
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Anders Rundgren
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Wolf McNally
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Rohan Mahy
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Laurence Lundblade
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Wolf McNally
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Laurence Lundblade
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Vadim Goncharov
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Vadim Goncharov
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Laurence Lundblade
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Vadim Goncharov
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Carsten Bormann
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Carsten Bormann
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Laurence Lundblade
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Carsten Bormann
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Vadim Goncharov
- [Cbor] Fragmented CBOR Ecosystem (improve section… Anders Rundgren
- [Cbor] Re: Fragmented CBOR Ecosystem (improve sec… Carsten Bormann
- [Cbor] Re: dCBOR Rust Implementation Now Supports… Vadim Goncharov
- [Cbor] Re: Fragmented CBOR Ecosystem (improve sec… Vadim Goncharov
- [Cbor] Re: Fragmented CBOR Ecosystem (improve sec… Anders Rundgren
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Rohan Mahy
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Laurence Lundblade
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Carsten Bormann
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Laurence Lundblade
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Carsten Bormann
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Rohan Mahy
- [Cbor] Tags "modifying" CBOR (Was: Improve sectio… Vadim Goncharov
- [Cbor] Re: Fragmented CBOR Ecosystem (improve sec… Anders Rundgren
- [Cbor] Re: Fragmented CBOR Ecosystem (improve sec… Carsten Bormann
- [Cbor] Re: Tags "modifying" CBOR (Was: Improve se… Laurence Lundblade
- [Cbor] Re: Fragmented CBOR Ecosystem (improve sec… Laurence Lundblade
- [Cbor] Re: Fragmented CBOR Ecosystem (improve sec… Vadim Goncharov
- [Cbor] Re: Tags "modifying" CBOR (Was: Improve se… Carsten Bormann
- [Cbor] Re: Fragmented CBOR Ecosystem (improve sec… Vadim Goncharov
- [Cbor] Re: Improve section 3.4.3 wording (was Re:… Anders Rundgren
- [Cbor] Re: Tags "modifying" CBOR (Was: Improve se… Laurence Lundblade