News for hackers. Stuff that matters.
Re:Guix 1.3 by the_duke on Wednesday May 12, 2021 @07:13AM (#27128964)
Obligatory comparison to Nix [1]:

Pros:

* Better, more coherent and unified tooling

* Better docs

* Built with LISP (edit: Scheme), A standard language that is not project-specific. Nix lang is somewhat quirky and takes some getting used to. It's pretty decent though for a narrowly focused domain language.

Cons:

* Tiny community that is much smaller than Nix. nixpkgs is the largest package repository out there, providing most software that you could want.

* Really slow every time I tried it. Nix is written in C++ and actually performs quite well, even when building many hundreds of pacakges.

* Not systemd based. Say of systemd what you will, but there is a reason almost every distro has adopted it. It's just better. Also: most Linux users are familiar with systemd tooling by now, so that makes adoption even harder.

* Strong focus on freedom and not packaging proprietary software. Understandable, given the project origins. But awkward to the point of being mostly impractical for personal use - I can't package everything myself.

* No equivalent to home-manager [1], which is amazing for declarative user environments

[1] nixos.org/

[2] https://github.com/nix-community/home-manager

Re:Guix 1.3 by medstrom on Wednesday May 12, 2021 @07:31AM (#27129071)
Many design decisions are different. Nix and Guix are each other's Bizarro. It's a common misconception that Guix is just "Nix with Scheme" or "Nix without systemd" but those are frankly the least interesting differences.

An example is that the package definitions sit in the same repo as the package manager, freeing the definition language to evolve without regard for compatibility (because they will always be read by the correct version of Guix) whereas Nix has to freeze the definition language and always test that old definitions work. Obviously there are pros and cons to each approach. https://guix.gnu.org/blog/2018/multi-dimensional-transaction...

Re:Guix 1.3 by georgyo on Wednesday May 12, 2021 @08:53AM (#27129725)
The embedded package repository is actually a major con IMHO. Making backwards incompatible changes is easy inside your monorepo, but if you a user building software it means that your code now depends on specific guix reversions as well as a specific commit.

In nix land, the more stable API means we are moving further into composible modules. Meaning you can now very easily have all your companies code in different (or one big) repositories that can reference each other easily.

However having used both guix and nix for several years now, I am firmly in camp they are the same.

The porcelain of guix is much nicer, but each can do everything the other does.

To me guix and nix are similar to a comparison of fedora and ubuntu. Both fedora and ubuntu are fairly different, but there is there is a 1:1 method to do everything in one in the other. Having only used fedora, you could easily figure out ubuntu. Everything is essentially done the exact same way, but different tools.

The same is true with guix and nix.

Re:Guix 1.3 by medstrom on Wednesday May 12, 2021 @09:07AM (#27129879)
The Guix way moves more contribution upstream (it's very easy to get your PR accepted) and less people having their own untested "PPAs" everywhere. People have this image that having a private channel is simpler/faster somehow as it skips hoops but in Guix it's just not true (what hoops?). You can submit PR after PR after PR for something only you would ever care about.

The main reason not to is when you want to keep your codebase secret, right? Composible modules are certainly another solution. I don't know what's ultimately best but I think we could perhaps make it easier to pin a specific Guix revision. Perhaps require it. It already runs different versions of itself so often, it's part of the way it should work.

Re:Guix 1.3 by mrslave on Wednesday May 12, 2021 @09:47AM (#27130261)
> less people having their own untested "PPAs" everywhere

This is not my experience with Nix.

1. My system configuration pulls in a couple of programs in from unstable for my convenience and it was incredibly easy.

2. I don't do any serious 3rd-party packages or package configuration at the system level. Instead, any package configuration (e.g. overrides, Docker images) and 3rd-party packages absent from Nixpkgs - usually pretty easy to write, if not trivial - are defined in the repository where they are required. They are used - and tested - and reproducable to the pinned Nixpkgs in that repository.

It has been incredibly easier than PPAs and Gentoo overlays. Presumably safer too (though this is an incomplete thought).

To be fair the learning curve was medium, and I didn't invest any serious effort. Instead I made progress until frustrated and asked colleagues to help a few times until I grokked it. From the perspective of a simple user, the single system configuration file is a killer feature even if you don't venture any further.

Re:Guix 1.3 by the_duke on Wednesday May 12, 2021 @09:57AM (#27130361)
A system like Guix will have at least a magnitude more private manifests.

Form personal shell scripts and environment configs, over team development environments to custom software. Non of that can be upstreamed. Plus the proprietary software, which also can't be upstreamed.

I concur that not having a stable format is a potentially problematic design decision, not a benefit.

Re:Guix 1.3 by medstrom on Friday May 14, 2021 @07:03AM (#27152927)
Can you explain again why it'd have more private manifests? I'm not that familiar with Nix, but don't you use scripts, configs and environments all the same?
Re:Guix 1.3 by mwill on Wednesday May 12, 2021 @07:40AM (#27129140)
As someone who lives in nixos about 90% of the time, I really do just want Nix but LISP, and if thats what Guix was I would have switched a long time ago
Re:Guix 1.3 by the_duke on Wednesday May 12, 2021 @07:33AM (#27129087)
Can you elaborate on those differences?

The concepts seemed pretty similar to me.

Re:Guix 1.3 by medstrom on Wednesday May 12, 2021 @08:05AM (#27129311)
Added an example.

Also the dev communities care about slightly different things. They match my tastes, we find the same kinds of things cool, so I've found nothing but joy in Guix. One matter of practical impact is how they prioritize blurring the line between user and contributor -- "uplifting" users into contributors as much as possible. I saw that as the biggest flaw of Gentoo, it was very hard to even know how to start contributing.

Re:Guix 1.3 by Blikkentrekker on Wednesday May 12, 2021 @08:37AM (#27129555)
Perhaps you should try Exherbo then.

They take the opposite approach and insist that all users be contributors and are often unwilling to provide support to users that aren't at least somewhat contributing back. Their dream is a system where all users are contributors.

Re:Guix 1.3 by medstrom on Wednesday May 12, 2021 @09:54AM (#27130329)
https://www.exherbo.org/ That does sound nice. I'd like to know how it differs from Guix.
Re:Guix 1.3 by Blikkentrekker on Wednesday May 12, 2021 @10:08AM (#27130495)
It's package manager is more so similar to Portage; and it can in fact be used on Gentoo as an alternative thereto.
Re:Guix 1.3 by geeksix on Thursday May 13, 2021 @10:42AM (#27142604)
> they prioritize blurring the line between user and contributor -- "uplifting" users into contributors as much as possible

Can you explain more about this? How do they uplift?

Re:Guix 1.3 by civodul on Wednesday May 12, 2021 @09:38AM (#27130171)
For a detailed "Guix vs. Nix" comparison, see: https://news.ycombinator.com/item?id=16490027 and https://news.ycombinator.com/item?id=23529932.

In a nutshell, these are two different projects, with common foundations, but also different technology and different focuses--just like Julia and Clang are different, even though they both use LLVM.

The project blogs and documentation should already give a feel of how those differences play in practice!

Re:Guix 1.3 by the_duke on Wednesday May 12, 2021 @10:43AM (#27130905)
I had read both of those before.

The first one primarily just says "we use Scheme instead of Nix lang".

There are some differences that emerge from that, but most of what is described is also common or possible with Nix.

The analogy of clang vs Julia does not fit for me.

Nothing I've seen has yet described any significant difference, but rather affirmed that both are very similar in most regards.

Re:Guix 1.3 by medstrom on Friday May 14, 2021 @06:40AM (#27152801)
It's not just Nix lang it replaces, we use Scheme in place of a hodgepodge of languages (shell script, Nix, C and others). Almost all equivalents to C-hardcoded parts of Nix is inspectable and modifiable in Guix. There's code reuse across the stack. Even the systemd substitute is opened up for inspection and modification. Nix glues a lot of black boxes; Guix is a single white box. Both approaches are practical for different reasons.
Re:Guix 1.3 by mbakke on Wednesday May 12, 2021 @07:54AM (#27129228)
There is a home manager for Guix:

https://git.sr.ht/~abcdw/rde

It will likely be included in the next version of Guix. Note that declarative environments are already well-supported with "manifests" (I have a lot of them).

It's curious that you list "strong focus on freedom" as a con. I love that I can exercise my "four freedoms" on any package in Guix, and be certain that there are no binary or proprietary bits. There are several third party channels covering non-free software needs.

Re:Guix 1.3 by imiric on Wednesday May 12, 2021 @01:28PM (#27132860)
Thanks for the manager link.

> There are several third party channels covering non-free software needs.

Can you link some of them? I've kept a list over the years for when I decided to try Guix again, but it's not up to date. And some like [1] aren't being maintained anymore.

While I support this strong stance on free software from a philosophical standpoint, it's practically unusable as my main distro because of my current hardware. I'd love to see a distro based on Guix that breaks this GNU principle and focuses on general ease of use.

[1]: https://github.com/guix-users/guix-nonfree

Re:Guix 1.3 by shakow on Thursday May 13, 2021 @01:44PM (#27144976)
> It's curious that you list "strong focus on freedom" as a con

Not OP, but I see the two sides of it. On the one hand, I totally understand your position.

On the other hand, if I take my personal case as an academia user, I can't use Guix just because I can't get e.g. CUDA with it. And neither I nor my lab will ever have the time and means to reimplement a free CUDA, so we can only suck it up.

Re:Guix 1.3 by spindle on Wednesday May 12, 2021 @08:29AM (#27129487)
> Strong focus on freedom and not packaging proprietary software.

Yes, and I like that BUT Guix, unlike NixOS, does not have an easy to install and well-tested ZFS implementation, even though ZFS IS free (and non-proprietary, and copyleft to boot (pun not intended)). For me at least, this is a dealbreaker.

Re:Guix 1.3 by nanna on Wednesday May 12, 2021 @08:15AM (#27129389)
Another Pro for Guix, first class support in Emacs.

If that's your kinda thing.

Re:Guix 1.3 by swiley on Wednesday May 12, 2021 @08:14AM (#27129388)
There is a home manager people are testing out, it was on the mailing list the other week.

I wish they had gone with OpenRC as the initd. It's fairly popular but doesn't go overboard the way systemd does. Shepherd is pretty slow.

Re:Guix 1.3 by shakow on Wednesday May 12, 2021 @07:32AM (#27129082)
> Built with LISP

*Scheme

Re:Guix 1.3 by capableweb on Wednesday May 12, 2021 @08:08AM (#27129344)
Risking starting a flame-war but I really don't want to, this is a question of curiosity, not looking down/up on any languages:

Isn't Scheme "a lisp" even though most people usually distinct them? The similarities between Scheme and Common Lisp seems to be greater than any of the two and Clojure, and usually people refer to Clojure as a Lisp but it's hearsay to claim Scheme is a Lisp.

Of course, C2 already have a page on the subject (https://wiki.c2.com/?IsSchemeLisp) so if you want to share a new opinion on the subject, make sure it hasn't already been said :)

Re:Guix 1.3 by shakow on Wednesday May 12, 2021 @08:23AM (#27129440)
> Isn't Scheme "a lisp" even though most people usually distinct them?

I would agree on a broad scale. But GP wrote LISP in capitals, which I often see used to mean Lisp-the-language rather than Lisp-the-concept, hence my precision.

Re:Guix 1.3 by medstrom on Wednesday May 12, 2021 @08:16AM (#27129405)
(Offtopic) C2 has a really good <noscript>.
Re:Guix 1.3 by wrycoder on Wednesday May 12, 2021 @08:58AM (#27129784)
Con (for me): The team is strongly anti-RMS, including wanting him to resign as GNU project leader.
Re:Guix 1.3 by rekado on Wednesday May 12, 2021 @10:30AM (#27130739)
This is off-topic, but I have to bite: "anti-RMS" is such a reductionist way to express this. Is our language so impoverished that we must be reduced to "anti-this" and "pro-this"?

Who's "the team", by the way? There is a maintainer collective and hundreds of contributors, and it should be no surprise that they don't all have the same opinion on everything.

For what it's worth: I'm a GNU maintainer and I don't want RMS to be the leader of the GNU project. I'm not "anti-RMS", just "anti-RMS-as-GNU-project-leader". I do think RMS has a voice that should be heard when it is about free software philosophy.

Re:Guix 1.3 by wrycoder on Wednesday May 12, 2021 @03:06PM (#27133955)
https://guix.gnu.org/blog/2019/joint-statement-on-the-gnu-pr...

I would call that post on the GUIX blog strongly anti-RMS.

Re:Guix 1.3 by _d7dt on Wednesday May 12, 2021 @03:57PM (#27134435)
That seems like a strange interpretation. That post says he is owed a debt of gratitude.
Re:Guix 1.3 by wrycoder on Friday May 14, 2021 @10:14AM (#27154559)
And that’s all, apparently. They would like to see him replaced as project leader.
Re:Guix 1.3 by snicker7 on Thursday May 13, 2021 @01:54AM (#27138895)
You're wrong. Not giving RMS a free pass to do or say whatever he wants for all eternity is literally cancel culture.
Re:Guix 1.3 by Fice on Wednesday May 12, 2021 @10:35AM (#27130801)
Not the whole team. There are people with different opinions.
Re:Guix 1.3 by Blikkentrekker on Wednesday May 12, 2021 @08:41AM (#27129597)
> Not systemd based. Say of systemd what you will, but there is a reason almost every distro has adopted it. It's just better. Also: most Linux users are familiar with systemd tooling by now, so that makes adoption even harder.

Yet, the only reason you are most likely giving this one piece of software special treatment, among the many other different pieces of software in NixOS and GuixSD, is as reactionism to the many, just as vocal voices, that chose not to adopt it, with just as much fanfare to the mention of not doing so.

It strikes me as odd to list as an objective advantage the one piece of software that has been the most controversial in the last decade, and it's controversy is most likely the reason you decided to mention it.

Re:Guix 1.3 by zxzax on Wednesday May 12, 2021 @03:08PM (#27133977)
I can't say I agree with your assessment. As someone who has used both, there are a lot of nice things in systemd that aren't really present in GNU shepherd (yet?)
Re:Guix 1.3 by Blikkentrekker on Wednesday May 12, 2021 @03:31PM (#27134242)
What does that have to with my assessment?

Nothing in my post compared systemd with shepherd or talked about any of the features of either. — it simply pointed out that systemd was specifically chosen of all software that GuixSD does not have because there's often debate about it, not for technical reasons.

Re:Guix 1.3 by zxzax on Wednesday May 12, 2021 @03:46PM (#27134359)
I don't know about other places, but here I don't agree that it wasn't for technical reasons. To me it seems like one of the key differences between them. Guix wants to have all the package and service definitions written in Scheme. Otherwise systemd would probably work well for them, judging by the usage in Nix anyway.
Re:Guix 1.3 by Blikkentrekker on Thursday May 13, 2021 @05:41AM (#27140305)
Guix has nothing to do with systemd, GuixSD does. — the two are distinct.

There is no reason why Guix can't be used to install systemd, but the software runs contrary to the GuixSD philosophy, in that it wants as much as possible to be an interpreter whose internals are hackable.

Re:Guix 1.3 by zxzax on Thursday May 13, 2021 @12:31PM (#27144128)
Again I don't think that's a correct assessment, Guix actually does have some overlap with systemd because they decided to put some containerization things there. In Nix, this would be delegated to systemd.

I also wouldn't say that that runs contrary to the GuixSD philosophy, as there are a lot of packages in Guix that are written in C and C++ and other compiled languages, and I don't believe they plan to replace them. Maybe I'm wrong about that? At some point it might be interesting to have a Lisp/Scheme-only distro. Of course the kernel would still pose a problem there.