by jkarni on 11/2/23, 12:14 PM with 21 comments
by aidenn0 on 11/2/23, 6:50 PM
by solarkraft on 11/3/23, 12:19 PM
"Garn" is German for Yarn, another package manager in the JS/TS ecosystem.
"Nix" (this is probably known by now) is a German/Dutch term for "nothing".
"Garnix" in combination would colloquially be "really nothing [at all]".
by chalsprhebaodu on 11/2/23, 5:34 PM
What’s the rationale for the heavy use of tagged template literals in the API? From the outside, it seems like an esoteric choice that makes ergonomics slightly worse, less approachable, and less idiomatic. This seems to fly directly in the face of the goals of this project.
All that said, I could be convinced that the API choice isn’t a mistake.
At any rate, I’m excited to see where this project goes.
by jflakjwoasdlf on 11/2/23, 8:34 PM
Language familiarity, first-class IDE experience, and TS's type system.
by just_mc on 11/3/23, 2:36 AM
by nylonstrung on 11/3/23, 5:28 AM
Nix truly is a game changer, but the UX is not getting better in any meaningful way. I do think it will be a fantastic foundation for an abstraction layer on top.
Note: for anyone else trying Nix but bouncing off of it (especially flakes), Home Manager is where I'd recommend starting.
It lets you declaratively manage all your packages, home files, shell configs etc from inside a single text file, using Nix derivations. Without having to deal with much Nix language or its shell interface
by YoshiRulz on 11/3/23, 7:49 AM
> Currently go, npm, and haskell projects are supported.
Implicit here is that you're missing out on one of Nix' strengths—that being how Nix-lang is a lingua franca for every ecosystem with a presence in Nixpkgs. I've never written or even seen a line of Pascal, but it doesn't matter because of the 'package' abstraction. I can build and/or install a Pascal program the same as any other.
> With Typescript, you get the full power of programming — the ability to easily factor out variables, to connect and abstract functionality, to reuse code, to write tests.
Nix-lang also has these, it's just FP rather than imperative. (Except unit tests unless you include Hydra or something.)
> [Nix has tech debt, such as] the somewhat cumbersome and inconsistent CLI interface. The garn CLI is a fresh start.
Nix also has this in the form of the "new" CLI a.k.a. Flakes a.k.a. nix3.
On the whole, I can see this being useful to someone trying to convert their coworkers from NPM to Nix, but not all that impactful in the field of Nix UX improvements. Nickel and co. are where the good ideas are coming from IMO.
by norman784 on 11/2/23, 2:52 PM
by aitchnyu on 11/3/23, 1:55 PM
by rynite on 11/2/23, 10:12 PM