News for hackers. Stuff that matters.
Re:Nix: An idea whose time has come by cturtle on Friday February 18, 2022 @08:28PM (#30393547)
Maybe Nix but with Lua?
Re:Nix: An idea whose time has come by zamalek on Friday February 18, 2022 @08:59PM (#30393737)
You need a strictly pure functional language to do what Nix does. It's able to determine if something is already installed (in a specific state) because it calculates a hash of the output. Side effects throw a wrench in all of that.
Re:Nix: An idea whose time has come by tadfisher on Friday February 18, 2022 @09:49PM (#30393975)
Moreover, you need a _lazy_ functional language, because otherwise you are building every package in nixpkgs when evaluating it.
Re:Nix: An idea whose time has come by rixed on Saturday February 19, 2022 @12:23AM (#30394640)
Wouldn't that be possible to build packages definitions instead? Isn't that what Guix is doing?
Re:Nix: An idea whose time has come by SAI_Peregrinus on Saturday February 19, 2022 @11:42AM (#30398386)
I feel like a logic programming language (e.g. Prolog) would be a better fit for what Nix is trying to do than a functional one like Nix. Of course those are even less familiar to most devs than functional languages, so it wouldn't solve the "weird new language" issue.
Re:Nix: An idea whose time has come by naasking on Saturday February 19, 2022 @08:18AM (#30396938)
The language doesn't need to be lazy. Strict languages model laziness via explicit lazy values. For Nix, this would be some kind of explicit package type. Side effects are problematic though.
Re:Nix: An idea whose time has come by cturtle on Saturday February 19, 2022 @12:37AM (#30394692)
Thanks! I guess I need to learn more about Nix then :)