[Cbor] Re: Early allocation for packed CBOR (Re: Reminder: CBOR WG Virtual Meeting on 2024-12-11)
Marco Tiloca <marco.tiloca@ri.se> Wed, 11 December 2024 15:19 UTC
Return-Path: <marco.tiloca@ri.se>
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 35277C1DC80A for <cbor@ietfa.amsl.com>; Wed, 11 Dec 2024 07:19:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.104
X-Spam-Level:
X-Spam-Status: No, score=-2.104 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=ri.se
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 EDrnffZxUIzJ for <cbor@ietfa.amsl.com>; Wed, 11 Dec 2024 07:19:55 -0800 (PST)
Received: from GVYP280CU001.outbound.protection.outlook.com (mail-swedencentralazon11022128.outbound.protection.outlook.com [52.101.82.128]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D8822C15108B for <cbor@ietf.org>; Wed, 11 Dec 2024 07:19:39 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=JinW26xLjOYAfC1qasXNIN7bQykja6LbvNTd1SnkCmDcBV5b0EIkNuwxIYQ+y7b16zRNZH0Ztt5ZNnMyVKUbwVINvzB8yHKLYSgGmu7fE+fubBK32k/CItNCIciUrYtNsUsKGCZJqlTeqGTZI0/bHbMmnkeKsC+NKmvblvcHHZU+6qnnmhcLerJPErkAZ/EQKEFJQYjj9KQ74D2CaQVJoS0bX5j9rCIg0/d46nJrUOqy6a2LqsPs/NKgAvgkbPslqmODMu5wicxTlUgcr9Wszr9GrC17Qgnqwo5Z9Z/uS6m3b3KQmIaoO4jCNsGGRq3P2RTazPpZrZXZ094cvFhudw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=RCp/2dmFOKzBE/r4Pyk9OX/FXhowWdbqCGPga2bJ64E=; b=BDj65lRbmkxV+9QOu+ApvXBGwNrKub3l+/Y/GtH6FYSLbDGiRI/ZTKp9nxFlh19ln+NsPY8d5i1YZgOTe0Hs7FHOZjCR/C1tJNyEEHjm3Cz+T6OnVyk13cjzsrkndM4J4h260bVhFgJbJRzEKL2OTEu3Dq6eH2e2Y6Z8fR3OwcfamLY7YeK3b30RAL3OiD1oQs2yt+nauJ+y5V16LTAjuoNR7UNEfee7DDmJsY5cVqNYDxdp2gy4SgRKpXg/HjFh5HpS6UBBXqyGD6XYjp8sGvs6PFxidlLjkF3MJnmEOBCAMtbAQZ7DjTFTDc6kfNRzgC+eoIs1LuHcXHPfZU4GFg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ri.se; dmarc=pass action=none header.from=ri.se; dkim=pass header.d=ri.se; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ri.se; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RCp/2dmFOKzBE/r4Pyk9OX/FXhowWdbqCGPga2bJ64E=; b=V/fA5ELnHNsNGSaJ11bqoqYLfzHG5eFx55vnnnvpCf2sCfmixXZ7ZxjAxMG1t7zY5Hidc0xFh/KG28DpIyCbQrv/Lcl9CQPt6BAFpGClG8f1dCGo0XXc5Uc3IMlNUkfyCq0OHVBbCYlFyzEXB9ZeHC51di9J9AOUL9SZUiEreer+n4z+jXGTswlMvxV72aVjhz/zH6PvUa5rCFVeYDZJIbI62oej7AYlqy/Kf0VuDBy8u9hirUFA0J1fZV707tnrAbB+1gY6rrAmFdU10LTiRWfSeDEmU3j0Dzg1lEBl/CCQqrjRHxAolPP+nILq/p7XsfC/PeIsnbD2ssK+aJD0CA==
Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ri.se;
Received: from GVYP280MB0464.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:37::17) by GV3P280MB1094.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:f0::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.30; Wed, 11 Dec 2024 15:19:44 +0000
Received: from GVYP280MB0464.SWEP280.PROD.OUTLOOK.COM ([fe80::b1d3:d63d:ce0b:3f70]) by GVYP280MB0464.SWEP280.PROD.OUTLOOK.COM ([fe80::b1d3:d63d:ce0b:3f70%5]) with mapi id 15.20.8158.029; Wed, 11 Dec 2024 15:19:28 +0000
Message-ID: <b6788b18-78f3-48e7-b86a-1e369123e7b1@ri.se>
Date: Wed, 11 Dec 2024 16:19:29 +0100
User-Agent: Mozilla Thunderbird
To: Carsten Bormann <cabo@tzi.org>, Joe Hildebrand <hildjj@cursive.net>
References: <CALaySJKDFscUBGw4CPspXJvUTkXywVHc_FrmhO3ybBWTrwjGXw@mail.gmail.com> <CALaySJLnKxU9m3BNPq4XayrSrorRBG2vuBz1AF-CsEBoSZe7Xg@mail.gmail.com> <CALaySJKaz7C=GN5E=saiDY4KxL+9xCfM0ocZuMStEQ96FnQ4KA@mail.gmail.com> <CALaySJJEXkey9vLAp8VqDXmPsWpxiWN9jjtVnGio1nMQ4K+mDQ@mail.gmail.com> <CALaySJJfc+tET4Vm5UQjHPK5mf61O0iR-1i6=X32CYtWxZLWTQ@mail.gmail.com> <CALaySJKdrk7aPzhT=kbE1B8pq1EBw74nmx_peSJMAoHsG5jyVQ@mail.gmail.com> <CALaySJ+fWX4zEnE5v-Q9R6eCv=kSJjnc-fsXL5PGPgac1GJAcA@mail.gmail.com> <B807C9D3-39A4-4024-BC1D-85DD84EA1735@tzi.org> <DFE56705-CCDD-4172-B577-C873E3DB4898@tzi.org> <5FEA5C07-4A39-4B58-B2AE-F261D111FCE6@cursive.net> <D0618F67-4868-4745-A526-F73DF1A98E1B@tzi.org> <98C6BEDA-C4B2-4657-ABE2-19FE637CE782@cursive.net> <2A875D49-DD88-42D9-969D-0841A6B41F95@tzi.org> <PH7PR02MB92920676E8817271E547F82FB73E2@PH7PR02MB9292.namprd02.prod.outlook.com> <5FBB4831-3E96-44E3-A2AA-B2D83B6C1B05@cursive.net> <03254343-C2C1-4725-8E69-1CF532472C25@tzi.org>
Content-Language: en-US
From: Marco Tiloca <marco.tiloca@ri.se>
Autocrypt: addr=marco.tiloca@ri.se; keydata= xsBNBFSNeRUBCAC44iazWzj/PE3TiAlBsaWna0JbdIAJFHB8PLrqthI0ZG7GnCLNR8ZhDz6Z aRDPC4FR3UcMhPgZpJIqa6Zi8yWYCqF7A7QhT7E1WdQR1G0+6xUEd0ZD+QBdf29pQadrVZAt 0G4CkUnq5H+Sm05aw2Cpv3Jfs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7iZktA5Y2kPGEwf/WNjTy3z74vLmHycVsFXXoQ8W1+858mRy Ad0a8JYzY3xB7CVtqI3Hy894Qcw4H6G799A1OL9B1EeA8Yj3aOz0NbUyf5GW+iotr3h8+KIC OYZ34/BQaOLzdvDNmRoGHn+NeTzhF7eSeiPKi2jex+NVodhjOVGXw8EhYGkeZLvynHEboiLM 4TbyPbVR9HsdVqKGVTDxKSE3namo3kvtY6syRFIiUz5WzJfYAuqbt6m3TxDEb8sA9pzaLuhm fnJRc12H5NVZEZmE/EkJFTlkP4wnZyOSf/r2/Vd0iHauBwv57cpY6HFFMe7rvK4s7ME5zctO Ely5C6NCu1ZaNtdUuqDSPA==
In-Reply-To: <03254343-C2C1-4725-8E69-1CF532472C25@tzi.org>
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="------------J3ZjtNfS4KmL0eOEEkFBVa74"
X-ClientProxiedBy: GV3PEPF00002BA5.SWEP280.PROD.OUTLOOK.COM (2603:10a6:144:1:0:6:0:1c) To GVYP280MB0464.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:37::17)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: GVYP280MB0464:EE_|GV3P280MB1094:EE_
X-MS-Office365-Filtering-Correlation-Id: 09a2005b-bfc0-41ed-8bba-08dd19f7346c
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|4022899009|376014|8096899003;
X-Microsoft-Antispam-Message-Info: 5LLYrsjGbDTWCJz6DoJ9anpSr7EG7Oa/L0lM4plqSHW3FgFnWp7oyH9LFX1QRSAvH+A5Hx8FMPIXFfvvVqxICFUde3O5xjyIvlLPVlwY4+TXaqqi/aRAUxkqZ2d/dSZk6brMeyf88RkqBqEi+SYKqM3GU8bo62+gxNEXNxKuf82XFRfF1nFvIb+64VeUTPxV9V+WoSYyMazPrm5N6uafP1XDBI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oROWZMHnf7+S8uUx5wyG741VRmK0F+eUpxHxCHeemxKE4waN8UiGJUvHBySj8UR6aZ2u9+EE5+upXASeM=
X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:GVYP280MB0464.SWEP280.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(4022899009)(376014)(8096899003);DIR:OUT;SFP:1102;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: YqCrB3GGnrgxoVOfd1tiCuxbNpcIOveNCo74rKmLa/UgExzGtG5xTbPRHdJ0yqR3s2ksfxzvsD1QOlxuV9MBhw+e5B6gvYoi49oL+0Y9B1nks8bb3pDXJ6bIpyEKSCbJlryPnbsGT+Q0sDJDgn7GCkxvBIf3kRn07h5h1AIiIKEKHDipdqpZiV2/MG80L34/5m8SvCm4Rd0KhqyeG4V/pQOldsMFz2KYyCoeQEiQv3e39GhL9b/T4LUB9huBKdNH5EiDOu3rSym+eMvtrfskntdk/y+WPkjfY94tR0NT/okpj0wZbaeMaxnD/1E0r5gn9ZISKa6STxn6BTO8GUgQa7V9aviwWl7SUosyi2zCYu/MXZaR2ZdlzUr1uGb6PPpONkjqyzmBp2nxa4tcuyp/4wGtq4jlkEkt42Ka7YVSAP077T/Va7x0HtPhvXID3MK/VXid+gnSFCooRJ6oWkbinV3a0oFIWxrzygR33DdWbrQXkbY6tC9Zpl460Uqbjn7kNbSuwSFlvY1cAtCqiulnVm0Nmu68naeTViLSBdOQ7dYsEe+/EamvxBoAh8j357sVPuxnmTcR2Zan8veQ0BYzSKRXGtaZAXqXU8vQyqtRX6XiVtxVKEqIqmFibvb6aIgdocYIGPa7Gt+4V9ddV51oMDO2dF8EXE757jrxuHXZDTOfPg+pIyHn2Y/zHyZejkSUJc8hZb53D0xWwjAJCUNSEamJG7DGGU2u2aHjBJhtk389SKF2rFRCIwF9CUs5cFUGru7Swb/FwKp8o5y7NuI1atzl89FGWo2sWE1G4lbtz4roz6ufIiaO+BMbtqHN7+t82crRa5/yhbi4/H7JNK3sejOzg9USglxniGRW2hmn2gNfG0YdojIQbSgGxVgUw8glNiIYqvGqZQXOlS9K3ybRs4awWhQMRy+0hS2+Z2Ci2eJkzmMUaqke06rcSvEmIMkZqjm688dqC0Uf/xWeYRC32z0bAqaV5izy2bACwpG+4AW3IHL5V3h1SOVfN/SumsrPGb7UkiU3x6S+HbnJj7KX7R5IDkxxhlGqbrY6uMtqaWLJTRPIQHgKeKy0dVBj4Kglgl3NIqc6OOkqyFiw95h6CG9pBHak4JNZRQMM154LGqiA9nIiHIHwUiIcbeG6Uz4UYQZRtjbv8aO2VDHcQXbh6bA3YDqr3tp05tBHLvUkjNAou3EVsjB0eMl3CeXiEP1/y3GFfDHvyWF65SUoVKI9jy43n3+9G8uLz8YLvr0rwbAfpG0gmheINdUV9LCWL7nTCCRE2o/w5J99fxsP0OWtXInapT9/YWWvQoa4fOob9aMUQLLw/QwMKsD/Nb/GcpgTLTp81nEpW7Iq5Khz1JUJj1PDq8/C4pmSiKurRJD/d/47eHtpb7J3ia02F+9zH0KuzMbGr4/4md9Nkw9TpyIV1EEeW7pze5Ko846cuoXDLykYTEweKbR8QLaOtVoKSNch9ViJEhveax/fhagJHofDLmOOZCpDmZ70JWswYPsjO9oZgttVoDdc7V2+fh7Q5BKiK9t8fOjJub0hIyV9zkCjLVpH0E3lijaFGwgjETwJwEkxzTIS7+eFskvajtCmKdTm
X-OriginatorOrg: ri.se
X-MS-Exchange-CrossTenant-Network-Message-Id: 09a2005b-bfc0-41ed-8bba-08dd19f7346c
X-MS-Exchange-CrossTenant-AuthSource: GVYP280MB0464.SWEP280.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2024 15:19:28.4900 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 5a9809cf-0bcb-413a-838a-09ecc40cc9e8
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: zuHMg8gYgDwhjCjbn0zt1sEInbFGKHD32ld1gRth4yzmwKVStRcc8o66gFsfre7j9sOMSvMTcB5vzhkgc6XyVA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV3P280MB1094
Message-ID-Hash: UI7NNT6JLFEEEJCLXJALFHZWYDMX3A6D
X-Message-ID-Hash: UI7NNT6JLFEEEJCLXJALFHZWYDMX3A6D
X-MailFrom: marco.tiloca@ri.se
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: Michael Jones <michael_b_jones@hotmail.com>, CBOR <cbor@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [Cbor] Re: Early allocation for packed CBOR (Re: Reminder: CBOR WG Virtual Meeting on 2024-12-11)
List-Id: "Concise Binary Object Representation (CBOR)" <cbor.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/9dzqxRVFSq028t3rM_b3SAPhmNY>
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>
Hi all, Personally, I don't have an issue with the idea of (early) allocating such a large number of tags per se. We are not running out of tag numbers, and even consuming one fourth of the remaining precious 1+1 tag numbers is in my opinion worth the achieved compression result (as Carsten's exercise also showed in his previous mail). I also don't perceive the fundamental construct of packed CBOR as an abuse of the tag concept. Best, /Marco On 2024-12-11 12:07, Carsten Bormann wrote: > On 11. Dec 2024, at 07:05, Joe Hildebrand<hildjj@cursive.net> wrote: >> Short arrays are really cheap in CBOR. > Yes, but using the tag numbers is even cheaper. > > For argument bearing tags, the current WG draft creates an overhead of +2 to +5 bytes: > > +2 d8 xi arg (0..31 in 1+1 tag) > +3 d9 xi ii arg (32..4095 in 1+2 tag) > +5 da xi ii ii ii arg (4096..a lot in 1+4 tag) > > (The x is supposed to indicate that we are of course only using part of the space. > ii is indicating both the index and whether this is a straight or inverted reference.) > > Let’s do a quick design with fewer tags to compare: > We could lose the meaning of non-integer content to Tag 6 as a short entry 0 argument reference > and instead use the following construct for all argument references: > > 6([index, argument]) > (Use negative integer for inverted references). > This leads to: > > +3 c6 82 hn arg (0..23) > +4 c6 82 hn nn arg (24-~255) > +5 c6 82 hn nn nn arg (256..~65535) > > ➔ one byte more (or sometimes two). Why do users of cbor-packed want to spend this byte? > > (Zipf’s law makes likely that the first indexes have a higher impact. > A quick back of the envelope test with a Zipfian distribution for tables up to size 10000 tells me the second design costs about 1.22 bytes more per straight reference than the first; this is probably a bit tail-heavy, so the real impact will be closer to 1 byte.) > > We could always do the 6([index, arg]) construct in the second design for the higher index numbers only, keeping the 1+1 allocations. > This will have a more limited impact, and would get rid of the cognitive impact of using millions of tags. > But there is no “technical” reason to do that. > > Grüße, Carsten > > _______________________________________________ > CBOR mailing list --cbor@ietf.org > To unsubscribe send an email tocbor-leave@ietf.org -- Marco Tiloca Ph.D., Senior Researcher Phone: +46 (0)70 60 46 501 RISE Research Institutes of Sweden AB Box 1263 164 29 Kista (Sweden) Division: Digital Systems Department: Computer Science Unit: Cybersecurity https://www.ri.se
- [Cbor] Reminder: CBOR WG Virtual Meeting on 2024-… Barry Leiba
- Re: [Cbor] Reminder: CBOR WG Virtual Meeting on 2… Ira McDonald
- Re: [Cbor] Reminder: CBOR WG Virtual Meeting on 2… Barry Leiba
- Re: [Cbor] Reminder: CBOR WG Virtual Meeting on 2… Barry Leiba
- [Cbor] Reminder: *NO* CBOR WG Virtual Meeting on … Barry Leiba
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Barry Leiba
- [Cbor] Reminder: CBOR WG Virtual Meeting on 2024-… Barry Leiba
- [Cbor] Reminder: CBOR WG Virtual Meeting on 2024-… Barry Leiba
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Ira McDonald
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Barry Leiba
- [Cbor] Reminder: CBOR WG Virtual Meeting on 2024-… Barry Leiba
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Anders Rundgren
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Wolf McNally
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Anders Rundgren
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… lgl island-resort.com
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Anders Rundgren
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… lgl island-resort.com
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Anders Rundgren
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Barry Leiba
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Wolf McNally
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Anders Rundgren
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Carsten Bormann
- [Cbor] Reminder: CBOR WG Virtual Meeting on 2024-… Barry Leiba
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Barry Leiba
- [Cbor] Reminder: CBOR WG Virtual Meeting on 2024-… Barry Leiba
- [Cbor] Reminder: CBOR WG Virtual Meeting on 2024-… Barry Leiba
- [Cbor] Reminder: CBOR WG Virtual Meeting on 2024-… Barry Leiba
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Carsten Bormann
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Barry Leiba
- [Cbor] Reminder: CBOR WG Virtual Meeting on 2024-… Barry Leiba
- [Cbor] Reminder: CBOR WG Virtual Meeting on 2024-… Barry Leiba
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Carsten Bormann
- [Cbor] Early allocation for packed CBOR (Re: Remi… Carsten Bormann
- [Cbor] Re: Early allocation for packed CBOR (Re: … Joe Hildebrand
- [Cbor] Re: Early allocation for packed CBOR (Re: … Carsten Bormann
- [Cbor] Re: Early allocation for packed CBOR (Re: … Joe Hildebrand
- [Cbor] Re: Early allocation for packed CBOR (Re: … Michael Jones
- [Cbor] Re: Early allocation for packed CBOR (Re: … Carsten Bormann
- [Cbor] Re: Early allocation for packed CBOR (Re: … Michael Jones
- [Cbor] Re: Early allocation for packed CBOR (Re: … Carsten Bormann
- [Cbor] Re: Early allocation for packed CBOR (Re: … Joe Hildebrand
- [Cbor] Re: Early allocation for packed CBOR (Re: … Carsten Bormann
- [Cbor] Re: Early allocation for packed CBOR (Re: … Marco Tiloca
- [Cbor] Re: Early allocation for packed CBOR (Re: … Vadim Goncharov
- [Cbor] Re: Early allocation for packed CBOR (Re: … Carsten Bormann
- [Cbor] Abandon cbor-packed (Re: Early allocation … Vadim Goncharov
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Carsten Bormann
- [Cbor] Re: Early allocation for packed CBOR (Re: … Christopher Allen
- [Cbor] Re: Early allocation for packed CBOR (Re: … Carsten Bormann
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Rohan Mahy
- [Cbor] Re: Abandon cbor-packed / CBAR counter-pro… Vadim Goncharov
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Henk Birkholz
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Vadim Goncharov
- [Cbor] Re: Early allocation for packed CBOR (Re: … Michael Richardson
- [Cbor] Re: Early allocation for packed CBOR (Re: … Kang Seonghoon
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Henk Birkholz
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Carsten Bormann
- [Cbor] Re: Early allocation for packed CBOR (Re: … Carsten Bormann
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Alan DeKok
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Carsten Bormann
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Alan DeKok
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Christopher Allen
- [Cbor] CDE next steps (Re: Reminder: CBOR WG Virt… Carsten Bormann
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … Anders Rundgren
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Wolf McNally
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Orie Steele
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Carsten Bormann
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Carsten Bormann
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Carsten Bormann
- [Cbor] Re: Early allocation for packed CBOR (Re: … Rohan Mahy
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Carsten Bormann
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Vadim Goncharov
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … Carsten Bormann
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Vadim Goncharov
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Alan DeKok
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Carsten Bormann
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Alan DeKok
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Carsten Bormann
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Orie Steele
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Vadim Goncharov
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Carsten Bormann
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Vadim Goncharov
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Alan DeKok
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Carsten Bormann
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Carsten Bormann
- [Cbor] Re: Early allocation for packed CBOR (Re: … Rohan Mahy
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Alan DeKok
- [Cbor] Re: Abandon cbor-packed / CBAR alternative Vadim Goncharov
- [Cbor] Re: Abandon cbor-packed / CBAR alternative Alan DeKok
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … lgl island-resort.com
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … Carsten Bormann
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Barry Leiba
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … Anders Rundgren
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … Orie Steele
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … lgl island-resort.com
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … Anders Rundgren
- [Cbor] Reminder: CBOR WG Virtual Meeting on 2025-… Barry Leiba
- [Cbor] Reminder: CBOR WG Virtual Meeting on 2025-… Barry Leiba
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … Anders Rundgren
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … Anders Rundgren
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Vadim Goncharov
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … Carsten Bormann
- [Cbor] Re: Early allocation for packed CBOR (Re: … Vadim Goncharov
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … Orie Steele
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … Anders Rundgren
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … Carsten Bormann
- [Cbor] Re: Abandon cbor-packed / CBAR alternative Carsten Bormann
- [Cbor] Re: Abandon cbor-packed / CBAR alternative Alan DeKok
- [Cbor] Re: Early allocation for packed CBOR (Re: … Michael Richardson
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … Carsten Bormann
- [Cbor] Re: Abandon cbor-packed / CBAR alternative Carsten Bormann
- [Cbor] Re: Abandon cbor-packed / CBAR alternative Alan DeKok
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Carsten Bormann
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … Carsten Bormann
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … lgl island-resort.com
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … Carsten Bormann
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … Carsten Bormann
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Barry Leiba
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Carsten Bormann
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … lgl island-resort.com
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … Carsten Bormann
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … Anders Rundgren
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … Anders Rundgren
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … Anders Rundgren
- [Cbor] Re: Abandon cbor-packed / CBAR alternative Vadim Goncharov
- [Cbor] Re: Abandon cbor-packed / CBAR alternative Alan DeKok
- [Cbor] Re: Abandon cbor-packed / CBAR alternative Carsten Bormann
- [Cbor] Re: Abandon cbor-packed / CBAR alternative Vadim Goncharov
- [Cbor] Re: Abandon cbor-packed / CBAR alternative Martine Sophie Lenders
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Carsten Bormann
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Carsten Bormann
- [Cbor] Re: Abandon cbor-packed / CBAR alternative Vadim Goncharov
- [Cbor] Re: Abandon cbor-packed / CBAR alternative Martine Sophie Lenders
- [Cbor] Re: Abandon cbor-packed / CBAR alternative Vadim Goncharov
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … lgl island-resort.com
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … lgl island-resort.com
- [Cbor] Re: Abandon cbor-packed / CBAR alternative Carsten Bormann
- [Cbor] Re: Abandon cbor-packed / CBAR alternative Carsten Bormann
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … Carsten Bormann
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … Orie Steele
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … Carsten Bormann
- [Cbor] Re: Abandon cbor-packed / CBAR alternative Alan DeKok
- [Cbor] Re: Abandon cbor-packed / CBAR alternative Vadim Goncharov
- [Cbor] Re: cbor-packed & dns-cbor are currently i… Vadim Goncharov
- [Cbor] Re: cbor-packed incompatibe / CBAR for dns… Vadim Goncharov
- [Cbor] Re: Abandon cbor-packed (Re: Early allocat… Vadim Goncharov
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … lgl island-resort.com
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … Carsten Bormann
- [Cbor] Re: Abandon cbor-packed / CBAR alternative Martine Sophie Lenders
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … lgl island-resort.com
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … Carsten Bormann
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … lgl island-resort.com
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … Carsten Bormann
- [Cbor] Re: Abandon cbor-packed / CBAR explanation… Vadim Goncharov
- [Cbor] Re: Abandon cbor-packed / CBAR alternative Martine Sophie Lenders
- [Cbor] Re: Early allocation for packed CBOR (Re: … Carsten Bormann
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … lgl island-resort.com
- [Cbor] Re: CDE next steps (Re: Reminder: CBOR WG … Carsten Bormann
- [Cbor] Reminder: CBOR WG Virtual Meeting on 2025-… Barry Leiba
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Barry Leiba
- [Cbor] Reminder: CBOR WG Virtual Meeting on 2025-… Barry Leiba
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Carsten Bormann
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Barry Leiba
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Carsten Bormann
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Rohan Mahy
- [Cbor] Reminder: CBOR WG Virtual Meeting on 2025-… Barry Leiba
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Michael Richardson
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Carsten Bormann
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Michael Richardson
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Barry Leiba
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Michael Richardson
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Barry Leiba
- [Cbor] cbor-packed, DNS-CBOR and CBAR/CBAPT (Was:… Vadim Goncharov
- [Cbor] Re: cbor-packed, DNS-CBOR and CBAR/CBAPT (… Carsten Bormann
- [Cbor] Re: cbor-packed, DNS-CBOR and CBAR/CBAPT (… Vadim Goncharov
- [Cbor] Reminder: CBOR WG Virtual Meeting on 2025-… Barry Leiba
- [Cbor] Reminder: CBOR WG Virtual Meeting on 2025-… Barry Leiba
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Vadim Goncharov
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Vadim Goncharov
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Anders Rundgren
- [Cbor] Reminder: CBOR WG Virtual Meeting on 2025-… Barry Leiba
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Barry Leiba
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Carsten Bormann
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Barry Leiba
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Carsten Bormann
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Carsten Bormann
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Rohan Mahy
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Laurence Lundblade
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Vadim Goncharov
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Carsten Bormann
- [Cbor] Re: packed: CBOR WG Virtual Meeting on 202… Vadim Goncharov
- [Cbor] Re: packed: CBOR WG Virtual Meeting on 202… Vadim Goncharov
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Carsten Bormann
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Vadim Goncharov
- [Cbor] Re: Reminder: CBOR WG Virtual Meeting on 2… Rohan Mahy