Recent submissions

Comment · 2 days ago
It's funny to see what a parallel you have to my story.

my reputation is 29,459, my last answer October 15, 2021, close enough to be considered the same IMO.

For me, the thing that drove me away, is that you'd spend time on writing good answers, to provider lore, etc, but it was increasingly difficult to find "good" questions to answer. There were increasingly many "homework" questions, and far fewer questions where people _had_ put the effort in.

And, an increasing animosity to the people answering the questions.

The community became toxic, and it wasn't the only the gatekeepers, everyone wanted something for free, and StackOverflow suffered from the "open source burn-out" problem.

Certainly I did.

Comment · 2 days ago
But that is _exactly_ the problem.

Flights take x hours in the sky, and so would have left at `2026-10-01T09:00:00, America/Havana`, and arrives at Miami at `2026-10-01T10:25:00, America/Havana`.

Now, they have to choose, do they arrive at 10:25, and leave at 10:00? Or do they leave at 9:00, and arrive at 9:25, since only _one_ of those two timezones is changing. It is extraordinarily unlikely that they'll choose to just circle in the air for an hour so that they can just keep the same departure and arrival times.

Comment · 3 days ago
This is so very very relevant.

Top salary earners, who do manage to save somewhat for retirement end up getting punished by these wealth taxes as well, especially since, generally, you need money in order to be able to move money around, in order to be able to save money on these sorts of taxes.

Comment · 11 days ago
The UK, at least, is big enough that you can have multiple regions within the same country. There's a lot of distance between Glasgow and London, for example. Maybe not enough if both are targeted with nuclear warheads, but at that point, we have bigger fish to fry I suspect.

Most European countries have enough space within the country to do that, and, for most things, except banking typically, hosting within the EU is enough, it doesn't have to be within your own country.

Comment · 1 month ago
Depends on the specific car, Tesla's are notoriously expensive to insure, but I believe that the Volkswagen ID series is much more reasonable.
Comment · 1 month ago
This depends on country, and what you consider to be a comparable car.

If we compare, for example, the Tesla Model 3 (RWD) against the BMW 3 series (320i), then we get:

NL: Model 3 ~€36K vs 3 series ~€50K UK: Model 3 ~£37K vs 3 series ~£41K

In both countries the Model 3 is more expensive than that the 3 series.

Second hand the maths can change again, since EVs typically depreciate faster, due to battery degradation fears, and the fact that range on newer cars is always improving, but still, typically for a four year old version of the above, the Model 3 is still cheaper than the 3 series.

There is, of course, the discussion on whether it is fair to compare a model 3 with the 3 series, but it is often used, so I'll go with it.

If you want to compare cheaper cars, then you could compare a Ford Focus with an MG4 EV, and in the UK the EV wins, in NL, the Gasoline car wins, but in both cases, they are more price comparable.

Comment · 1 month ago
This, and then, if you notice, and backspace to remove the 'e', it doesn't put chess back into the search results, since it figures that everything that matches 'che' also matches 'ch', and so doesn't update it. Sometimes, if you add the 'e' again, it _will_ find chess, sometimes you need to type the 's', or even the final 's' before it gives you chess back again.

And sometimes, it finds what you want, but before you can select it, it decides that it has found something better, and places that in the place where you wanted to select, causing you to select the wrong thing. And then it thinks that because you selected this, it must be what you want, and starts to push it to the top…

Search is definitely frustrating.

Comment · 2 months ago
It definitely has a following.

This is the challenge of extreme weather, it's either drought or floods, and wild swings from the one to the other. As a kid growing up in Australia, we heard many such stories, especially if the rains came on too suddenly, since then the ground can't absorb the water, and you get flash floods.

As if being a farmer isn't already tough enough.

Comment · 2 months ago
This is the bit that I don't get though, if it is all about the "travel and lifestyle", then why would I want to end up in a rural village in Spain. My travel is more limited, and I'm hardly following the "digital nomad lifestyle".

Not saying it can't be fun, but you can live in a country town almost anywhere, if I just want a permanent base hours from any airport, and they all tend to be a lot cheaper than living in the "big smoke".

Comment · 2 months ago
Exactly this. Or charge my laptop via the phone cable, sure, it's slower, but it still works.
Comment · 3 months ago
That is exact problem.

Basically JEP401 guarantees that just adding "value" to the class won't change behaviour, which also means that you are not allowed to see object tearing, which requires atomic operations on the field.

Relaxing that would break safe publication rules, at least for Java.

Comment · 3 months ago
That is a nice piece piece of knowledge! We have an Integer cache in our product, and the only reason that it hangs around is that it caches 0..1024 instead of -127..128. By setting this value, we could simplify our code, ever so slightly.
Comment · 3 months ago
What is the problem at hand?

How to get customers to make poor financial decisions? How to sell more phones to people that can't really afford them?

Seriously, what is the problem that is being solved?

Comment · 4 months ago
They didn't blow the whistle though, not really.

Especially not when gp said that they expected the department head to brush it under the rug. If reporting things "up the chain of command" was really expected to root corruption out, and this fraud is 100% a form of corruption, then whistle blowing simply wouldn't be needed.

They covered their own ass, which is fine, in that later the head can't say they didn't know about it. But they didn't blow the whistle.

Comment · 4 months ago
There are plenty of cases where flattening an object that takes 64bits would make sense.

The current code will help with `Integer[]`, `Char []`, etc, as well as combinations of `byte`, `char`, and `int`. Past that it doesn't really help much.

It would be fantastic if we could also flatten something like `Pair` or `Tuple`. However, even with compressed pointers, that is 64 bits, so that, plus the `null` bit, means it can't be flattened, which is a real shame. For various reasons, I have `List<Long>` in numerous places in my code, It would be great if that could also be flattened. However, since a Long is 64 bits, it _also_ can't be flattened. https://openjdk.org/jeps/8316779 would go a long way to to helping here, since then at least the null bit could be thrown away, which would allow more things to be flattened.

And then, if you want to go Wishlist land, something that would allow SSO (Small String Optimisation) would also be awesome, but that would require something akin to unions in Java, which we can _kind_ of do with sealed classes, but, since String is a final class, can't be retrofitted back into the language.

Does anyone know if Valhalla will flatten "simple" sealed classes, where every sealed class is small enough to be flattened? Since that would also be a powerful example to share.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton