News for hackers. Stuff that matters.
Re:Writing a Faster Jsonnet Compiler (2018) by wikibob on Friday March 08, 2019 @03:59AM (#19336107)
Not mentioned is the official GoLang version of the Jsonnet compiler. https://github.com/google/go-jsonnet

In my experience the Go version is 10x faster than the original C++ implementation due to improvements. The only thing missing in the Go version is the formatter.

Re:Writing a Faster Jsonnet Compiler (2018) by mpartel on Friday March 08, 2019 @07:57AM (#19337101)
It's mentioned in passing a couple of times, so I assume they've tried it wasn't faster for them.
Re:Writing a Faster Jsonnet Compiler (2018) by rrampage on Friday March 08, 2019 @09:06AM (#19337545)
As someone who is new to configuration-based langages, how is Jsonnet different from Dhall? Do they fill the same niche? Does Jsonnet offer similar guarantee of termination of the config programs like DHall?
Re:Writing a Faster Jsonnet Compiler (2018) by ithkuil on Friday March 08, 2019 @09:28AM (#19337709)
unlike DHall, Jsonnet is Turing complete and untyped.

In a way that might make it a bit easier to approach but harder to reason about your configs.

Re:Writing a Faster Jsonnet Compiler (2018) by sparkprime on Friday March 08, 2019 @01:03PM (#19340186)
Termination is a red herring, the real problem you want to be worried about is configs that take more CPU / RAM than you have spare. Restricting to primitive recursion does not help there. See https://landing.google.com/sre/workbook/chapters/configurati...
Re:Writing a Faster Jsonnet Compiler (2018) by chme on Friday March 08, 2019 @03:26AM (#19335995)
Well it might be fast, but Java/Scala doesn't sound like it is very compact and easy to deploy. It results in a ~10MB jar file + the java runtime.
Re:Writing a Faster Jsonnet Compiler (2018) by JoshRosen on Sunday March 10, 2019 @07:44PM (#19355520)
This can be somewhat mitigated by AOT compilation. Here's a link to some experiments from using SubstrateVM to create a self-contained executable from sjsonnet: https://github.com/databricks/sjsonnet/issues/2
Re:Writing a Faster Jsonnet Compiler (2018) by zokier on Friday March 08, 2019 @02:54AM (#19335891)
Jsonnet, not Jsonata. Damn, I was excited for a moment there. Well, it was an interesting article anyways.