News for hackers. Stuff that matters.

xnoreq

Re:Former Microsoft dev built a 2.5KB Notepad clone on Thursday July 02, 2026 @01:41PM (#48764884)
So far and yet so close...
Re:One Million Passports Leaked Online on Tuesday June 30, 2026 @02:14AM (#48729084)
Oh, it happened? Then it must be true!
Re:Oil is near a price that hurts the economy on Tuesday March 10, 2026 @11:27AM (#47324587)
Didn't know Vienna was a country.
Huh? Golang doesn't have async?!
Re:The Polyglot NixOS on Tuesday December 23, 2025 @05:52AM (#46364266)
What?! Insane take. NixOS is where the most "magic" happens, over and under the hood. It brings it's own language!

Simple package based distros like Arch basically just extract archives. Very few packages trigger post-install steps which usually just (re)generate something like initrd.

Afaik, bricking Ubuntu is either due to user error (e.g. mixing incompatible package sources) or the devs released broken/buggy packages...

Re:A million ways to die from a data race in Go on Tuesday November 25, 2025 @02:39PM (#46049796)
Though a good language would point out that what the junior (or in some cases even senior) dev is holding in their hand is in fact a gun and not a gun disguised and marketed as this nice and easy to use toy, which is especially true for Go.

One must keep in mind that devs manage to implement even flawed logic that is directly reflected by the code. I'd rather not give them a non-thread safe language that provides a two letter keyword to start a concurrent thread in the same address space. Insane language design.

Huh, I used the extra time I had during Covid to educate myself on health, nutrition, exercise. I lost 15 kg, reached my target BMI and have been replacing fat with muscle since.

I am the healthiest I've ever been in my adult life thanks to Covid.

Sure, we can. You're wrong.
Re:Error Handling Patterns on Thursday May 04, 2023 @06:47AM (#35813498)
The issue is that in many programming languages that offer exceptions, exceptions are misused to handle common and unexceptional non-success cases. I think that is because it is hard to draw a sharp line between the two.

Java already went in the right direction with distinguishing errors from exceptions and having "checked" (that you cannot ignore) exceptions, but the implementation of those concepts sucks. Also, generics, which allow the implementation of "sum types", came later and so sum types were never established as the way to do error handling.

Re:Why thinking hard makes us feel tired on Friday August 12, 2022 @06:50PM (#32444897)
Good point. To me it doesn't really matter if I do 2 large meals or 5 small ones. With the "constant eating" I meant the duration and not the frequency.
Re:Why thinking hard makes us feel tired on Friday August 12, 2022 @03:30AM (#32435544)
I once had the same problem. That usually means unhealthy diet and constant eating and lack of exercise that all result in huge insulin spikes and insulin resistance.

Try 16/8 intermittent fasting and a healthier, more balanced diet and walking for a few minutes after meals and you will feel like a new person. After meals you will feel energized and awake.

Re:Why does anything exist? on Thursday August 11, 2022 @05:33AM (#32423381)
In frequentist statistics it's either 1 or 0 after the experiment (dice roll, card flip or universe creation). Either it happened or it didn't.
Re:Where does energy go during destructive interference? on Thursday August 11, 2022 @04:46AM (#32423113)
What are you talking about? Do you mean first few frequency bins, and setting the others to zero? That would be a simple linear-phase lowpass filter. And if you do the shifting properly then you will see that it has a positive group delay.

There are filters with negative group delay, however. But FFT is irrelevant for that and it's not a time machine either.

Re:Dark Matter Doesn't Exist on Thursday August 11, 2022 @04:33AM (#32423025)
Thanks. I don't see what would clump, because it's not negative-mass matter floating between galaxies that I'm suggesting.

Just like entangled particles that are lightyears apart, when you measure the angular momentum of one, you know the other's because of conservation laws and not because of some hidden object nudging the particle the right way either.

Spacetime bulging the other way ("anti-gravity") would simply be a feature of spacetime to conserve some other property. In my example that would be the water pressure that wants to stay constant.

Some commenter below mention that this is like a waterbed. I like that analogy. If you put a large marble on a waterbed, not only will it create a trough, it will also ever so slightly lift everything around it.

Re:Dark Matter Doesn't Exist on Wednesday August 10, 2022 @07:08PM (#32419584)
May I get your thoughts on this idea of mine: We all know the marbles on a rubber sheet experiment. Masses produce "dents" in spacetime that "pull" on other objects.

Couldn't it be that that these dents are balanced out by bulges between the masses, that would additionally "push" smaller masses (like solar systems) towards larger masses (like the centers of galaxies)?

In an experiment it would look like this: the rubber sheet seals the top of a container filled with water. Now if you push down at some point, the increasing water pressure will push up all around that point. If you now added a marble onto that bulge, it would roll down a steeper angle than it would in the normal experiment ... just like if there was extra mass ("dark matter").

Re:Why does anything exist? on Wednesday August 10, 2022 @03:00PM (#32416871)
Anything exists because of survivor bias? That's backwards logic / you've missed/evaded the question.

It's not like asking P(A|A), it's not even asking why P(A) > P(N). It's asking why P(A) > 0, which it evidently is.

Statistically, one could make the argument that there are infinite possibilities of A(nything) and just one of N(othing), so the odds are stacked infinitely high against nothingness.