Skip to content

Comment on Guix for Developmentparent

Comments

- the module paths a bit weird (I’d find slash or dot separated more obvious)

There's no special syntax for any of those dot slash whatever stuff. (Program item) paths are always lists (like in CSS selectors). Likewise we don't use shell strings and then have to weirdly escape them, we just use an argv list to begin with. And so on. What's the use in pretending it's something it's not?

- some values needed to be constructed with a call to list

It depends on how good you are with quoting; if you want to avoid quasiquote, "list" is easier to understand. Otherwise, (almost) no values need to be constructed with a call to "list".

  (list 1 2 3) is equal to `(1 2 3)
  (list 1 2 b) is equal to `(1 2 ,b)
  (list 1 'b b) is equal to `(1 b ,b)
>- weird dsl for building was mixed in there

If you mean what I think you mean then it's a program running in the build container (in an extra process) (so it's quoted in the scm file of guix).

- it’s probably not obvious what should be string/symbol/whatever
I’m not sure anything should change though. It still feels a bit weird to me that it’s a program generating the package rather than a more direct ‘just data’ format.

It will always end up like that, even in packaging systems that start with a "just data" config format. They will always grow their own weird language for #if, #cfg, function calls and so on in the config format. Then they have weird generator scripts generating the config files, and there they are right where we are, just shittier.

https://en.wikipedia.org/wiki/Greenspun%27s_tenth_rule :)

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.