News for hackers. Stuff that matters.
Re:Dhall: A Non-Repetitive Alternative to YAML by choeger on Thursday July 04, 2019 @02:18PM (#20356655)
Hmm...

So the authors claim that their language is guaranteed to terminate for all well-typed programs. That is actually a nice spot for configuration languages. Yet, I wonder how

a) they guarantee it, as I have seen no obvious link to the language's semantics

b) useful this is in practice.

Nevertheless, very nice approach, indeed.

Re:Dhall: A Non-Repetitive Alternative to YAML by yunyu on Thursday July 04, 2019 @03:12PM (#20356983)
There is no support for recursion and the usual workarounds don't apply, so the language is not Turing complete: https://github.com/dhall-lang/dhall-lang/wiki/Safety-guarant...
Re:Dhall: A Non-Repetitive Alternative to YAML by codebje on Thursday July 04, 2019 @04:58PM (#20357739)
Build systems tend to get very complex Turing complete scripts, such as gradle for Java or Make for C. Having something almost as powerful but reducible to a normal form is very helpful for CASE tools.
Re:Dhall: A Non-Repetitive Alternative to YAML by skybrian on Thursday July 04, 2019 @06:06PM (#20358186)
Banning Turing completeness doesn't give you the property you want, though. Knowing that reducing to a normal form eventually terminates if you wait a million years may be something mathematicians care about, but isn't of practical use.

What matters is that you can analyze the code quickly. To find that out, one way is to try it and kill the process if it takes too long.

Or perhaps better would be to come up with a portable definition of what "takes too long" means that you can put in a presubmit check. Something like "running out of gas" in Ethereum.