News for hackers. Stuff that matters.
Re:XML is better than YAML by Ygg2 on Thursday September 21, 2023 @03:59AM (#37594548)
That's crazy talk. JSON is very simple. The irreducible complexity of JSON is lower than irreducible complexity of XML, and irreducible complexity of XML is lower than YAML.
Re:XML is better than YAML by wokkel on Thursday September 21, 2023 @05:17AM (#37595176)
Json is simple, but the common idiom is to read it al at once into memory and forget the difficult stuff (which encoding is this json in anyway). Then don't do the other difficult stuff (is this a string or a date type)... so it's faster (maybe) to parse but it doesn't scale for large datasets and your application will need additional deserialization logic. A broad sweeping performance statement like this is just spreading fud.
Re:XML is better than YAML by vaylian on Thursday September 21, 2023 @05:26AM (#37595236)
JSON is hardly very simple given that is a subset of JavaScript. There's also problems with different behaviors of JSON parsers: https://portswigger.net/daily-swig/research-how-json-parsers...
Re:XML is better than YAML by Ygg2 on Thursday September 21, 2023 @08:24AM (#37596580)
Consider that YAML is superset of JSON. Then realize any Yaml parser suffers from JSON faults+ YAML unique faults.