News for hackers. Stuff that matters.

mrslave

Re:NixOS Is Not Reproducible on Saturday October 26, 2024 @09:08AM (#41954514)
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.

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...

Re:The rarest move in chess [video] on Monday June 10, 2024 @10:09PM (#40641540)
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...

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.
Article on original site that incidentally includes a lot less JavaScript

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

It's the slave morality for an inflation-based economy.
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.)

Re:An AI Girlfriend made $72K in 1 week on Saturday May 13, 2023 @10:17AM (#35928650)
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?
Link please?
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.
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.
Re:Our production servers were suspended by Google Cloud on Monday March 13, 2023 @10:05AM (#35135868)
Why does everyone want a copy of our identity documents? It's creepy and unsafe.
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.

Re:Is_email() on Wednesday February 22, 2023 @05:58PM (#34904263)
O PHP! The language where it's difficult to discern between genius and madness.
Re:Bullshit Has Dominated the Tech Industry on Saturday February 18, 2023 @09:44PM (#34853718)
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.
Re:Gentoo Linux 2022 Retrospective on Saturday February 11, 2023 @07:07AM (#34751642)
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.

Re:Information about a recent security incident at Mailchimp on Saturday January 21, 2023 @06:31AM (#34465697)
Unless they expressly commit to deleting it, or you were paying per GB for storage, consider it saved forever.
Re:Jack Ma cedes control of Ant Group on Sunday January 08, 2023 @12:56AM (#34296484)
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.
Re:Ask HN: What is the best thing you read in 2022? on Tuesday December 20, 2022 @10:44PM (#34076394)
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.

Re:NixOS 22.11 “Raccoon” Released on Thursday December 01, 2022 @05:35PM (#33823939)
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
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.

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?
Would you please explain it to those of us who didn't experience this? What was it like before, what changed, and why?

Older »