Re:Pkl, a Programming Language for Configuration
by maximus-decimus on Saturday February 03, 2024 @11:21AM
(#39241774)
Because with a real programming language you get an actual IDE, auto complete, a debugger, sane compiler errors instead of a vague helm error "invalid thingy at line 4", you can log a bad config the same way you log stuff for the rest of your program and you can't guarantee your config is valid anyway if your config language can't see what class you're going to feed it to.
[ Parent
| on HN ]
Re:Pkl, a Programming Language for Configuration
by avianlyric on Saturday February 03, 2024 @11:34AM
(#39241898)
That’s a consequence of configuration languages not have proper type systems, and robust was to manipulate data.
Helm isn’t a configuration language, it’s a dressed up string templating system with ability to do kubectl apply.
> you can't guarantee your config is valid anyway if your config language can't see what class you're going to feed it to.
Obviously, but that’s hardly an insurmountable problem. We’ve had code gen and language introspection for decades.
Re:Pkl, a Programming Language for Configuration
by Too on Sunday February 04, 2024 @01:34AM
(#39248117)
Helm is not a proper configuration language. It just does string replace. Unbelievable that people actually use it.
A config language that does have the type information can give proper errors. Try for example terraform.