TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Nix Language Primer

122 pointsby binaryphileover 6 years ago

7 comments

Harkinsover 6 years ago
Does anyone know the rationale for creating Nixlang? Guix's use of Scheme proves there isn't a novel feature unavailable elsewhere, so it seems like a lot of wasted effort to implement a language that will likely only ever be used for one suite of programs. (And tooling; though almost none exists now, making the choice even more expensive.) I've tried to find one, but "nix" is a difficult thing to google for given the couple decades people have used it as a catchall term for unix and unix-like operating systems.
评论 #18379647 未加载
评论 #18379754 未加载
评论 #18380410 未加载
评论 #18381395 未加载
评论 #18381130 未加载
评论 #18379635 未加载
评论 #18383922 未加载
评论 #18385011 未加载
zimbatmover 6 years ago
A few correction on the otherwise good article:<p>* Nix 2.0 includes the repl. Just run `nix repl`<p>* The URL literal returns a string<p>* It would be good to explain how the `&lt;...&gt;` notation resolves paths from the NIX_PATH. For example `&lt;nixpkgs&gt;` looks for the `nixpkgs` key in `NIX_PATH=nixpkgs=&#x2F;path&#x2F;to&#x2F;channel`
评论 #18383378 未加载
评论 #18416786 未加载
rufugeeover 6 years ago
I switched all of my machines to NixOS for a few months. It was a wonderful experience being able to keep all my environments in sync. Nix the language is one reason I reverted to Ubuntu a few weeks ago. It just didn&#x27;t mesh well with me....so when the inevitable problem occurred, it was a pain to deal with.<p>Other pain points:<p>- the NixOS learning curve is steep. There are two many tools with too many obscure options with sometimes overlapping features.<p>- small group of maintainers with no real documented security process...just an assurance that they path as quickly as possible<p>- many packages are old if they&#x27;re not mainstream<p>I would love to see the concept of Nix reimplemented in a non-niche language without the fsf zealotry... I&#x27;d switch my company to something like this in a heartbeat. I think there&#x27;s a real business opportunity for someone willing to take that on.
评论 #18384456 未加载
nwmcsweenover 6 years ago
I don&#x27;t understand why any languages exist for describing packages, its a layer above describing real dependencies like with make, ninja, etc. Just have an os written in something like premake but with a nicer DSL.
评论 #18382795 未加载
评论 #18382755 未加载
malkiaover 6 years ago
There is also <a href="https:&#x2F;&#x2F;jsonnet.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;jsonnet.org&#x2F;</a>
评论 #18381486 未加载
spacesuitman2over 6 years ago
Why the need for another new language? Why not just use Guile or Scheme instead?
评论 #18381508 未加载
r32a_over 6 years ago
I&#x27;ve had the displeasure of being forced to use nix and to me it seems like an overengineered piece of garbage. I don&#x27;t see why anyone should use this vs competitors
评论 #18379957 未加载
评论 #18380367 未加载
评论 #18380756 未加载
评论 #18380118 未加载
评论 #18380218 未加载
评论 #18380361 未加载