News for hackers. Stuff that matters.
Re:New better alterative to XML, JSON and YAML by lifthrasiir on Wednesday November 06, 2024 @09:27PM (#42072670)
Almost no serialization format is canonical by default---AFAIK bencode was the sole example that mandates the canonicalization. Instead, a canonical subset of the format is usually defined, which would of course exclude comments, unless comments themselves are considered semantic like XML. Yes, even XML has a canonical subset [1]!

[1] https://www.w3.org/TR/xml-c14n/

Re:New better alterative to XML, JSON and YAML by GeneThomas on Thursday November 07, 2024 @08:44PM (#42083279)
There is the concept of “well formed xᴇɴᴏɴ” as outputted by the ᴅᴏᴍ and serializer which is deterministic as will suffice for canonicalization.