3 ms·
For comparison, YAML is 77 pages.
by kayodelycaon 2y ago
For comparison, YAML is 77 pages.
- saghm 2y agoYAML is a data serialization language that doesn't have any concept of "execution"; LSP needs to encode not just one full programming language semantics, but _arbitrary_ programming language semantics. YAML's spec being over 3/4 the size of LSP is a lot more damning to YAML to me.
- kayodelycaon 2y agoYAML is known to be incredibly complex and nuanced, which is why I choose it as a comparison. Also, 77 is 37% of 285.
- saghm 2y ago> Also, 77 is 37% of 285. Not sure why I misremembered the number of pages so inaccurately; I must have gotten so focused on the method/type numbers to the point of ignoring the page count I do think that "incredibly nuanced" is a relative term; it's nuanced and complex because it's competing in a space where the default option is JSON, which for all of its faults is extraordinarily simple. In my mind, a data format is just a set of "nouns", compared to a protocol which has to also define "verbs" alongside those nouns. It's not even comparing apples and oranges; it's comparing an apple with the act of growing an apple from a seed into a tree. Maybe I'm misunderstanding, and the YAML specification includes an API definition?
- kayodelycaon 2y agoI wasn’t trying for an orange to orange comparison. I assumed developer familiar with YAML would be able to make a rough guess how they compare. Maybe I’m assuming too much? I’ve read a lot of documentation. As a side note, YAML does have internal templating. You can give an object a name and use it elsewhere like a class. I think that feature makes it turning complete.