3 ms·
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 burde
by quotemstr 2y ago
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.
- Spivak 2y agoDo you mean https://varlink.org/Interface-Definition 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/scanner.py 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.
- foul 2y agoBeing simplistic is a leitmotiv of the project, at least someone in the post-GNOME cabal stopped reinventing the wheel.