[Atp] Float support in data model
Volker Mische <volker.mische@gmail.com> Tue, 30 June 2026 12:13 UTC
Return-Path: <volker.mische@gmail.com>
X-Original-To: atp@mail2.ietf.org
Delivered-To: atp@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 7766110AB2CAC for <atp@mail2.ietf.org>; Tue, 30 Jun 2026 05:13:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1782821588; bh=iFrA1n5H9ikrw2ukcycqs2cmk2+6vXwHDuDbuouHB7Q=; h=Date:To:From:Subject; b=wHbAOIqByJbAJDG50Ie0FPi07Imv+uMae7pCyZpCFXLqxM9nxWcTkD9vZtGSS+4zt vUEChJskZpIDORSP7BSji8EdPnlwZE90/TYVKOs3rJU8ZtE1g+sWymdcOQucP1m1/d yXa0RHZjRH+FCVkajWIuLvt6BJIhmfVOE5tDyss0=
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 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_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uWJgtw3XZsSg for <atp@mail2.ietf.org>; Tue, 30 Jun 2026 05:13:08 -0700 (PDT)
Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) (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 mail2.ietf.org (Postfix) with ESMTPS id 0732610AB2CA6 for <atp@ietf.org>; Tue, 30 Jun 2026 05:13:08 -0700 (PDT)
Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-49395888c7bso39361345e9.0 for <atp@ietf.org>; Tue, 30 Jun 2026 05:13:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782821580; x=1783426380; darn=ietf.org; h=content-transfer-encoding:subject:from:content-language:to :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=kELQSeZTz8qutOGgtDNmEJSKG1/7CzmS2yse45vIh6Y=; b=Et6bLJ+Cs/gSyyTus8e8Am1qAHkKqmk3Y905mGrCrpRrPWAue/QCrzvsDU9OAY1rkM f0UcW8XwshR+A0Wush+9QV4zD6R9fUevfJipxaF5WOMSc9Ahsnj/fkhclsqEOTGQMYkq Ydx3+8Hc2kD4+CbDR2BCdnAxSGymdfd4+MMp8u3EtkAlWDFs5Sd9OcK9yOHozVOrvIFW Sz7pAAIvd3Rm9ZoQ6GTK+A1GB0yVJ1lAxCj1OVVy4pGJ4NYbslGFzRx/k1pEgFyl4jcd rpmZNN1J+pkZt4nHU1pkyrkXRSXFB7fi56QTsrcfOw3dTPse86exFapp9stqyYvwk9aO R6Jw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782821580; x=1783426380; h=content-transfer-encoding:subject:from:content-language:to :user-agent:mime-version:date:message-id:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=kELQSeZTz8qutOGgtDNmEJSKG1/7CzmS2yse45vIh6Y=; b=Kq0m6b8UnP4MhG9tAjldrx74rlqeF1XbJoxANja7ye5OPyhF48bUHQkNIsMK1ZcD5T Qwg/x0Zj53nbDX3KJvtbEsvKqKGrN9QGB2rm2ikj69d7NIdNgGkjS1hjayNz94QbDW0R U39TFeuqsm3HTXaePm9EyvfaKi9LpRHmCkib0TP/OpvGhXAkrHszITUe7Dn1Tdjn9Ez0 kCZPUBZUMu56x8+02VWnPQVOCoMVYvdwPd5/AOPt8BAKceu0QNE6+HpmyaGE0mt9Wt0v A4CFtpok6JpcEabrFHt8r/PKaTE6n977yX9q3UbZ0Q6zl5dZiGDhpVIcxz2cxEyIoHKK 9Xqg==
X-Gm-Message-State: AOJu0Yz2QO5L7/fiyk25c7BuJy6DyobFAy1+7pbn8pCgpve28iKiB+DN ImA9OUYnpRIWywrQ/KuNL6LK40CBff0RHl32dgRCxn/2xzr4ZcNUAfyRFQwGZA==
X-Gm-Gg: AfdE7ckCY2xlvrv6tBn/e0u2kLZDUsWmcgyC6c8M6oPT7xeFIJ9IDy1Ah4ME2LEnY0z 2UDkKqJthtQI0kbC2/LwybK+EEJjXyapLBsQOJnvB4YBNULu/2npiiyHL1s/6zRImF6de/n3k8C cAr3C3mH1l5IM/40074hEXLa9aaZRiIhT10Pg9klZwsPVc5eTWKak1um0jrMXLcwjlbxMT2t5/6 Rv7rfwgZ0gT0/Ar/vkMsY1wyFSDl748x35oJ8zEKiwiSuBE+L7HGPVCrTzzlnDzuQAnigop1v53 4t7OEUByjmvbEbzq1BWUg4p5HGpu3rotX0c2V/1l6BiWEv9WSRmaZqTosMJKyD89D47yx5GPOGC 1BUAnA4biiHuSjLvoOVfQf2FqGNxJPWY7/+sE+9CA3e9jjveDB/Pwos2SlBbkwcZAJcy4bvPECR 5L6fKildYZ/8xnalv30s+M
X-Received: by 2002:a05:600c:5487:b0:492:4e09:9fc1 with SMTP id 5b1f17b1804b1-493bda6fce0mr6089975e9.15.1782821580326; Tue, 30 Jun 2026 05:13:00 -0700 (PDT)
Received: from [192.168.0.11] ([188.193.128.91]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47563d194b0sm7755577f8f.1.2026.06.30.05.12.59 for <atp@ietf.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Jun 2026 05:12:59 -0700 (PDT)
Message-ID: <df0ea578-6b20-4b7d-8fd6-1848e9039554@gmail.com>
Date: Tue, 30 Jun 2026 14:12:58 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: atp@ietf.org
Content-Language: en-US
From: Volker Mische <volker.mische@gmail.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Message-ID-Hash: XN7NZ7I4WFAYK7UII74VMR2BY56KZB7B
X-Message-ID-Hash: XN7NZ7I4WFAYK7UII74VMR2BY56KZB7B
X-MailFrom: volker.mische@gmail.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [Atp] Float support in data model
List-Id: Authenticated Transfer <atp.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/atp/lPO3izzxH6PLXsa2etwRkMf3fe8>
List-Archive: <https://mailarchive.ietf.org/arch/browse/atp>
List-Help: <mailto:atp-request@ietf.org?subject=help>
List-Owner: <mailto:atp-owner@ietf.org>
List-Post: <mailto:atp@ietf.org>
List-Subscribe: <mailto:atp-join@ietf.org>
List-Unsubscribe: <mailto:atp-leave@ietf.org>
Hi all, the data model in the current repository draft [1] is very similar to JSON's, extending it with content hash links and byte string values. Though it's currently missing floating-point number support. I think this gap should be filled so that all data representable as JSON can also be stored within an ATP repository. There are well-established JSON-based formats like GeoJSON [2] that couldn't be stored today. These can be encoded in CBOR as IEEE 754 Double-Precision Float under major type 7 [3], while excluding all non-finite numbers such as +-NaN, +-Infinity and also -0.0, for maximal determinism. For a lossless mapping to JSON, a convention common across programming languages [4] [5] can be used: a JSON number consisting only of digits and an optional sign is an integer, while any other number (i.e. one with a decimal point and/or an exponent) is a float. Cheers, Volker [1]: https://www.ietf.org/archive/id/draft-holmgren-at-repository-02.html#name-data-model [2]: https://datatracker.ietf.org/doc/html/rfc7946 [3]: https://datatracker.ietf.org/doc/html/rfc8949 [4]: https://vmx.cx/cgi-bin/blog/index.cgi/json-floats-programming-languages.md%3A2026-06-29%3Aen%2CATProto [5]: https://github.com/vmx/json-floats-native-types
- [Atp] Float support in data model Volker Mische
- [Atp] Re: Float support in data model Ryan Barrett
- [Atp] Re: Float support in data model Boris Mann
- [Atp] Re: Float support in data model Bryan Newbold
- [Atp] Re: Float support in data model Volker Mische
- [Atp] Re: Float support in data model Eli Mallon
- [Atp] Re: Float support in data model Willem Dantuma
- [Atp] Re: Float support in data model Meredith Espinosa
- [Atp] Re: Float support in data model Volker Mische