6 ms·
People put so much effort into streaming Json parsing whereas we have a format called Yaml which takes up less characters on the wire and happens to work increm
by tarasglek 1y ago
People put so much effort into streaming Json parsing whereas we have a format called Yaml which takes up less characters on the wire and happens to work incrementally out of the box meaning that you can reparse the stream as it's coming in without having to actually do any incremental parsing
- motorest 1y ago> People put so much effort into streaming Json parsing whereas we have a format called (...) There are many formats out there. If payload size is a concern, everyone is far better off enabling HTTP response compression instead of onboarding a flavor-of-the-month language.
- croes 1y agoYAML is more complex and harder to parse
- rk06 1y agoYaml makes json appear user friendly by comparison. Last thing one want in a wire format is white space sensitivity and ambiguous syntax. Besides, if you are really transferring that much json data, there are ways to achieve it that solves the issues
- filoeleven 1y agoIf we're talking about niche data protocols, edn is hard to beat. Real dates and timestamps and comments, namespaced symbols, tagged elements, oh my! https://github.com/edn-format/edn https://github.com/edn-format/edn