News for hackers. Stuff that matters.
Re:Typed Config Languages by tromp on Friday January 21, 2022 @03:01PM (#30029169)
Dhall [1] [2] looks promising to me.

[1] http://dhall-lang.org/

[2] https://github.com/dhall-lang/dhall-lang

Re:Typed Config Languages by mplanchard on Friday January 21, 2022 @07:46PM (#30031900)
We have a little dhall at work. We use it to generate JSON dynamically from env vars. The tooling is great, and the error messages are great. It’s a bit “functional”, so it will strike some as unfamiliar, but I have really liked using it so far. We will probably extend our use of it to generate json schema documents, since it allows us much better code commenting and structure reuse, even across files.
Re:Typed Config Languages by corysama on Friday January 21, 2022 @04:03PM (#30029958)
Does anyone know if using Dhall to generate JSON that is validated using Cue a sensical idea? I don't know enough about them to be sure.
Re:Typed Config Languages by kevinmgranger on Friday January 21, 2022 @04:15PM (#30030100)
dhall serves as the validation layer itself.

Unless you're already consuming some other API that publishes Cue validation, in which case dhall is just the templating language.