News for hackers. Stuff that matters.

hoverbear

Show HN: Install Nix on Your Steam Deck

https://determinate.systems/posts/nix-on-the-steam-deck

I wrote an article about how to get Nix on your Steam Deck!Big takeaways for me: * Steam Decks are very fun to hack on * Linux Consoles are good * There are more knobs in systemd units than I remember * Flatcar Linux is a thing that exists * Remoting into a console is fun * A/B boots are less interesting than one might expect when you're used to NixOS

( Read More... | no comments | 3 points | on HN )
> How does it do this? Just a list of known packages and their dependencies, or?

It checks a known registry or reads package metadata.

> I'm using https://github.com/LaurentMazare/tch-rs/ (rust bindings for pytorch's c++ api). Depending on the hardware I'm building for I either need to download a cpu build of pytorch, or a cuda build of pytorch. How would this work with riff?

Riff doesn't track which GPU you use at this time, so it can't track that which build of `pytorch` to use, sorry. It might be something we make it aware of if we have enough evidence it would be helpful.

> Is there any hope of a good cross compiling story? If so, that would be awesome (currently I just don't even try if there are significant C dependencies)!

Regarding cross compiling: We've spoken about it, and I certainly believe it would be desirable. I imagine it would come in a later version. We've taken some steps to ensure we don't rule out that feature later.

> How thoroughly are dependencies cached? Backed to the pytorch example it's a fairly big (and thus slow) download, I don't want that happening too frequently.

Dependencies are cached by Nix, so they should not become invalidated very often. If your tempdir erases we may lose the generated lock file (We've been discussing where to place these perhaps more permanently) which may force another download if there was an update.

I've been using https://the.exa.website/ and it works fairly decently. Does the same coloring and tells you git status. Doesn't do icons though.
Well, make a rule. If you buy it you have to open it and do something with it. That might slow you down.
Re:Pinebook ARM Linux Laptop Powered by Allwinner A64 CPU on Thursday November 24, 2016 @02:38PM (#13032293)
Oh hrm, yes I didn't think of those. Some even have SIM cards.
Re:Pinebook ARM Linux Laptop Powered by Allwinner A64 CPU on Thursday November 24, 2016 @02:13PM (#13032169)
Are there any other 64 bit ARM laptops out there worth looking at? Maybe with a GSM/LTE module, more RAM, or a better screen?
Re:Flock, fast and free team messenger on Thursday November 17, 2016 @02:02AM (#12975053)
Awesome. Best of luck with the product.
Re:Flock, fast and free team messenger on Thursday November 17, 2016 @01:35AM (#12974933)
I'm rather curious, what's preventing you from supporting Firefox?
Re:Reboot – conference for failed startup founders on Wednesday November 02, 2016 @09:10AM (#12854291)
> Just, hard lessons.

This is rather bad grammar. :(

Perhaps you might mean "Just hard lessons."

Good luck with the conference!

Re:Pretty State Machine Patterns in Rust on Friday October 14, 2016 @09:55AM (#12708060)
Re:Google Deactivates Web Search API on Wednesday May 04, 2016 @01:31AM (#11626422)
Like how they don't support SNI? https://github.com/tkrotoff/osteo15.com/issues/16
Re:Tikv: Distributed key value store powered by Rust on Monday April 04, 2016 @09:06PM (#11427055)
Hi! Thanks for linking this! We're hoping to add more robust features like dynamic membership soon! I'm graduating and will have more time.

If you feel like hacking on our code please just let us know, we'd love to help.

Re:April Fool's day links on Friday April 01, 2016 @12:51AM (#11402729)
The linked commit includes what seems to be code to check code against pep 8. Neat.
Re:0 A.D. Alpha 20 Timosthenes on Friday April 01, 2016 @12:37AM (#11402658)
I had a great time playing 0 A.D., it really felt like the old Age of Empire games to me while still being different enough to be unique.

The fact that it's open source is even more amazing.

Still need to install java and get the software installed and working. Was a huge PITA in Linux so I ended up using a windows boot and even that was spotty.
Bought one of these awhile ago, the stock firmware and UI is easily some of the worst I've ever used.
Re:Show HN: Emono – Your own mobile game in 30 days on Saturday December 12, 2015 @08:27PM (#10725014)
Seriously, you're sending a 33 megabyte gif on your landing page? If I hit that on mobile I'd be so pissed off. Use a gifv or something maybe?
Re:Remove the ++ and –- operators on Thursday December 03, 2015 @04:40PM (#10672869)
We don't have `++` and `--` in Rust either, and I really don't mind. The amount of times I've went to do a `++` where a `+= 1` was clutter has been perhaps one or two times.

Then again, my most common use for `++` was `for (;;) {}` index, and we have better in these new languages like Rust and Swift.

There are millions of people in this world trying to learn to code and understand the layers upon layers of cruft and quirks we've added. I don't mind the `++` or `--` operators, but I certainly don't mind them being gone either. They add extra complexity to code which is already arguably too complex.

In any case, I favor understandability over guesswork, and `++` is another odd cornercase which you have to mentally `grep` over.

One nice thing is that it is quite inaccurate, I've visited a large number of the sites it tells me I haven't.
Re:New Windows 10 Devices From Microsoft on Tuesday October 06, 2015 @05:48PM (#10342658)
Looks like a great Linux laptop... Let's hope it works with it.
So sad to see there are no 15inch or lower laptops with 16gb of RAM. :(
Re:Ask HN: Do you learn a lot from IRC? on Friday July 31, 2015 @06:11PM (#9984820)
IRC is central to my development as a companion to searching the web. In IRC you can have real time discussion and get good, immediate leads on problems too arcane for Stack Overflow et al.
Re:Flux Architecture Visual Cheatsheet on Wednesday July 29, 2015 @11:06AM (#9969105)
The little "Tweet/etc this" box is so awesome, it actually half covers the first letter of each line and follows you down the whole page! How user friendly.
They apparently are clever enough to understand the identification algorithm, but not the social implications.

Older »