Yglu: YAML augmented with an expression language
1–10 of 31 posts
Re: Yglu: YAML augmented with an expression language
#2In my experience also, YAML is already too feature-laden for it's own good in this regard, when what people usually want is just a more human-readable JSON.
Using Yglu for config seems like a bad idea (the whole point of config is that it's not code!) - so what is it for?
Re: Yglu: YAML augmented with an expression language
#3Re: Yglu: YAML augmented with an expression language
#4Worth reading this if you are considering using it: https://www.arp242.net/yaml-config.html
Re: Yglu: YAML augmented with an expression language
#5What is this for? YAML in my experience is used for writing and maintaining config at some supposed sweet-spot between human-readable and machine-readable structure. In my experience also, YAML is already too feature-laden for it's own good in this regard, when what people usually want is just a more human-readable JSON. Using Yglu for config seems like a bad idea (the whole point of config is that it's not code!) -…
Re: Yglu: YAML augmented with an expression language
#6What is this for? YAML in my experience is used for writing and maintaining config at some supposed sweet-spot between human-readable and machine-readable structure. In my experience also, YAML is already too feature-laden for it's own good in this regard, when what people usually want is just a more human-readable JSON. Using Yglu for config seems like a bad idea (the whole point of config is that it's not code!) -…
For large, repetitive configurations (Kubernetes configs, CloudFormation templates, CI job configurations, etc) you often want ways to abstract and/or DRY your configurations. Kubernetes folks use mustache/jinja/Go templates via Helm, which is a real mess. CloudFormation builds its own (shitty) evaluation language on top of YAML. This presumably aims to improve on those sort of hacky solutions. I feel strongly that t…
Re: Yglu: YAML augmented with an expression language
#7Re: Yglu: YAML augmented with an expression language
#8Congratulations, you just overengineered a data format.
Re: Yglu: YAML augmented with an expression language
#9Dhall[1] is a similar concept, though instead of augmenting a particular format, it is an implementation of a simple pure functional programming language (with a very expressive type system which guarantees termination). Dhall programs can then be evaluated to several different formats (currently JSON, YAML and XML). [1]: https://dhall-lang.org/