Re:Skylark in Go: An Interpreter for Skylark, Implemented in Go
by sparkprime on Thursday October 12, 2017 @09:31PM
(#15462702)
Your comparison with Jsonnet is not accurate. Jsonnet is thriving, now also has a Go implementation and lots of adoption especially in the Kubernetes community. It has nearly 1000 github stars. It is also a full programming language, and has all the features you listed.
Re:Skylark in Go: An Interpreter for Skylark, Implemented in Go
by nikolay on Thursday October 12, 2017 @10:16PM
(#15462842)
I disagree that it's thriving! It's a pretty weird combination of a JavaScript-like interpreter with non-JavaScript stdlib and bizarre choice of keywords, for example, 'local' and not 'var'/'let,' etc. It's capabilities as a language are pretty limited, so, although at first sight, it looks great, it's pretty limited, and even Jinja2 gives you more, so, you see more and more people combining Jinja2 with Jsonnet, which is proof that it's doomed.
Unlike Google's Jsonnet, which doesn't seem to have become very popular, it goes way beyond mere declarative templating, as it's actually a minimal implementation of Python, complete with functions, lambdas, for loops, etc.
The Google documentation for Bazel's BUILD files provides some context: