4 ms·
For those who like the concept of Nix, but don't like the Nix language, the Guix package manager [0] might also be worth a try. It's an official GNU project, in
by paskozdilar 5y ago
For those who like the concept of Nix, but don't like the Nix language, the Guix package manager [0] might also be worth a try. It's an official GNU project, inspired by Nix, and it uses Guile Scheme instead of Nix language.
[0] https://guix.gnu.org/ https://guix.gnu.org/
- javajosh 5y agoEventually someone will implement Nix in Javascript, and then it will explode.
- rgoulter 5y agoThe code in nixpkgs does contain some code that uses relatively sophisticated programming language constructs, such as lazy evaluation, partial function application, or fixpoints. -- So I'll say there's at least some friction to Nix from the language being pure/functional. Mostly I think Nix would be just as hard if packages were expressed in any language. Stuff like "this program compiled by nix is using a different glibc than this library" is going to be confusing regardless of whether Nix expressions can be written with JavaScript; or stuff like some program assumes it can write to $HOME in its build script not playing nicely with Nix. A lot of why Nix is hard is because it's weird, and that even as an end user when things go wrong it may require understanding more about what's going on than what other solutions require.
- deepsun 5y agoAll languages get eventually implemented in Java and Javascript.
- Arubis 5y agoIn both senses of the word "explode", I expect. (Tongue-in-cheek, but I'd actually like to see this happen: Nix is a fantastic concept obscured by space-alien syntax.)
- sleepydog 5y agoThe Guile compiler has a JavaScript frontend. You can write guix packages in JavaScript: https://lists.gnu.org/archive/html/guix-devel/2022-03/msg00174.html https://lists.gnu.org/archive/html/guix-devel/2022-03/msg001...
- marius_k 5y agojs code example still looks schemish to me.
- recuter 5y agoFiguratively?
- zeec123 5y agoNot exactly, but PureNix
- SkyMarshal 5y agoNix is mostly already Javascript. Just JSON with some addon functionality.
- goodpoint 5y agoGuix is much more usable.
- sullyj3 5y agoTweag is also working on a gradually typed language called Nickel as an alternative, although it's not ready yet. https://www.tweag.io/blog/2020-10-22-nickel-open-sourcing/ https://www.tweag.io/blog/2020-10-22-nickel-open-sourcing/