News for hackers. Stuff that matters.
Re:Rde: A configuration framework for GNU Guix by aidenn0 on Wednesday May 31, 2023 @06:56PM (#36145563)
Nix is a full programming language, just a really idiosyncratic one with syntax only a mother could love.

I've been using lisp for over 20 years now and would much prefer if guile replaced the nix language (or Common Lisp, if I can dream), but I still use NixOS for practical reasons.

Re:Rde: A configuration framework for GNU Guix by georgyo on Wednesday May 31, 2023 @07:32PM (#36145900)
I don't mind the nix language, and I far prefer it to lisp.

But something I haven't understood is that nix compiles to derivations. I don't think it would be difficult to have a nix compiler that takes Lisp or whatever and spits out derivations. It would be able to use stuff from nixpkgs as well, at least partially anyway.

The built derivations are an extremely simple format anything can produce.

Re:Rde: A configuration framework for GNU Guix by aidenn0 on Wednesday May 31, 2023 @07:47PM (#36146027)
If I understand correctly, Guix can do this. Of course the derivation is the final output, so you lose all of the nix modules and nix packages, which kind of defeats the purpose of using NixOS.
Re:Rde: A configuration framework for GNU Guix by georgyo on Wednesday May 31, 2023 @09:33PM (#36146683)
I don't think you nessairly need to give up interop. Kinda like his JavaScript can call wasm modules. The compiler would need to know how to use nixpkgs, but the user could write their derivations any way they see fit.
Re:Rde: A configuration framework for GNU Guix by aidenn0 on Wednesday May 31, 2023 @09:51PM (#36146759)
You can depend on other derivations rather easily, but interoperating with functions written in the nix language is more challenging. (And without nix language interop, basically all of NixOS that isn't nixpkgs is useless).
Re:Rde: A configuration framework for GNU Guix by pxc on Thursday June 01, 2023 @01:24AM (#36147845)
> But something I haven't understood is that nix compiles to derivations. I don't think it would be difficult to have a nix compiler that takes Lisp or whatever and spits out derivations

This is originally how Guix worked— it generated .drv files in the same format as Nix and then asked a Nix daemon to build them. But both projects consider the derivation format an implementation detail that should be free for them to change according to the needs of the rest of the stack, rather than a stable interface for downstream consumers (be they end users or other software tools).

The above is not just theoretical— as a result, the derivation formats of the two projects have diverged.

(Tbh I agree with their position, though. I don't think the concept of the derivation should really be visible to end users. The way the term is used is extremely overloaded/ambiguous, and so at the end of the day it's jargon that serves more to obscure than to teach.)

Re:Rde: A configuration framework for GNU Guix by hardwaresofton on Wednesday May 31, 2023 @11:50PM (#36147395)
what are these practical reasons -- ecosystem size? tooling/documentation?
Re:Rde: A configuration framework for GNU Guix by aidenn0 on Thursday June 01, 2023 @12:20AM (#36147535)
ecosystem size and less friction for non-free software.