Re: [Cbor] (d)CBOR session at IETF 118
Anders Rundgren <anders.rundgren.net@gmail.com> Sun, 05 November 2023 20:25 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 48661C31A60C for <cbor@ietfa.amsl.com>; Sun, 5 Nov 2023 12:25:31 -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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_BLOCKED=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, 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=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 14tg3jR-TWx8 for <cbor@ietfa.amsl.com>; Sun, 5 Nov 2023 12:25:26 -0800 (PST)
Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) (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 DF782C1D2D6B for <cbor@ietf.org>; Sun, 5 Nov 2023 12:25:26 -0800 (PST)
Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2c5b7764016so51455141fa.1 for <cbor@ietf.org>; Sun, 05 Nov 2023 12:25:26 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699215924; x=1699820724; darn=ietf.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=4d2SJRPeFB1mf4TpbCexaYGs+RljJAEuEgFrLHHcawM=; b=NXzDNCV8V02GQ11VM5f6qsSX+A7UTZfvHJ1v/ICF9/CKVymekAHz1qf0dwm2VkHUXv oRMrxKUg9eTd34TIlZzbRT+e3L2EQnOwFiNda6XdgU1Ub07sXw3E8Bo4dclPJQCIX8gS 8oRMyJSKyvhsSFTj5a0AcdZQkA2kwu1an9LLrZV/8XGHa8frDENy/GM3dkQKyXeqyw8z l+5Kp2W99RJT8VfgFBYGFibz4AYXzb9o/Jbd0CXqVzgzaqoEJEkPHq/YArJBgdicuEuD J5QXyWY2/0n8sORZrNAMc84QaRsvkUsOZ7BSUxyO6BMs/JUPGoa/GtoPEk3orH7Axofu oYMQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699215924; x=1699820724; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4d2SJRPeFB1mf4TpbCexaYGs+RljJAEuEgFrLHHcawM=; b=ht0g2EgZhJ5tx1Y3xnI57HWsIrWt/3jSbgSIq5Odgta9Ibvr5jAhKj/iywiJidLZCq dLhORqIbdrXbPkdw9qOZ0O4Rze78Nn5HN+mBvKHxXdBSKhpWoGRvIBL5y9gemdxyyHep lbdHhsHrojGpfxWuUiNDpJ010FwCqBZ6OcUEjbN/iAJO+y+mJSw2M1iSP7g9ip1ttWcv 4lsf2EOZzUxpcSv7xIDq/PHW8Mm9NqMMxr1mU4pImFjt4WdiGaHGOwzv2lcpUM4dZNpV zxISqS0BqMJWvHm/CiXT9esee0W4MGWFLpIvkrM6jO2u3C8g6b1+Yv87J/PepL+Yug/G uSTg==
X-Gm-Message-State: AOJu0YyfXXtCcLPuGOuU0HIa/A1KjkQyCMKGEtMPs3xYEogJsGmJRerm /zAa1a/xiN54tYqZ5Lw5tc0=
X-Google-Smtp-Source: AGHT+IExrjqr05aH7HRkCq006y05INWZ64z92BcEpIh0NSqSfcugj3jWqqT48N6Ma25VK7TVz8zNEQ==
X-Received: by 2002:a2e:8919:0:b0:2c5:18ed:1809 with SMTP id d25-20020a2e8919000000b002c518ed1809mr24836249lji.34.1699215924125; Sun, 05 Nov 2023 12:25:24 -0800 (PST)
Received: from ?IPV6:2a01:e34:ec4e:5670:8cda:4cf6:e441:e71? ([2a01:e34:ec4e:5670:8cda:4cf6:e441:e71]) by smtp.googlemail.com with ESMTPSA id i12-20020a05600c354c00b004042dbb8925sm9935670wmq.38.2023.11.05.12.25.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 05 Nov 2023 12:25:23 -0800 (PST)
Message-ID: <e0ae7c74-8b72-4c9b-8276-266248af40a3@gmail.com>
Date: Sun, 05 Nov 2023 21:25:23 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
To: Wolf McNally <wolf@wolfmcnally.com>
Cc: "cbor@ietf.org" <cbor@ietf.org>, Christopher Allen <christophera@lifewithalacrity.com>, Shannon Appelcline <shannon.appelcline@gmail.com>
References: <2723b032-189a-499e-b1d8-69a7dbe6b035@gmail.com> <1B2D045F-5BBD-464F-861B-44E855DE3654@wolfmcnally.com> <fd6ee82b-640f-4c7d-9e9c-cc7e868b8944@gmail.com> <8C0E6918-4AD4-4EF4-98F0-76BBD86D3495@wolfmcnally.com> <b7099c37-fe9a-44a4-ae2e-874f27e300e5@gmail.com> <8787A6D8-C336-4CB2-A933-5EA698BA3FA8@wolfmcnally.com> <3991f1e2-5885-45dd-b4c3-672e40e33587@gmail.com> <B38B3290-EB76-48DA-8556-500D3D16B8F7@wolfmcnally.com>
From: Anders Rundgren <anders.rundgren.net@gmail.com>
In-Reply-To: <B38B3290-EB76-48DA-8556-500D3D16B8F7@wolfmcnally.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/8WVvnNZrnzj1JEzV8ONMxh5yGT8>
Subject: Re: [Cbor] (d)CBOR session at IETF 118
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: Sun, 05 Nov 2023 20:25:31 -0000
On 2023-11-05 20:38, Wolf McNally wrote: > Anders, > >> On Nov 5, 2023, at 10:23 AM, Anders Rundgren <anders.rundgren.net@gmail.com> wrote: >> >> On 2023-11-05 18:19, Wolf McNally wrote: >>> As long as you continue to insist that this is all about *API* and refuse to acknowledge that this is about *determinism* throughout the entire stack, then you’re simply never going to understand our motivations. >>> >> >> Wolf, that's correct. I don't understand why dCBOR's determinism scheme must span over "the entire stack". Reading draft-05 didn't make me much wiser either :( > > The purpose of the present draft is not to justify the need for determinism any more than it needs to justify the need for structured data: this is generally accepted among many people for certain applications, and you yourself are one of the authors of the JSON Canonicalization Scheme, an actual RFC. So I should hardly have to justify determinism in general to you, nor should I have to justify determinism at the encoding level. > > https://www.rfc-editor.org/rfc/rfc8785 > > Our desire to facilitate determinism across the stack, starting with CBOR at the lowest level, has also been explained numerous times: for applications that require determinism (which is *not* most applications) facilitating it as much as possible at each semantic layer relieves protocol designers and implementers of cognitive burden by enforcing single-encoding-for-single-semantic. Doing that makes it easier to avoid errors in both specification and implementation, and hence facilitates separate agents converging on the same encoding (and hence the same hashes) for the same semantic content. > > You could absolutely make a byte buffer and write out every single byte, one by one, by hand, of a correct CBOR stream, or JSON document, or XML document: but why would you? Now include the requirement that multiple encoders should converge on outputs that produce the same hash. Why *wouldn’t* you facilitate this at every level, and in fact *bake it in* at the lowest levels? dCBOR does so, and all dCBOR is valid CBOR, so it is completely compatible with all CBOR implementations. Wolf, this was a lot! However, in what way (modulo the API issue for weakly typed languages), doesn't the above also apply to CDE? > A little more argumentum ad absurdum: Why would you have a data encoding standard that you’d promote as “deterministic" where the concept of “two” could be expressed by 2, 2.0, or “two”? According to CDE, integer 2, float 2.0, and string "two" represent distinct CBOR data items. As long as this convention is adhered to, determinism is achieved. Bi-directionality comes as a (wanted) side-effect. > I see you've made an appointment with me for a Zoom meeting on the 16th, so I look forward to discussing this with you further then. CU! Anders > > ~ Wolf
- [Cbor] (d)CBOR session at IETF 118 Anders Rundgren
- Re: [Cbor] (d)CBOR session at IETF 118 Wolf McNally
- Re: [Cbor] (d)CBOR session at IETF 118 Anders Rundgren
- Re: [Cbor] (d)CBOR session at IETF 118 Wolf McNally
- Re: [Cbor] (d)CBOR session at IETF 118 lgl island-resort.com
- Re: [Cbor] (d)CBOR session at IETF 118 Anders Rundgren
- Re: [Cbor] (d)CBOR session at IETF 118 Wolf McNally
- Re: [Cbor] (d)CBOR session at IETF 118 Anders Rundgren
- Re: [Cbor] (d)CBOR session at IETF 118 Wolf McNally
- Re: [Cbor] (d)CBOR session at IETF 118 Anders Rundgren
- Re: [Cbor] (d)CBOR session at IETF 118 Wolf McNally
- Re: [Cbor] (d)CBOR session at IETF 118 Anders Rundgren
- Re: [Cbor] (d)CBOR session at IETF 118 Wolf McNally
- Re: [Cbor] (d)CBOR session at IETF 118 Anders Rundgren
- Re: [Cbor] (d)CBOR session at IETF 118 Wolf McNally
- Re: [Cbor] (d)CBOR session at IETF 118 Anders Rundgren
- Re: [Cbor] (d)CBOR session at IETF 118 Wolf McNally
- Re: [Cbor] (d)CBOR session at IETF 118 Anders Rundgren
- Re: [Cbor] (d)CBOR session at IETF 118 Wolf McNally
- [Cbor] Summary of the thread "(d)CBOR session at … Christian Amsüss
- Re: [Cbor] Summary of the thread "(d)CBOR session… lgl island-resort.com
- Re: [Cbor] Summary of the thread "(d)CBOR session… Carsten Bormann
- Re: [Cbor] Summary of the thread "(d)CBOR session… lgl island-resort.com
- Re: [Cbor] Summary of the thread "(d)CBOR session… Carsten Bormann
- Re: [Cbor] Summary of the thread "(d)CBOR session… Wolf McNally