Live data from Hacker News

Garn, a TypeScript-based Nix front end

garnix.io

1–10 of 23 posts

Re: Garn, a TypeScript-based Nix front end

#5

I'm interested to know if this finally will help me to enter nix world, I tried so many times but failed.

(One of the `garn` developers here.) Yeah, that's definitely the intention. If you end up trying it out, I'd love to hear how it went!

Have you thought about a GUI layer on top of that, named uberhaupt?

But maybe that would create too much overhead..

Re: Garn, a TypeScript-based Nix front end

#6

Earlier quoted context omitted.

(One of the `garn` developers here.) Yeah, that's definitely the intention. If you end up trying it out, I'd love to hear how it went!

Have you thought about a GUI layer on top of that, named uberhaupt? But maybe that would create too much overhead..

lol, no we haven't. That is hilarious though! We might steal that name for some future project.

Re: Garn, a TypeScript-based Nix front end

#7
I am thrilled to hear that this effort exists.

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.

Re: Garn, a TypeScript-based Nix front end

#8

I am thrilled to hear that this effort exists. 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…

It’s to allow interpolation of packages and environments. But in practice we don’t use it that often, so we were thinking of switching the main function to using just a second string argument. (In other words, I agree.)

Re: Garn, a TypeScript-based Nix front end

#9
post #8

I am thrilled to hear that this effort exists. 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…

It’s to allow interpolation of packages and environments. But in practice we don’t use it that often, so we were thinking of switching the main function to using just a second string argument. (In other words, I agree.)

That seems reasonable! I can’t really locate any examples of that functionality. Could you show me what that would look like?

Re: Garn, a TypeScript-based Nix front end

#10
I use the syntax of nix (and SML derived languages in general) as a reminder to myself that those who complain about the syntax of Lisp probably just have different taste than me, because there are people out there who prefer the syntax of nix to that of Lisp.
Post reply on HN