i-use-nixos-btw

Joined 3 years ago

Karma
644
Submissions
175
Member since
Feb 20
View on Hacker News

Recent submissions

Comment · 1 year ago
Computing devices hardware and operating systems should be treated as a consumer's choice.

If a company offers some benefit at the cost of some restriction, then users should decide if that benefit is worth the cost. For most Android users, it will be - my grandma isn't interested in the freedom of indie devs to develop for her phone, she's interested in not accidentally installing malware.

I don't like that as much as you don't - for my own devices. But like anyone else who cares about that, I can root it and get past the digital nanny state.

Comment · 1 year ago
Honestly, I’m against this.

As soon as that is added, people will start to try to optimise their profiles to place them high in the list on certain things, rendering the tool pretty much useless.

The talent people want to find in the talent that doesn’t do everything in its power to say “hey, look at me, I’m talent”, but just… well… does things.

Comment · 2 years ago
This would introduce more problems than it solves 99% of the time. The 1% of the time, it could be very handy.

I haven’t used UV, but it says that it manages python as well as packages - I’m guessing like conda, python-venv, and of course nix does.

If the C api is an issue, it sounds like you have control over it if you need it. You manage the python distribution, so could it be patched?

This way it feels like you’d be able to establish not just what is being imported, but what is importing it - then redirect through a package router and grab the one you want.

This may be particularly useful if you’re loading in shared libraries, because that is already a dumpster fire in python, and I imagine loading in different versions of the same thing would be quite awkward as-is.

Comment · 2 years ago
Ok, tried searching something incredibly niche, and it came up with results that no search I'd tried through conventional methods could.

There's a 50/50 false positive rate, but I can deal with that. It means looking at 10 papers to find 5 useful ones instead of looking at 1000 papers to also find 5 useful ones.

I'm impressed.

Comment · 2 years ago
The nice thing, at least, is that this particular kind of group always lose out in the end. They're divisive by nature and it always eventually turns in on itself. It's a matter of time.

Until then, things are not looking great. When one mod deletes threads because they've had a bad day and cant deal with drama, when other mods start teaming up against the only moderate voice for reaching out to ThE EnEmY, when a huge community member get permabanned for merely voicing disagreement with their own temporary ban (which in turn was only because they - wait for it - "encouraged debate"), it is clear that it won't be long before the community turns on them.

Its just a shame that the big forks are ones run by like-minded activists.

Comment · 2 years ago
- a tmux session persists on the remote machine, whereas with direct SSH a disconnect loses what you were doing

- a tmux session can be used by multiple people

- with tmux a single command “tmux attach -t someusefulname” restores the layout and all of the commands used, saving a bunch of time and opportunity for error

- tmux has an API, so you can spawn a fully loaded session from scratch with code, rather than by manually doing things or by having a pre-made session (this is soooo underrated, especially if you make it configurable)

Honestly there comes a point where you just redesign the software and have it run in a more automated fashion anyway, but for the odd job that you have to run from time to time it’s very handy to have tmux as a persistent, shareable, configurable scratch space.

Comment · 2 years ago
Oh I see!

Yes, absolutely doable in Nix.

Derivations are just a set of instructions combined with a set of inputs, and a unique hash is made from that.

If you make a derivation whose result is the invocation of another, and you try and grab the outcome from that derivation, here’s what will happen: - it will generate the hash - it will look that hash up in your local /nix/store - if not found it will look that hash up in any remote caches you have configured - if not found it will create it using the inputs and instructions

This is transitive so any missing inputs will also be searched for and built if missing, etc.

So if the outcome from your process is something you want to keep and make accessible to other machines, you can do that.

If the machines differ in architecture, the “inputs” might differ between machines (e.g. clang on Mac silicon is not the same as clang on x86-64) and that would result in a different final hash, thus one computation per unique architecture.

This is ultimately the correct behaviour as guaranteeing identical output on different architectures is somewhat unrealistic.

Comment · 2 years ago
Yes and yes.

These applications specifically because anything that looks at anything on the micro scale includes these as “possible applications”. They sound cool and exciting, and the urge for making them has been around since before Feynman’s Room At The Bottom lecture.

But my comment is mainly surrounding the farce of making a cool discovery that progresses an area of understanding, and then being asked a question that is best posed to engineers: “but what can we do with it?” Wrong field, wrong people, wrong question.

Imagine if astrophysicists were asked these questions. “So you’ve discovered a new kind of star that is made entirely of sponge? What applications do you think will come out of this research?” “Well we hope it will help with Dyson Spheres, Astrology and sea navigation”

Comment · 2 years ago
Decentralised caching, absolutely - unless I’m misunderstanding what you mean there. You can build across many machines, merge stores, host caches online with cachix (or your own approach), etc. I make fairly heavy use of that, otherwise my CI builds would be brutal.

Memorizing isn’t a term I’m familiar with in this context.

Comment · 2 years ago
Weirdly enough I came across a blog post last week that talked about exactly this. https://j.phd/nix-needs-a-native-build-system/

Nix can be used as a build system in the same way that bazel can. It already has all of the tooling - a fundamental representation of a hermetic DAG, caching, access to any tool you need, and a vast selection of libraries.

The only catch is that no one has used it to write a build system for it in public yet. I’ve seen it done in a couple of companies, though, as using Nix to only partially manage builds can be awkward due to caching loss (if your unit of source is the entire source tree, a tiny change is an entirely new source).

Comment · 2 years ago
You sound like the perfect Nix cult memb… erm, user. It’s everything you describe and more (plus the language is incredibly powerful compared with starlark).

But you speak from sufficient experience that I presume Nix is a “been there, done that” thing for you. What gives?

Comment · 2 years ago
If it were to be released publicly, I'd give it a week before NSFW models based on it were uploaded to Civitai.
Comment · 2 years ago
> While no immediate practical applications exist, the researchers envision enhanced efficiency in micromotors, microscale cargo transport, and materials that can self-assemble or self-repair.

Everyone who has ever written a grant application will recognise this wording.

Comment · 2 years ago
Constructive criticism.

I would like to see much, much more in a demo. Probably around 20-30 minutes.

What was shown in the demo video was seemingly the functionality of Dropbox, shown working with one file manager and one OS.

I know it is more than that. I’ve checked your docs. You have branching models. You have cross OS support. You have a lot going on.

But that demo video really put me off. It doesn’t demonstrate anything that seems particularly useful to me, especially on the main selling point: version control. It spends most of the time showing automatic file sync, which (although not easy to do) is a basic feature of so many cloud storage platforms that it doesn’t have the wow factor these days. (It’s also a feature I find annoying and would want to disable, but it seems to be core to your approach so meh)

I know not everyone will jump immediately to the demo video to see it, but it’s what I did, and honestly… I’d scratch it and do a full intro video and put resources into doing it right.

Comment · 2 years ago
police knock on the door

“DAD, YOUR SPRINKLERS ARE HACKING THE RECYCLING COLLECTION TIMETABLES AGAIN”

(spend enough time around places like this, though, and one could easily imagine this being a thing in 2032)

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton