6 ms·
They handled the complex config in an interesting way. I'm taking a look at Dhall for a real use case at work recently, and thinking it might be able to handle
by yawaramin 6y ago
They handled the complex config in an interesting way. I'm taking a look at Dhall for a real use case at work recently, and thinking it might be able to handle a lot of complex config scenarios. I guess that remains to be proven out.
- dilyevsky 6y agoIf you’re looking at other solutions check out https://github.com/stripe/skycfg https://github.com/stripe/skycfg It works with Envoy and lots of other things that support protobuf configs
- yawaramin 6y agoFor the time being I'm targeting YAML and JSON, so satisfied with the feature set that Dhall is offering.
- dilyevsky 6y agoEasy to render output as either and bonus is if you know Python, Starlark is very similar
- yawaramin 6y agoI checked it out, but it's not obvious to me how to target YAML or JSON using it. In contrast, the first use case the Dhall homepage is how to convert to YAML. There are other things Dhall makes obvious, like how to create a record type to target specific YAML/JSON constructs, with type-checking. Also I prefer Dhall's evaluation model (all values are at collapsed at compile time into a single output value with no side effects) to Starlark's full-fledged 'runnable' model, e.g. with the 'print' function I can print out anything I like, including possibly secrets and passwords. This is impossible with Dhall. That said, I do wish that Dhall had something closer to Starlark's syntax and better type inference :-)