News for hackers. Stuff that matters.
Re:Nomad vs. Kubernetes by gizdan on Friday October 15, 2021 @12:47PM (#28879875)
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.

Re:Nomad vs. Kubernetes by still_grokking on Friday October 15, 2021 @09:28PM (#28884869)
Parsing JSON Is a Minefield (2016):

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

Re:Nomad vs. Kubernetes by AzzieElbab on Friday October 15, 2021 @01:22PM (#28880313)
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
Re:Nomad vs. Kubernetes by rbonvall on Friday October 15, 2021 @01:46PM (#28880677)
Crockford himself says JSON was not invented but rather discovered.
Re:Nomad vs. Kubernetes by AzzieElbab on Friday October 15, 2021 @01:54PM (#28880773)
Didn’t know he did but it is somewhat obvious. Lispish roots of js do shine through sometimes
Re:Nomad vs. Kubernetes by loopz on Saturday October 16, 2021 @12:37AM (#28885585)
Syntax and data structures are very similar to LPC serialization. Obvious but very useful.

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