Re: [Cbor] Implementing float->int numeric reduction
Wolf McNally <wolf@wolfmcnally.com> Wed, 16 August 2023 06:02 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 1207BC14CE51 for <cbor@ietfa.amsl.com>; Tue, 15 Aug 2023 23:02:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level:
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, 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, 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=wolfmcnally-com.20221208.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 rvjE2me0KeRr for <cbor@ietfa.amsl.com>; Tue, 15 Aug 2023 23:02:46 -0700 (PDT)
Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) (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 3DC1AC14CF13 for <cbor@ietf.org>; Tue, 15 Aug 2023 23:02:46 -0700 (PDT)
Received: by mail-pg1-x535.google.com with SMTP id 41be03b00d2f7-53fbf2c42bfso4585175a12.3 for <cbor@ietf.org>; Tue, 15 Aug 2023 23:02:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfmcnally-com.20221208.gappssmtp.com; s=20221208; t=1692165765; x=1692770565; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=jnPqJjYr9EGAGperHLzP0i3J0IqC8OzY4YEs8+3I2Ks=; b=PQTg8/ZruUiNWaJRhAM6tvfgAiUc1syKqKq22++ljbn8lVYh2Pj+gCHlOgGy9MiYcq UA8GV0gJd9P13+nril0PIKXNRhlVIeFiZmPwNWN6ljpZXn2Zu1W66Qej9O+wk2PlotNW HCDQErmwutLTtg6deI4lnVN5X7wyy+m4lhb7VXYYwQh1qhSG5+Ln77OwwxhsfKSsM/rJ FaRKqHGVBL1xFocR11olSlwB0hwjY7osDRzzY4Sc8XYQh6hOLrlp/OGB/Ys3NxVD7myU RpGiaPmfcJzEMTTU1bZKitIJ/kfHK39MJptS7/nWiHdAbyJfHQlSaUrX0GI40XIMKqYG 94cw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692165765; x=1692770565; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jnPqJjYr9EGAGperHLzP0i3J0IqC8OzY4YEs8+3I2Ks=; b=FHyAZyp3L+JUu6WAlpPvWS4CL2bwVOcSsbfTTNEMfUnvLFKMTDvpDek761muW6Hq1a soWAnxnl07oE0Y2QpBWP0AFaEELDHaAIRkhHm0qQwGLzWXbaCud0FHl2iIClelmTBVDt xBfN7hXnr6CWK3iF0w3oZzmZQUtL7Iq2tICDzGJ5qnnquE/ZGMLpGdV+I+CBWV8dAJOM 9bBvvy0pamc+BgcyeG/1zFE35H2/oAxanX5hHBTIS0kopDUpa2F3Q8hP5Tkpy61j1L0r k9jx3m6D3bV+042rx61x2WV1+4XH3pkPf5PAUigE6hNPQsrs0AEb6BrWqjz37WWmtECV JYkg==
X-Gm-Message-State: AOJu0Yyek3LxNwtSj8z8LhzBNBivCcCsAPtLsS1eh6LIsoeS9F2ltnEY veAqJYeysID7HQ6pcdKa9jCb9Q==
X-Google-Smtp-Source: AGHT+IHU4uygf8h4zJhPPnbM1hJoXeAz0L9k+61AUkHJ1/hMjZggES5OEa2P+3M0ZkaRjKoujl76ng==
X-Received: by 2002:a05:6a20:13c4:b0:13f:5234:24ce with SMTP id ho4-20020a056a2013c400b0013f523424cemr1236172pzc.28.1692165765493; Tue, 15 Aug 2023 23:02:45 -0700 (PDT)
Received: from smtpclient.apple (ip70-180-193-108.lv.lv.cox.net. [70.180.193.108]) by smtp.gmail.com with ESMTPSA id m26-20020a056a00165a00b006874a6850e9sm10301425pfc.215.2023.08.15.23.02.44 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Aug 2023 23:02:45 -0700 (PDT)
From: Wolf McNally <wolf@wolfmcnally.com>
Message-Id: <8E24A9E2-8563-458E-88D8-C60423118824@wolfmcnally.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_C0984EDC-8778-4DB6-97A1-16448DEC2BD2"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\))
Date: Tue, 15 Aug 2023 23:02:33 -0700
In-Reply-To: <f5425e41-6cf8-16b7-0ba8-492c67e3d8b0@gmail.com>
Cc: "lgl island-resort.com" <lgl@island-resort.com>, "cbor@ietf.org" <cbor@ietf.org>, Shannon Appelcline <shannon.appelcline@gmail.com>, Christopher Allen <christophera@lifewithalacrity.com>
To: Anders Rundgren <anders.rundgren.net@gmail.com>
References: <0EBCC710-F7BA-474E-8A6D-D67015FD5EC7@island-resort.com> <dd9bc427-31a7-6d51-2fb1-d02e1b2824ff@gmail.com> <BEAFD785-D282-4C5C-AA7D-FB36970D09D1@island-resort.com> <0B6C4756-6C69-4F66-9B5F-CD5B7A1CB9FA@wolfmcnally.com> <f70f44eb-111c-b1c7-00b5-c9e99af5e88a@gmail.com> <C6D174CC-4ECC-433F-AF16-4FBED1C644EB@wolfmcnally.com> <f5425e41-6cf8-16b7-0ba8-492c67e3d8b0@gmail.com>
X-Mailer: Apple Mail (2.3731.700.6)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/aRas5mE_MYvWr9v638vou_fhapE>
Subject: Re: [Cbor] Implementing float->int numeric reduction
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: Wed, 16 Aug 2023 06:02:50 -0000
Anders, > On Aug 15, 2023, at 8:38 PM, Anders Rundgren <anders.rundgren.net@gmail.com> wrote: > > On the encoding level I don't find it logical or useful handling a probably rather small set of floating point data differently than the rest. Am I correct that JCS, of which you are the first author, re-encodes “0.0” as “0”? By your own statement to do so is neither “logical” nor “useful”. So why did you bother? Why did you not just “let floats be floats”? https://datatracker.ietf.org/doc/html/rfc8785#name-serialization-of-numbers ~ Wolf
- [Cbor] Implementing float->int numeric reduction lgl island-resort.com
- Re: [Cbor] Implementing float->int numeric reduct… Anders Rundgren
- Re: [Cbor] Implementing float->int numeric reduct… lgl island-resort.com
- Re: [Cbor] Implementing float->int numeric reduct… Carsten Bormann
- Re: [Cbor] Implementing float->int numeric reduct… Carsten Bormann
- Re: [Cbor] Implementing float->int numeric reduct… Anders Rundgren
- Re: [Cbor] Implementing float->int numeric reduct… Wolf McNally
- Re: [Cbor] Implementing float->int numeric reduct… Anders Rundgren
- Re: [Cbor] Implementing float->int numeric reduct… Wolf McNally
- Re: [Cbor] Implementing float->int numeric reduct… Anders Rundgren
- Re: [Cbor] Implementing float->int numeric reduct… Wolf McNally
- Re: [Cbor] Implementing float->int numeric reduct… Anders Rundgren
- Re: [Cbor] Implementing float->int numeric reduct… Carsten Bormann
- Re: [Cbor] Implementing float->int numeric reduct… Wolf McNally
- Re: [Cbor] Implementing float->int numeric reduct… Anders Rundgren
- Re: [Cbor] Implementing float->int numeric reduct… Carsten Bormann
- Re: [Cbor] Implementing float->int numeric reduct… Carsten Bormann
- Re: [Cbor] Implementing float->int numeric reduct… Anders Rundgren
- Re: [Cbor] Implementing float->int numeric reduct… Carsten Bormann
- Re: [Cbor] Implementing float->int numeric reduct… Anders Rundgren
- Re: [Cbor] Implementing float->int numeric reduct… Carsten Bormann
- Re: [Cbor] Implementing float->int numeric reduct… Anders Rundgren
- Re: [Cbor] Implementing float->int numeric reduct… Anders Rundgren
- Re: [Cbor] Implementing float->int numeric reduct… Carsten Bormann
- Re: [Cbor] Implementing float->int numeric reduct… Anders Rundgren
- Re: [Cbor] Implementing float->int numeric reduct… Carsten Bormann
- Re: [Cbor] Implementing float->int numeric reduct… Anders Rundgren
- Re: [Cbor] Implementing float->int numeric reduct… Carsten Bormann
- Re: [Cbor] Implementing float->int numeric reduct… lgl island-resort.com
- Re: [Cbor] Implementing float->int numeric reduct… Wolf McNally
- Re: [Cbor] Implementing float->int numeric reduct… Wolf McNally
- Re: [Cbor] Implementing float->int numeric reduct… lgl island-resort.com
- Re: [Cbor] Implementing float->int numeric reduct… Wolf McNally
- Re: [Cbor] Implementing float->int numeric reduct… Anders Rundgren
- Re: [Cbor] Implementing float->int numeric reduct… Carsten Bormann
- [Cbor] The three horses (Re: Implementing float->… Carsten Bormann
- Re: [Cbor] The three horses (Re: Implementing flo… Anders Rundgren
- Re: [Cbor] Implementing float->int numeric reduct… Anders Rundgren
- Re: [Cbor] Implementing float->int numeric reduct… Wolf McNally
- Re: [Cbor] Implementing float->int numeric reduct… Anders Rundgren
- Re: [Cbor] Implementing float->int numeric reduct… Wolf McNally
- Re: [Cbor] Implementing float->int numeric reduct… Anders Rundgren
- Re: [Cbor] Implementing float->int numeric reduct… Carsten Bormann
- [Cbor] bignums, 65-bit integer. Re: Implementing … Anders Rundgren
- Re: [Cbor] bignums, 65-bit integer. Re: Implement… Wolf McNally
- Re: [Cbor] bignums, 65-bit integer. Re: Implement… Anders Rundgren
- Re: [Cbor] bignums, 65-bit integer. Re: Implement… Wolf McNally
- Re: [Cbor] bignums, 65-bit integer. Re: Implement… Anders Rundgren
- Re: [Cbor] bignums, 65-bit integer. Re: Implement… Anders Rundgren
- Re: [Cbor] bignums, 65-bit integer. Re: Implement… Carsten Bormann
- Re: [Cbor] bignums, 65-bit integer. Re: Implement… Anders Rundgren
- Re: [Cbor] The three horses (Re: Implementing flo… Joe Hildebrand
- Re: [Cbor] bignums, 65-bit integer. Re: Implement… Carsten Bormann
- Re: [Cbor] bignums, 65-bit integer. Re: Implement… Anders Rundgren
- Re: [Cbor] Implementing float->int numeric reduct… Thiago Macieira
- Re: [Cbor] bignums, 65-bit integer. Re: Implement… Carsten Bormann
- Re: [Cbor] bignums, 65-bit integer. Re: Implement… Anders Rundgren
- Re: [Cbor] Implementing float->int numeric reduct… Carsten Bormann
- Re: [Cbor] The three horses (Re: Implementing flo… Anders Rundgren
- Re: [Cbor] bignums, 65-bit integer. Re: Implement… Carsten Bormann
- Re: [Cbor] Implementing float->int numeric reduct… Thiago Macieira
- Re: [Cbor] Implementing float->int numeric reduct… lgl island-resort.com
- Re: [Cbor] Implementing float->int numeric reduct… Wolf McNally
- Re: [Cbor] Implementing float->int numeric reduct… Anders Rundgren
- Re: [Cbor] Implementing float->int numeric reduct… Anders Rundgren
- Re: [Cbor] Implementing float->int numeric reduct… Wolf McNally
- Re: [Cbor] Implementing float->int numeric reduct… Anders Rundgren
- Re: [Cbor] Implementing float->int numeric reduct… lgl island-resort.com
- Re: [Cbor] Implementing float->int numeric reduct… Thiago Macieira