Re:Varlink – IPC to replace D-Bus gradually in systemd
by quotemstr on Sunday September 29, 2024 @11:47PM
(#41693355)
JSON isn't simple. It's simplistic. It's too simple. By refusing to acknowledge the complexity of the real world at the protocol layer, varlink shifts the burden of dealing with the complexity from one transport layer to N ad hoc application layers, making us all worse off.
[ Parent
| on HN ]
Re:Varlink – IPC to replace D-Bus gradually in systemd
by Spivak on Monday September 30, 2024 @12:00AM
(#41693430)
Do you mean https://varlink.org/Interface-Definition? JSON is just the marshaling format. All the language bindings don't need a fancy parser outside of json.loads. I wish the interface definitions themselves had been specified in JSON as well.
Peep the Python interface parser: https://github.com/varlink/python/blob/master/varlink/scanne.... This is the quality you can expect for an ad-hoc format, which is to say, pretty bad. Making the hardest part farming out to a parsing library you already have and is a built-in in your language is a no-brainer choice.