4 ms·
> Two examples: XML and JSON are bad re-inventions of S-expressions. What? This sounds like you read something that was true but you’ve misunderstood and regur
by peteretep 6y ago
> Two examples: XML and JSON are bad re-inventions of S-expressions.
What? This sounds like you read something that was true but you’ve misunderstood and regurgitated.
XML is absolutely S-expressions, JSON is absolutely not. How in the heck is JSON a reinvention of an S-expression?
- lisper 6y agoHow is it not? Both are serialization formats for trees with strings and numbers at the leaves.
- peteretep 6y agoIs there a serialization format you don't consider to be a bad re-invention of S-expressions?
- lisper 6y agoOf course. There are many. Any binary format. Any ASN.1 format. DEF and LEF for hardware descriptions. The output of mysqldump. Here's another example: https://github.com/rongarret/tweetnacl/blob/master/ratchet.lisp https://github.com/rongarret/tweetnacl/blob/master/ratchet.l... starting at line 82. (That's one that I designed.)
- deleted 6y ago[deleted]
- konjin 6y ago>XML is absolutely S-expressions You need a lot of predefined structure to capture attributes using brackets, much more than you do for dictionaries - which are just ordered pairs in a list when serialized.