Hacker News new | ask | show | jobs
by mekeor 1482 days ago
there's a lispy alternative to nix, called gnu guix, which uses guile/scheme instead of nix-lang.
2 comments

I tried learning Guile some days ago because Guix seems so cool and I like the idea that the configuration is not done in a special purpose language.

Had never lisped before.

It seemed cool and I tried my hand with a tutorial that makes you embed guile in a C program to make it interactive. It was okay but it seemed like too much boilerplate to have to register functions individually but maybe it is standard when embedding. Never tried with lua or Janet before so I can't say.

In general there is a lack of resources, it is quite hard as a beginner to get a start with the language past playing with the repl a little.

Also tried to see if there was a Guile version of the famous SICP but ugh it was not straightforward.

I gave up. Hope Guix will foster better resources on Guile Scheme.

I wouldn't bother trying to learn Guile and would instead try to learn Lisp, or specifically Scheme, and then learn the few bits where Guile differs, because it's 99% Lisp/Scheme to me. (Scheme and Lisp have existed for decades and there should be absolutely plenty of resources to get up to speed in them.)

Knowing a Lisp in general is a significant advantage for a person who deals with writing code, IMHO. (I feel the same about regular expressions.)

I know, I even mentioned it. Unfortunately and understandably Guix means my WiFi won't work and there will be less stuff supported OOTB. So I'll be on Nix for foreseeable future.
You can include community sources in order to use the standard, non-libre Linux kernel - though my Guix experience was a bit frustrating in part due to complications such as this one compared to what I'm currently experiencing with NixOS (thoroughly enjoying it!).

There are a fair few very vocal former NixOS users who miss no opportunity to extol the benefits of Guix in the chatrooms I frequent, though. Not without merit either, I should say: the project and its UX does seem to be much more well-thought out; it's developed by GNU; the project takes software freedom seriously; many will surely enjoy hacking away at their config in Scheme. As it stands currently, though, there are more resources and it's easier to get things done with NixOS - you also get to use learn a (imo really great) packaging system that is in somewhat wide use.