23 points · by jktyjvhubb · 1d ago · 36 comments
Contrast that with YAML. YAML-heavy ecosystems can't handle even modestly large configurations. Just look at the Kubernetes ecosystem. Its solutions for handling complexity are Kustomize and Helm templates. Both of which add even more complexity while decreasing flexibility and expressiveness. It's just not possible to make large-scale JSON data more maintainable with just syntax, like YAML does. There needs to be primitives for building abstractions, like functions.
So on the website, the given examples are things like writing down the list of packages that you want. But I can do much more with Nix. Like applying unreleased patches to a package. Or creating a custom package on the fly and embedding its path in a file. Or installing multiple browsers, all with uBlock Origin installed and configured with the desired filter lists plus custom block rules. Or set up a project-local PostgreSQL database initialized with a script file contained in another package. Nix provides me with the primitives to do what I want to achieve in any particular situation, while YAML based tools only gives me a few configuration points for predefined workflows.
Conda is taking over, and it has simple toml tools available from the very beginning of it's rise in popularity.
In raw users, outside of echo chambers in DevOps, Conda Forge has already won (Facebook money), and the tooling natively works equally well across Windows, MacOs, and Linux.
Nix needed something like this 3-4 years ago
Conda support. No special hoops to jump through on Mac or Windows either.
Convince me, why should I go back to using Nix at work in a mixed workstation environment? Why should I use a system based on a boutique language that's not transferable to any other domain, rather than write a TOML config?
Because I don’t see how that would ever be the case based on package repo size along with the fact that Conda doesn’t allow you to build a distro from scratch.
Are you arguing more people use Nix than Conda?
I don't know what building a distro "from scratch" means to you, but when I build an immutable installation, I don't use Nix to do it. Professionally, Ignition is my choice.
You're splitting hairs. Are we talking distros or environments? I admit, Nix goes after every domain, and does all of them pretty badly, but that's never been the point. The discussion was about cross platform environments.
My impression was that Conda is more popular in the Python world, especially in scientific computing and ML. I personally don’t hear of Conda ever being used outside of these fields, but I would love to be corrected.
Looking at the submission, this thread seems to be focused on two areas: reproducible build systems and dev environments.
For a general purpose reproducible build system, Bazel is probably king at this point, but Nix is a player here too. Dev environments are more fragmented: some just stick to language-specific tools, some use Docker containers / Docker Compose, some use Nix, and of course there are other options such as Conda.
In neither of these areas would I ever think that Conda has “already taken over”, hence my confusion :)
So I would agree, that one does not want to get stuck overall, but point to the many times conda would not do due to either not being able to resolve either conflicts or wrapping more complex stuff.
> Nix was created out of false statements repeated en masse. That's why it has the reputation of a cult.
By all means give us informed opinions. But if you feel the need instead to respond with an apples-to-oranges comparison or semantic dodges like the one below, maybe not do that too.
> If expressiveness was the be all end all, we would all still be using using Ruby on Rails
Because, come on. The expressiveness in the context of Nix is about the scope of what it can do, not Ruby's expressiveness of having multiple ways to write the same thing.
Maybe I will use some tokens to make a brainfuck porcelain this weekend.
For eg, ardour on Nixpkgs is still on 9.10, whereas on Arch it's at 9.11. Muse is on 4.2.1 vs 4.3.1 on Arch. dua is two releases behind (3.0.3 vs 3.1.1 on Arch). uv is even worse, it's three stable releases behind Arch (0.13.10 vs 0.13.13).
And Lemonade doesn't even exist in Nixpkgs, whereas it's a regularly maintained repo package in Arch!
So what's the point in boasting that you've got 150k packages?!
So as an Arch user, I don't see why I should use Nixpkgs and suffer dealing with outdated or non-existent packages.
The last thing you want is a stable channel tracking the bleeding edge... you have the unstable channel for that.
150k is by far the highest number of packages offered by any package manager. I don't think that's in dispute.
Use what you want, always! But it is almost always trivial to specify the packages yourself wherever you need to depend on them, or find someone else's flake who has already done the same.
Btw, I just checked and the newer package versions aren't present on the unstable channel either, so my point still stands.