News for hackers. Stuff that matters.
Re:JsonLogic by goodpoint on Thursday May 27, 2021 @04:24PM (#27307912)
This. Once a document is big or complex enough, the benefit of human readability fades away and you are left with a brittle and very slow serialization format.
Re:JsonLogic by fastball on Thursday May 27, 2021 @04:36PM (#27308111)
How much slower is JSON serialization than XML serialization?
Re:JsonLogic by goodpoint on Thursday May 27, 2021 @05:37PM (#27308879)
Roughly in the same order of magnitude, depending on the implementation.

Light-years away from zero-copy serialization formats.

See https://en.wikipedia.org/wiki/Comparison_of_data-serializati...

Random example: https://google.github.io/flatbuffers/md__benchmarks.html

Speed is not everything: being able to self-describe data structures (without the data) enables generation of parsers, documentation and tests.

Streaming support also matters.

Re:JsonLogic by deathanatos on Thursday May 27, 2021 @08:51PM (#27310529)
It's not. The grammar for JSON is vastly simpler than XML.

(I'm certain one can find a slow JSON serializer out performed by a fast XML serializer, but that's not the point.)