TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Building with Nix on Replit

82 点作者 amasad超过 3 年前

10 条评论

amasad超过 3 年前
To see and play with what people are building with Nix on Replit check out the #nix hashtag here: <a href="https:&#x2F;&#x2F;replit.com&#x2F;apps&#x2F;nix" rel="nofollow">https:&#x2F;&#x2F;replit.com&#x2F;apps&#x2F;nix</a><p>Users vary from teachers building environments for their classrooms, to hackers tinkering with emulators, to kids making old games like run online.<p>We think we’re just scratching the surface with what we can do with Nix. It’s an outrageously underrated technology.
评论 #28734457 未加载
评论 #28737041 未加载
ghuntley超过 3 年前
See <a href="https:&#x2F;&#x2F;nix.dev" rel="nofollow">https:&#x2F;&#x2F;nix.dev</a> for the best education resource.<p>ps. to run nix on gitpod use <a href="https:&#x2F;&#x2F;github.com&#x2F;gitpod-io&#x2F;template-nix" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gitpod-io&#x2F;template-nix</a><p>pps. i&#x27;m doing a talk on the 6th on nix. Cya there? <a href="https:&#x2F;&#x2F;twitter.com&#x2F;GeoffreyHuntley&#x2F;status&#x2F;1442475105427152899" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;GeoffreyHuntley&#x2F;status&#x2F;14424751054271528...</a>
评论 #28734517 未加载
yjftsjthsd-h超过 3 年前
&gt; For reasons of security, this user does not have root privileges, and therefore cannot install packages using a traditional package manager like APT.<p>Okay, I&#x27;m going to nitpick: Termux proves this isn&#x27;t a requirement of apt, just most distros using it, and in any event fakeroot&#x2F;proot would solve it if that was the goal. Of course, nix is a mostly good system with loads of other benefits; it&#x27;s only that specific reason that feels weak.
exdsq超过 3 年前
I want to love Nix but I just can&#x27;t get it. Worked with it for 14 months and found I struggled to make small changes meaning we had to depend on DevOps for things I could whip up in Docker and bash in minutes. I don&#x27;t even really know why I struggle with it so much, but the startup I&#x27;m working for mentioned using it and I just shuddered thinking about it.
评论 #28738845 未加载
评论 #28736301 未加载
johnnylambada超过 3 年前
I tried to like nix. I spent many hours tweaking my macOS setup but now I’m back to brew. The nix language is just too foreign to my way of thinking. I love the concept behind it but the language is a huge barrier to entry to many people and I believe it will not gain nearly as much traction as it deserves until this is addressed.
评论 #28734290 未加载
评论 #28734265 未加载
评论 #28734324 未加载
ocimbote超过 3 年前
Kudos to the author(s), this article really is a nice written technical introduction, it has all the bases covered for such writing:<p>* it explains in plain English what Nix is.<p>* it provides additional resources<p>* it has hands-on, guided, deliverable, tutorial.
IshKebab超过 3 年前
This is a better introduction to Nix than the official one. One minor nit:<p>&gt; Functional languages are composed of functions that take some input and produce some output. Every time a function is executed with a given input, it will return the same output.<p>Surely that is a property of <i>pure</i> languages, not functional ones. Maybe there are no pure imperative languages but I don&#x27;t see why you couldn&#x27;t have one. In fact it would probably make way more sense for Nix given how much easier imperative languages are to understand.
评论 #28735783 未加载
paulcarroty超过 3 年前
It sounds well but working crappy. Tried to install several nix packages using their tutorials - all failed.
JonathanBeuys超过 3 年前
&gt; Functional languages are composed of functions that take some input and produce some output. Every time a function is executed with a given input, it will return the same output.<p>I think this is not true. If it was this way, there would be no way to read data from an API. read(&#x27;<a href="https:&#x2F;&#x2F;news.ycombinator.com" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com</a>&#x27;) will not return the same output everytime.<p>And it would not be possible to keep track of anything. No counting, no transformation of data, nothing.<p>Googling a bit indicates that people use a mental trick and define the state part of the input of the function. So in terms of getUrl() the current state of the internet is part of the input of the function. And when counting something, the function gets the old sum as the input and outputs the new sum which gets stored in a different place than the old sum so the old sum &quot;did not change&quot;.<p>I see a lot of overhead coming from these mental gymnastics with no benefit. Any short example that shows a benefit?
评论 #28736091 未加载
评论 #28736086 未加载
评论 #28735568 未加载
评论 #28737650 未加载
评论 #28735628 未加载
评论 #28735809 未加载
tsuru超过 3 年前
Was guix considered at all? If so, what were the negatives?<p>I&#x27;m personally getting more enjoyment learning this style of environment and OS management with a more established language for the configuration.