News for hackers. Stuff that matters.
Re:Varlink – IPC to replace D-Bus gradually in systemd by GrayShade on Sunday September 29, 2024 @02:46PM (#41689456)
Qt refused for almost a decade to support deserializing 64-bit integers from JSON because of compatibility concerns.
Re:Varlink – IPC to replace D-Bus gradually in systemd by Spivak on Sunday September 29, 2024 @03:31PM (#41689748)
jq couldn't handle them until relatively recently. This isn't a few bad parsers. You can't assume a json parser will handle bigints correctly and when you're angling to be low-level plumbing and work with every language and software that hasn't been recompiled in years you have to be pretty conservative in what you send.
Re:Varlink – IPC to replace D-Bus gradually in systemd by capitainenemo on Sunday September 29, 2024 @07:23PM (#41691792)
Yeah, and it isn't like jq is being incorrect in this, the JSON RFCs recommend not using values that can't be represented as a 64 bit float (pasted links to a few RFCs in another response). So if you want to represent a large number safely, better to put it in a string, where special handling can be done after the initial JSON parse without loss of information.
Re:Varlink – IPC to replace D-Bus gradually in systemd by GrayShade on Saturday October 12, 2024 @03:17AM (#41817094)
No, it doesn't. It's not a SHOULD.

And why should Qt be concerned with what jq can or can't do? If you're writing and reading back from Qt, the limitations of other implementations don't apply.