4 ms·
JSON was designed for machine readability, HCL was designed for human readability. HCL requires a lot more code to parse and many more resources to keep in mem
by gizdan 5y ago
JSON was designed for machine readability, HCL was designed for human readability.
HCL requires a lot more code to parse and many more resources to keep in memory vs JSON. I think it completely makes sense to do it this way. K8s is the same. On the server it does everything in JSON. Your YAML gets converted prior to sending to K8s.
- AzzieElbab 5y agoI don’t think Json was designed, it is just JavaScript objects plus Douglas Crockford spec. Having said that, HCL really doesn’t click with me
- rbonvall 5y agoCrockford himself says JSON was not invented but rather discovered.
- AzzieElbab 5y agoDidn’t know he did but it is somewhat obvious. Lispish roots of js do shine through sometimes
- _y5hn 5y agoSyntax and data structures are very similar to LPC serialization. Obvious but very useful. https://en.m.wikipedia.org/wiki/LPMud https://en.m.wikipedia.org/wiki/LPMud
- still_grokking 5y agoParsing JSON Is a Minefield (2016): https://news.ycombinator.com/item?id=28826600 https://news.ycombinator.com/item?id=28826600