4 ms·
Actually, I found the language to be pretty similar to Haskell, if you do know that. You don’t have explicit functions, you use let in, and everything is an exc
by kaba0 6y ago
Actually, I found the language to be pretty similar to Haskell, if you do know that. You don’t have explicit functions, you use let in, and everything is an exception. It is even lazy evaluating.
- bamboozled 6y agoThe lack of lazy evaluating is an issue as the Nixpkg grows. I don't believe anyone has a solution to this yet.
- siraben 6y agoCould you elaborate what you mean by this? Nix has lazy evaluation so as Nixpkgs grows it doesn't perceptibly change how long package installations, building, etc. take.
- tnzm 6y agoWhen I run `nixos-rebuild switch --verbose`, it does seem to go through the entirety of nixpkgs. Especially noticeable on a RPi with its slow I/O.
- arianvanp 6y agoIt's not true that it pulls in everything. It's just that a nixos installation pulls in a lot of transitive code =). It actually pulls all of this in lazily and lazily evaluates it; but it's just a lot of code and nix evaluator isn't that fast.
- kaba0 6y agoThat’s just evaluation. The next bigger change in nix itself will likely be the ability to better cache evaluations, significantly speeding up this.
- kaba0 6y agoI’m not sure what you mean by lack of lazy evaluation. It is lazy as far as I know. Also, check out flakes, which somewhat steers away from the central repo design.