Hacker News new | ask | show | jobs
by nvme0n1p1 50 days ago
Even if you're all in on AI, it's still not a great situation. Do you want your agent to burn 10000 tokens fixing indentation bugs every time it touches a helm chart?

What takes effort for humans, takes effort for AI too.

And yeah, HCL was a horrible design. Anything else would have been better, Cue, jsonnet, dhall, pkl, etc. (I'm not sure which of those existed when HCL was created.)

2 comments

HCL solves the problem of unknown values. It's certainly not a "horrible design" unless you're trying to compare it to something that does a different job.

For a single source of truth for YAML/JSON such as for Kubernetes manifests, any of the ones you list are fine though and a vast improvement on using Go templates for it.

(Yes I've used all of them - and indeed did the first public talk about Pkl two days after it was open-sourced, after several years of using it internally at Apple).

> Do you want your agent to burn 10000 tokens fixing indentation bugs every time it touches a helm chart?

If your agent is doing this you need to get a much better agent. It should call `helm lint` to find those errors.

Helm lint will only find problems with whatever text is supplied to the Helm chart. It will not catch a large hunk of the class of errors being discussed here. There is plenty of scenarios that are valid Helm that are still invalid to be supplied to a cluster.
I was responding specifically to finding indentation errors. Most of the class of errors you mentioned can only be validated by attempting to apply the manifest to a live cluster running the target API version anyway.