Re:Flakes – Proposed mechanism to package Nix expressions in...
by tannhaeuser on Sunday July 21, 2019 @02:42AM
(#20490249)
That looks like a Turing-complete DSL. Not like JSON at all. Do we need yet another Turing-complete language for writing package metadata?
[ Parent
| on HN ]
Re:Flakes – Proposed mechanism to package Nix expressions in...
by viraptor on Sunday July 21, 2019 @03:19AM
(#20490326)
The example lacks functions / flow-control statements (ok, apart from "import if not defined", but it's more of a default value than a branch) / references to other elements. It's pretty much key-value dictionary. Not sure how you got an impression of Turing-complete DSL from that, since it would require at least one of them.
Re:Flakes – Proposed mechanism to package Nix expressions in...
by weberc2 on Sunday July 21, 2019 @08:26AM
(#20491043)
The Nix expression language has branches and functions (including recursive functions). It is Turing complete, and it probably is necessary for its charter.
Re:Flakes – Proposed mechanism to package Nix expressions in...
by viraptor on Sunday July 21, 2019 @05:36PM
(#20493824)
OP said it "looks like" a Turing complete DSL just from the example. Regardless of what extra functionality the actually is, the examples didn't suggest it.