Re:What we learned after a year on Kubernetes
by eaceaser on Thursday September 17, 2020 @02:45AM
(#24501846)
IMO because Dhall is unique syntax to the vast majority of developers who have never done anything with Haskell or Elm or whatever, it’s a non starter for large case use. We use Starlark, where the syntax is familiar to anyone familiar with python.
I like your analogy though. For us, the assembly language is using the k8s API directly in Golang. The “compiler” is the golang Starlark interpreter extended with our own config API, like you would implement in Dhall. It’s just in this case, you can implement it in Golang, which has much much better tooling than Dhall does. A typed compiler, debugger, IDE, unit tests.... so much easier to develop and maintain.
Re:What we learned after a year on Kubernetes
by gravypod on Wednesday September 16, 2020 @10:03PM
(#24500402)
Yea, anything that allows you to think in a higher-level than raw kube objects will save you a lot of time and heartache. For instance, if your application needs a redis cluster in helm you have to mess with subcharts/other headaches. In jsonnet it becomes `redis = import "redis"; redis.Cluster("my-app-name") { nodes: 10 }` or something similar.
DRY configs make me very happy.
Re:What we learned after a year on Kubernetes
by iso8859-1 on Wednesday September 16, 2020 @10:04PM
(#24500405)
Given that the Dhall type system supports things that the other configuration languages do not, isn't it very hard to migrate to for a project like k8s?
I don't see how they could support something in parallel to Dhall, and still enable all the features Dhall provides.
Re:What we learned after a year on Kubernetes
by __float on Thursday September 17, 2020 @12:40AM
(#24501240)
Dhall does have many features that can still "compile down" to YAML or JSON (or some others, too). Depending on this target language, some Dhall features are unavailable.
I don't think OP meant Kubernetes is changing to Dhall, but that we'll see something like Dhall on top of Kubernetes YAML/JSON that catches on.
If YAML is the assembly language of k8s, Dhall looks like what you would write the compiler in.