News for hackers. Stuff that matters.
Re:Varlink – IPC to replace D-Bus gradually in systemd by Joker_vD on Monday September 30, 2024 @10:58AM (#41697932)
And JSON, technically, allows use of unlimited-precision fractions, but also allows implementations to set arbitrary limits (it actually does, you're not required to parse JSON numbers as doubles). So the situation is not really different from CBOR, isn't it? Just™ make both sides to agree to stick to some common subset (e.g. integers-in-int64_t-range-only for some fields) and you're done; no need to support double-precision floating point numbers.
Re:Varlink – IPC to replace D-Bus gradually in systemd by packetlost on Monday September 30, 2024 @11:19AM (#41698180)
Huh, I went and referenced the ECMA JSON spec and you're right that it treats numbers only as sequences of digits which would make these effectively the same problem