News for hackers. Stuff that matters.
Re:Jsonnet – A data templating language by arianvanp on Sunday April 14, 2019 @05:20AM (#19658334)
Also check out https://dhall-lang.org

It's GCL but with a strong type system and termination guarantees.

I personally like the syntax a bit more than jsonnet. It's a bit less noisy.

I'm also a bit biased because I work on https://github.com/dhall-lang/dhall-kubernetes . We're currently working on a 2.0 release so the current state of the repo is a bit in turmoil.

Programmable configuration language like dhall an jsonet are very powerful and I like them way more than for example helm charts, where templating happens on the string level instead of at the data level.

Re:Jsonnet – A data templating language by Trufa on Sunday April 14, 2019 @07:55AM (#19658855)
Just my two cents but I would go against the first interaction with the user being find the bug, I didn't didn't find it and missed the point, granted I didn't take much time and I'm on mobile, but I guess that's the reality for many people if not most :)
Re:Jsonnet – A data templating language by cyphar on Sunday April 14, 2019 @08:01AM (#19658884)
The bug is that your SSH keys are in /home/bill/.ssh/. But I agree the first page really don't help sell the idea.
Re:Jsonnet – A data templating language by nitheshm on Sunday April 14, 2019 @10:33AM (#19659617)
The typo is in the name bill in the value of publicKey. I assume this is a way to introduce the user to definitions that help you avoid these kind of mistakes. I think it would be more suitable as a use case description rather than an exercise for the user.
Re:Jsonnet – A data templating language by yegle on Sunday April 14, 2019 @11:23AM (#19659909)
GCL doesn't have an equivalent of let-expression though, this makes it less like writing GCL.

Alternatively nix expression is also close enough: https://nixos.org/nix/manual/#chap-writing-nix-expressions

Re:Jsonnet – A data templating language by malkia on Sunday April 14, 2019 @10:01AM (#19659462)
Can dhall be compiled for Windows?
Re:Jsonnet – A data templating language by arianvanp on Sunday April 14, 2019 @11:33AM (#19659960)
I don't see why not. Though I haven't tried it myself.