Live data from Hacker News

New better alterative to XML, JSON and YAML

xenondata.org

111–120 of 148 posts

Re: New better alterative to XML, JSON and YAML

#111

Earlier quoted context omitted.

I prefer jq.

I should have been clearer. jq is a programming language, but it's also a data language in that a) valid JSON is a valid jq program, b) you can construct JSON data trivially with jq. E.g., : ; jq -n ' .users[0].name="John" | .users[1].name="Jane" ' or : ; jq -n ' .users = [] | .users += [{}|.name = "John"] | .users += [{}|.name = "Jane"] ' but you can make it much much richer than that.

irrelevant

Re: New better alterative to XML, JSON and YAML

#112

Apple tried something similar https://pkl-lang.org/

Pkl belongs to a related but different category of "configuration" languages, while we are talking about a pure serialization format. A serialization format can be used as a configuration language if designed carefully, but they are distinct.

Xᴇɴᴏɴ excels at both.

Re: New better alterative to XML, JSON and YAML

#114
post #46

Earlier quoted context omitted.

It has ALL of the advantages of xᴍʟ.

The main advantages of XML (or any standard) is adoption and a wide ecosystem. Unfortunately that beats any "better" standards by a wide margin. One thing that is also really important is the ability to define a schema and be able to validate. See XML Schema, JSON Schema. This is a really tricky problem to get right. Especially if you try to do both with the same model (describing your data model and describing how i…

I conject that with programming languages that do not crash schemas used for validation are relatively unimportant. xᴍʟ schemas suffer from the fact that one can not specify that an element may only appear once.

Re: New better alterative to XML, JSON and YAML

#118

Earlier quoted context omitted.

That's very kind, but people doing the wrong thing with passion and energy is functionally worse than them not doing anything

I view this as harmless at worst and potentially inspirational at best. And the author has learned a lot as well.

[deleted]

Re: New better alterative to XML, JSON and YAML

#119

Earlier quoted context omitted.

Pkl belongs to a related but different category of "configuration" languages, while we are talking about a pure serialization format. A serialization format can be used as a configuration language if designed carefully, but they are distinct.

Xᴇɴᴏɴ excels at both.

Please refrain from replying the same thing over and over, especially to obviously sidetracked comments.
Post reply on HN