Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Parsing JSON Is a Minefield (2016):

https://news.ycombinator.com/item?id=28826600


I 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


Crockford himself says JSON was not invented but rather discovered.


Didn’t know he did but it is somewhat obvious. Lispish roots of js do shine through sometimes


Syntax and data structures are very similar to LPC serialization. Obvious but very useful.

https://en.m.wikipedia.org/wiki/LPMud




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: