[HN Gopher] Pkl, a Programming Language for Configuration
___________________________________________________________________
Pkl, a Programming Language for Configuration
Author : bioballer
Score : 40 points
Date : 2024-02-02 19:22 UTC (3 hours ago)
(HTM) web link (pkl-lang.org)
(TXT) w3m dump (pkl-lang.org)
| bioballer wrote:
| Pkl is a new language for describing configuration. It blends
| together the declarative nature of static formats like YAML or
| JSON, with the expressiveness, safety, and tooling of a general
| purpose programming language.
| p10jkle wrote:
| I used this extensively when I worked at Apple and LOVED it. So
| excited that its finally out
| btmiller wrote:
| I was a big believer in Helm for generating Kubernetes resources
| until I looked up and saw that we had created an impossible-to-
| validate, impossible-to-reason-about DSL in our values.yaml and
| that's when I realized we were at the end of our rope with Helm.
| We switched to Pkl for our Kubernetes resource generation -- it's
| delightful to maintain and reason about our deployments _before_
| execution time :)
| wktmeow wrote:
| This is the use case I am most interested in as well,
| templating strings into yaml always felt super clunky to me.
| jaseemabid wrote:
| Pkl was one of the best internal tools at Apple, and it's so good
| to see it finally getting open sourced.
|
| My team migrated several kloc k8s configuration to pkl with great
| success. Internally we used to write alert definitions in pkl and
| it would generate configuration for 2 different monitoring tools,
| a pretty static documentation site and link it all together
| nicely.
|
| Would gladly recommend this to anyone and I'm excited to be able
| to use this again.
___________________________________________________________________
(page generated 2024-02-02 23:01 UTC)