News for hackers. Stuff that matters.
Re:Nix: An idea whose time has come by freeopinion on Friday February 18, 2022 @08:31PM (#30393561)
In that case, what if you swapped out the language for, say, Scheme?

Does that help?

Re:Nix: An idea whose time has come by Ericson2314 on Friday February 18, 2022 @08:38PM (#30393603)
There is Guile for that.

The Nix language out-schemes scheme (even smaller), so I don't really see the point.

Re:Nix: An idea whose time has come by mbrock on Friday February 18, 2022 @11:53PM (#30394518)
One reason is that Scheme has Emacs modes that connect to a live system for precise jump-to-definition, etc. This works with Guix and is extremely convenient. Scheme's metaprogramming also enables Guix's beautiful system of code staging, G-expressions.

https://guix.gnu.org/manual/en/html_node/G_002dExpressions.h...

Re:Nix: An idea whose time has come by Ericson2314 on Saturday February 19, 2022 @11:52AM (#30398465)
> One reason is that Scheme has Emacs modes that connect to a live system for precise jump-to-definition, etc. This works with Guix and is extremely convenient.

Those are all valuable things, but I don't think that would actually be hard to implement for the Nix language either. Just no one bothered

> Scheme's metaprogramming also enables Guix's beautiful system of code staging, G-expressions.

Yes not pasting together strings for bash would be nice, but with all due respect to scheme's metaprogramming, which I do indeed highly respect, I view this as fairly orthogonal.

From a quick glance, g-exps don't have much binding structure? That means hygiene and other things are not as useful, and just doing

  ["see" "I" "can" "sexp" "too"]
in the Nix expression language isn't actually so bad.
Re:Nix: An idea whose time has come by rekado on Sunday February 27, 2022 @12:08PM (#30490239)
With G-expressions you can splice in computed store values, e.g. the computed output location of a package. I recommend the paper[1] explaining why they exist and what alternatives they replace.

[1]: https://hal.inria.fr/hal-01580582

Re:Nix: An idea whose time has come by dwohnitmok on Friday February 18, 2022 @08:43PM (#30393639)
It's not purely a language thing per se, i.e. there are ways the language could change minimally but error messages could have a huge leap in improvement. However, certain idioms in the standard library might need to change, and certainly changing the language at the same time can improve the error messages even more.

I have only a little experience with Guix (replacing Nix with Scheme), so I'm not very confident in this, but the shallow impression I have is that Guix's error messages are not much better.

Re:Nix: An idea whose time has come by khimaros on Friday February 18, 2022 @08:45PM (#30393648)
it sounds like you might be looking for Guix https://guix.gnu.org/
Re:Nix: An idea whose time has come by d3nj4l on Friday February 18, 2022 @09:14PM (#30393806)
I imagine GP was setting up to redirect there, given the very deliberate choice of language.