[Cbor] Re: I-D Action: draft-mcnally-deterministic-cbor-10.html
Anders Rundgren <anders.rundgren.net@gmail.com> Tue, 30 July 2024 20:02 UTC
Return-Path: <anders.rundgren.net@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 EA009C151553 for <cbor@ietfa.amsl.com>; Tue, 30 Jul 2024 13:02:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.108
X-Spam-Level:
X-Spam-Status: No, score=-2.108 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, 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=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 2AVgXbSujh8V for <cbor@ietfa.amsl.com>; Tue, 30 Jul 2024 13:02:49 -0700 (PDT)
Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 80F70C151531 for <cbor@ietf.org>; Tue, 30 Jul 2024 13:02:49 -0700 (PDT)
Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-42808071810so30934255e9.1 for <cbor@ietf.org>; Tue, 30 Jul 2024 13:02:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722369767; x=1722974567; darn=ietf.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=m2t2YpPWYxp1UEIYrwTpMEKYFhLfp3pdgR3b7XaqvpA=; b=iwGIEnDGOXfpSoatUoYEFRdKNJD3PbEMJeM3H5yiuV17sN/EpSzzkVDCoXFFTgL3D2 OF/m4+qP3qxlZULy1f7rMixIfi7pDsmZp9HilXjQT7Rusr8oPaxxWxSnTcEyskUsylZc jxqGy8BWpao7baEaUKYIV1gB7CuZXD4HvOBWbcQjDAdvhI1JDHF0qTJ+ekFGVA8ENH00 OOSXoUmevGuRw6TpRUjplbk+rBI/nVZ1FknPlibqijPXyQEztU0wqxXlfAg+mm30hnzz 6qB5EtynK7+Kn+fPI4CPRuO1oAyUCShCV3YJL4H4J3HCdlMiwzHHL3Yy84stOFcgHA+J Axmw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722369767; x=1722974567; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=m2t2YpPWYxp1UEIYrwTpMEKYFhLfp3pdgR3b7XaqvpA=; b=kW5hGgKmBOeyqN+vrqaT7j6Tc4yPMZFEcdgyjS5Asq7P8LlOtG0jGYZls6X1/INoh8 cvpxSv2ocAoka33O/b73ySugC2mYYQ5hmDvEQJnba1wtbDSv+P4VWgEroubeGKx+KHBY TFZwbLyB56aRCRH4eG4bFeQqsUyYZ/uXt/P5uYJcj4mYe11yWpFT33eqw8GX/815IbN2 Xd3IpWoAtiEWkqCXh+vdN2oveuVOWgVrflOsxl++/tlwidVsrBoDh7cbCYS/qDeHp2bp FJuhWMToX5HfCvii8pRmjzuNrPbw1MeiRuMHzQYbuVAd3oQFtvH/a2IQnD5aZ54jUUch C6oA==
X-Gm-Message-State: AOJu0YxZVbo7NkSL0Qqi3hOgXUkzxIV4p927YuNFhydIjRl1V44AJuSS yNyZypspmo/iQjm002znHR2TAq9aFPS58h3PqXvObkgo2jK5ki25R9czNw==
X-Google-Smtp-Source: AGHT+IHhXk/73xBZptKauqWIa0NnY3nurV3odj+RYQfLPQFZBQtpR0rW2E4iqd/0Lk7Q9ZTeESadVQ==
X-Received: by 2002:a05:600c:3592:b0:428:150e:4f13 with SMTP id 5b1f17b1804b1-428150e5071mr84886805e9.33.1722369767224; Tue, 30 Jul 2024 13:02:47 -0700 (PDT)
Received: from ?IPV6:2a01:e0a:e1b:64b0:5c04:8a55:7c48:b67? ([2a01:e0a:e1b:64b0:5c04:8a55:7c48:b67]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-4281564cda2sm132300485e9.48.2024.07.30.13.02.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Jul 2024 13:02:46 -0700 (PDT)
Message-ID: <be24aaf2-b8a0-49a0-9d33-5b6cfef9dbe5@gmail.com>
Date: Tue, 30 Jul 2024 22:02:45 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
From: Anders Rundgren <anders.rundgren.net@gmail.com>
To: Wolf McNally <wolf@wolfmcnally.com>
References: <a962e326-ab3f-4857-a1ee-2042cf87f32a@gmail.com> <DF2C7CA0-FC4E-45A8-BBFC-B3243AD34F7D@wolfmcnally.com>
Content-Language: en-US
In-Reply-To: <DF2C7CA0-FC4E-45A8-BBFC-B3243AD34F7D@wolfmcnally.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Message-ID-Hash: ABZVGVKJNEUERFKCTCPGB3HW3BTAE65Z
X-Message-ID-Hash: ABZVGVKJNEUERFKCTCPGB3HW3BTAE65Z
X-MailFrom: anders.rundgren.net@gmail.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/dElhKlEm8juvxTA6vKpjpy4wfeo>
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 2024-06-17 11:23, Wolf McNally wrote: > 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. I know that. Nowadays. > The motivation for numeric reduction is: to give the most common types of numeric values a *deterministic* serialization. > > That’s it. Not really, this is obviously a sore point since nobody else have questioned my claim that numeric reduction in itself [*] is not more deterministic than the scheme used by CDE. Anders *] Disregarding any external factors, JSON compatibility, or API considerations. > > 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