Better HN
topnewbestaskshowjobs
Log inSign up

mrslave

937 karma · joined Nov 28, 2012 (13y ago) · 407 submissions

Submissions

comment 2y ago · link · parent

It's more like the whole upgrade is either successful, or it is not, and you are not left in an indeterminate state.

E.g. A depends on B. In a large update, B updates, something unrelated fails to install and the update fails, and now A doesn't run because it wasn't upgraded and the still installed old version of A depends on the no longer available previous version of B.

In NixOS, you either enter the new environment with all packages updated, or you don't. In the situation where you discover run-time - not install-time - errors, you can simply roll back to the previous set of packages. If the new packages cause a system crash, you can enter previous states from the bootloader.

Now none of this magically solves the software defects themselves. But it gives you a consistent system state that can be transactionally upgraded, or reentered at any time. And then you can raise the appropriate bug tickets.

Your system configuration is in a single file and the need to reconfigure different services in a particular order is gone.

Also your dependencies are all nicely pinned with Flakes. This makes importing arbitrary dependencies - open-source or proprietary - a breeze. This has removed any previous appetite we had for a monorepo, which was primarily to ease access to our other libraries.

It's all very nice, once you are over the not insubstantial learning curve that is.

2.

Paper Straws Are Toxic(xatakaon.com ↗)

3 points · by mrslave · 2y ago · 1 comment

comment 2y ago · link · parent

PEDs.

See the Kyle Mullen death during the SEAL entry testing[0] and subsequent policy to test for PEDs[1].

[0] https://news.ycombinator.com/item?id=32656856

[1] https://www.military.com/daily-news/2023/10/20/navy-seals-st...

comment 2y ago · link · parent

Interesting, but I initially expected this to be about the unusual opening employed to victory by Magnus Carlson against Kacper Piorun on May 7, 2024[1] (1. a4 e5 2. Ra3).

It's even more interesting because an unknown IRL Chess.com player named Viih_Sou (since revealed to be Brandon Jacobson[2][3]) used this opening to defeat Daniel Naroditsky on May 2, 2024[4] only to be subsequently banned for violating the Fair Play Policy[5].

[1] https://www.chess.com/analysis/game/live/108840009759?tab=re... [2] https://www.reddit.com/r/chess/comments/1claxsm/its_me_viih_... [3] https://en.wikipedia.org/wiki/Brandon_Jacobson [4] https://www.chess.com/analysis/game/live/108394316331?tab=re... [5] https://www.chess.com/blog/Utkarsho/a-grandmaster-account-ge...

comment 2y ago · link · parent

Just to be charitable to GP and not to enter the debate, many of my colleagues have replaced Google with ChatGPT as their first port of call.

comment 2y ago · link · parent

Article on original site that incidentally includes a lot less JavaScript

https://www.bostonglobe.com/2024/05/15/magazine/on-the-trail...

comment 2y ago · link · parent

re: https://news.ycombinator.com/item?id=39522249

8.

Why time seems to go by more quickly as we get older (2016)(theconversation.com ↗)

5 points · by mrslave · 2y ago · 1 comment

comment 2y ago · link · parent

It's the slave morality for an inflation-based economy.

comment 3y ago · link · parent

Slightly off-topic: how practical is it really to build devices (iOS and Android) and web from the same code base?

My poor understanding is that React Native, and hence Expo, doesn't use the same CSS frameworks as web development. I'm curious how that works from the same code base, or perhaps that's one of the major difficulties.

Also I see Expo as a fancy build framework but it's still fundamentally a RN application. Is this correct?

(My front-end colleagues are on another continent and we don't get any water-cooler time. Sorry for the possibly awful questions.)

comment 3y ago · link · parent

https://www.bootstrapworld.org/ for the curious

comment 3y ago · link · parent

I'm curious whether the developers were pitched this by management as some lofty social goal like democratizing digital relationships or perhaps disrupting OnlyFans DMs?

comment 3y ago · link · parent

Link please?

comment 3y ago · link · parent

We'll find out why when the new CTO is publicly announced. I suspect they simply found someone else. Doesn't help that the CEO is quick to make promises verbally, but I'm sure this is common.

comment 3y ago · link · parent

What's your preferred CI/CD system to pair with Gitea? I tried Drone once and found the configuration to be nasty, specifically OAuth2 under Docker Compose. Also the Drone UI left a lot to be desired. This was a while ago so grain of salt etc.

comment 3y ago · link · parent

Why does everyone want a copy of our identity documents? It's creepy and unsafe.

comment 3y ago · link · parent

I won't repeat supportive comments except to say well done.

Feature request: historical tracking. E.g. on update, expire the old record with who & when.

comment 3y ago · link · parent

O PHP! The language where it's difficult to discern between genius and madness.

comment 3y ago · link · parent

I don't get Raspberry Pi. The $35 computer that's often out of stock, doesn't include a USB adapter or case, and is rarely found below $70. And the unfortunately complex boot process involving binary blobs. It's not as cheap & open as originally implied.

comment 3y ago · link · parent

Recovering Gentoo user here. I have lost so many hours to the time sink that is incomplete system package updates on Gentoo. Moved to Nix and never looked back.

On Nix either the install - and occasional build - succeeds and I enter the new environment, or it fails and I don't. In the worst case scenario where the build succeeds but something is funky I can just roll it back.

Now I have all this free time to lose to the time sink that is learning how to package applications in the Nix language.

comment 3y ago · link · parent

https://github.com/iamadamdev/bypass-paywalls-chrome

comment 3y ago · link · parent

Unless they expressly commit to deleting it, or you were paying per GB for storage, consider it saved forever.

comment 3y ago · link · parent

Programmer interrupted

https://heeris.id.au/2013/this-is-why-you-shouldnt-interrupt...

(mirror) https://i.pinimg.com/originals/23/b0/75/23b075bebdcea554929b...

comment 3y ago · link · parent

My understanding is that you don't get to play politics with your success. Had he kept his nose only in his business he probably would have been better off.

comment 3y ago · link · parent

I fizzled on Malazan. Despite warnings that the first book isn't that great - but the series is! - I really enjoyed it. However I subsequently found the second book to be an unsatisfying grind and then so was the third where I stopped half-way.

I have just started The Book of the New Sun and am hopeful it will be a better experience.

comment 3y ago · link · parent

https://archive.ph/Wac0r

comment 3y ago · link · parent

Agreed. When I'm selling Nix to other Linux users, instead of getting lost in an explanation of deterministic package versions, I tell them system upgrades are atomic: you either enter the new environment or you don't. Either way you're in a consistent state. If for some reason there's difficulty booting, you can always go back to the previous system state from the boot menu. Mostly Debian and Gentoo users have nibbled on this bait. Arch users less so. YMMV

comment 3y ago · link · parent

Maybe it could allow for blunders?

While I enjoy the conversation ideas like these create, I'm often left wondering why Fischer random isn't more popular.

comment 4y ago · link · parent

What are the alternatives? Is Bare Metal with OpenStack or K8s any more resilient to administrative DoS? Do we simply not care about this problem because the businesses being suspended are small fish?
12345
14