[Cbor] Re: I-D Action: draft-mcnally-deterministic-cbor-10.html
Wolf McNally <wolf@wolfmcnally.com> Mon, 17 June 2024 09:23 UTC
Return-Path: <wolf@wolfmcnally.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 23A93C14F6A7 for <cbor@ietfa.amsl.com>; Mon, 17 Jun 2024 02:23:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.906
X-Spam-Level:
X-Spam-Status: No, score=-1.906 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=wolfmcnally-com.20230601.gappssmtp.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 v4x88X7ICJsO for <cbor@ietfa.amsl.com>; Mon, 17 Jun 2024 02:23:57 -0700 (PDT)
Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) (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 24CAAC14F691 for <cbor@ietf.org>; Mon, 17 Jun 2024 02:23:48 -0700 (PDT)
Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-705d9f4cd7bso2097885b3a.1 for <cbor@ietf.org>; Mon, 17 Jun 2024 02:23:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfmcnally-com.20230601.gappssmtp.com; s=20230601; t=1718616228; x=1719221028; darn=ietf.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=gqHEBfu+nsLZZPWoCpeKcRsKi0Uhq2qQyeRy+hNgzzM=; b=B2UN60O80tj7ZyQJcHMa3Jqy9ygAgKdI8P9IqLDGbPd3c45lQ6TCV+7MERWo5TbrkV cPoasNFO5c3ghae3ozFN6Z1sm+bhUHyLSG/TPRFdQStszqBrHcr6D4Ioqg71D4jzIQjr jNxHtsP9vTR59J3W+Z7nZnx6U43bfohXAHqqceNYE34+ieA6tb1N/ySW+A6lKmT93dni twESiNJ79uJHyX2e+2Zq52qhijSZRPcsgHZuHTtiqEiJpqC1EyZ2tUctxMFggLI/c93j KOlBKj9o7timCxdSBw84tVAOoWmaHBRkgCEfWhePwG209T6bH+xK0t9Ci1Pq2f2okAm/ OgxQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718616228; x=1719221028; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gqHEBfu+nsLZZPWoCpeKcRsKi0Uhq2qQyeRy+hNgzzM=; b=bTjrOkGCOzQHBy8Mkv8U/e9jJRcr6IWlRBHjnUxbZwCe7/L7V3CZVH4kfbs2m1k60u x2OJGb20Owp/ea6RfQmLN2g+DLLsvqSjqUKMc+JQ/txfe3xC1Ju4vT1hU/5YYrO+ZiZ1 nntYkquSuR+FO/u0FGA1CQFQvQv+xtYmTsRG5D11FJCNzVUdMPWGywYyVaPR7jSOei88 ANTP7ichvmWPbyQprIEdGMyrB6slM9V9RLTUWQI2guVQe+6e+C5LMT9Q6VV80Cq1MR2a +ClFHDtKPlH1Y+wIo7oDnUm36nNjSCdl/KrbjRPtIz1hUvSprD0q+v/3UVGv5TWb1A2j V+aQ==
X-Gm-Message-State: AOJu0YxdUhRUlsCwSGcpkK3IkQGw7iiM8YaYxdamsYnZQVOo0yrdBGfq Tl6BQciS5aYUm9OgET8Uhm/46htXSSS6/8oXCk03XVdl/A389ze2LoAcJk95L1U=
X-Google-Smtp-Source: AGHT+IELCNwAzLM1haLCL92Ic1J+XLbD1prZLyBXAvmYW39YpZ4D65oBT3DqAB2g9vkwebNs0pea0w==
X-Received: by 2002:a05:6a00:8d5:b0:704:32dc:c4e4 with SMTP id d2e1a72fcca58-705d7123929mr11682031b3a.1.1718616227781; Mon, 17 Jun 2024 02:23:47 -0700 (PDT)
Received: from smtpclient.apple ([185.202.221.145]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-705ccb3d2b7sm6972779b3a.106.2024.06.17.02.23.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jun 2024 02:23:47 -0700 (PDT)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\))
From: Wolf McNally <wolf@wolfmcnally.com>
In-Reply-To: <a962e326-ab3f-4857-a1ee-2042cf87f32a@gmail.com>
Date: Mon, 17 Jun 2024 02:23:35 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <DF2C7CA0-FC4E-45A8-BBFC-B3243AD34F7D@wolfmcnally.com>
References: <a962e326-ab3f-4857-a1ee-2042cf87f32a@gmail.com>
To: Anders Rundgren <anders.rundgren.net@gmail.com>
X-Mailer: Apple Mail (2.3774.600.62)
Message-ID-Hash: PWE5GA4OZV57GCFGYJTY3LG3AAKM6BIN
X-Message-ID-Hash: PWE5GA4OZV57GCFGYJTY3LG3AAKM6BIN
X-MailFrom: wolf@wolfmcnally.com
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: "cbor@ietf.org" <cbor@ietf.org>
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [Cbor] Re: I-D Action: draft-mcnally-deterministic-cbor-10.html
List-Id: "Concise Binary Object Representation (CBOR)" <cbor.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/sel8DG0FMWSEpCffiE7k7FXUeyY>
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>
Anders, > On Jun 16, 2024, at 7:50 AM, Anders Rundgren <anders.rundgren.net@gmail.com> wrote: > > Revised text proposal: > > 2.3 Numeric Reduction > To provide deterministic encoding in platforms that do not separate integer > and floating point values (like JavaScript), numbers must be canonicalized. > Numeric reduction ensures that semantically equal numeric values (e.g. 2 and 2.0) > are encoded into identical byte streams (e.g. 0x02) by encoding "Integral floating point values" > (floating point values with a zero fractional part) as integers when possible. > > Since this is the essence of dCBOR, I would drop all other parts of dCBOR, since similar restrictions and limitations can be found in just about any other CBOR-using application as well. This is *not* the "essence of dCBOR.” There is *nothing* platform-specific in the motivation or specification of dCBOR, not for JavaScript or any other execution environment. The motivation for numeric reduction is: to give the most common types of numeric values a *deterministic* serialization. That’s it. No more no less. Please stop mischaracterizing. ~ Wolf
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Anders Rundgren
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… lgl island-resort.com
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Anders Rundgren
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… lgl island-resort.com
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Anders Rundgren
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Anders Rundgren
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Anders Rundgren
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Wolf McNally
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Wolf McNally
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Anders Rundgren
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Joe Hildebrand
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Carsten Bormann
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Anders Rundgren
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Anders Rundgren
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Wolf McNally
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Carsten Bormann
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Anders Rundgren
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Wolf McNally
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Anders Rundgren
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Christopher Allen
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Anders Rundgren
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Wolf McNally
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Anders Rundgren
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… lgl island-resort.com
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Wolf McNally
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Carsten Bormann
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Anders Rundgren
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Anders Rundgren
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Wolf McNally
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Anders Rundgren
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Carsten Bormann
- [Cbor] Re: I-D Action: draft-mcnally-deterministi… Wolf McNally