Better HN
topnewbestaskshowjobs
Log inSign up

dtech

8,715 karma · joined Feb 25, 2014 (12y ago) · 2,256 submissions

Submissions

comment 3y ago · link · parent

When you sort them they will be ordered by generation time. This is useful in UIs, and greatly improves performance in databases (how much depends on DB and use case).

comment 3y ago · link · parent

Only v6 and v7, v8 is "whatever you want".

comment 3y ago · link · parent

v7 looks nicer since it solves v4's locality issue and you're still a gazillion times more likely to win the lottery than generate a collision.

comment 3y ago · link · parent

Which is another weird thing. US declared the space race "won" when they got to the moon, despite being behind in all other milestones like sattelite and manned space flight.

If SU got to the moon first US would've ignored it too and said Mars was the real target...

comment 3y ago · link · parent

While funny, I think parent meant more like alt text.

comment 3y ago · link · parent

iPhone has like a 33% market share so I wouldn't call it common if you can't reach 2 out of 3 people on it at least.

In contrast, in many European countries Whatsapp has 90%+ penetration [1]. Even where it's relatively unused it's more common than iMessage.

[1] https://www.statista.com/statistics/1311229/whatsapp-usage-m...

comment 3y ago · link · parent

SMS is cheap now but wasn't universally when Whatsapp gained critical mass.

Nowadays it's mostly about convenience and features compared to SMS, and iPhone has a much smaller marker share in Europe so iMessage isn't a thing.

comment 3y ago · link · parent

They likely do not want to make an enemy of Nintendo, whether Dolphin is legal is only tangentially related.

comment 3y ago · link · parent

I would be so happy if can go back to a world where advertising happens purely based on the content like we've had for ages in TV/radio/magazines. The amount of privacy we've globally lost just for a few advertising dollars is atrocious.

I've never been convinced that it even adds that much value for advertisers, but they must think otherwise and I guess the sheer amount of money and effort that is put into targeted advertising shows otherwise.

comment 3y ago · link · parent

Do you have any sources that back up increasing prevalism over better recognition and broader diagnostic criteria? Afaik almost everyone chalks it up to those 2.

comment 3y ago · link · parent

In the Netherlands all the big bike brands are doing a lot of E-bikes, and there's a gazillion small competitors who do cheap bikes with mostly off-the-shelf components. The bigger brands include Gazelle, Giant, Batavus and Sparta.

comment 3y ago · link · parent

Blitzcaling to achieve monopoly is not the only reason for funding. A manufacturing company like this has high up-front costs for R&D and manufacturing, orders of magnitude more than a typical software companies. You also don't need to chase a monopoly to make expanding to new market with investor money a sound decision. Obviously VanMoof didn't make it work here and had horrible OPEX due to expanding to markets without getting the sales to support it.

comment 3y ago · link · parent

Most other languages agree that checked exceptions are not good by not having them.

As for alternatives, Try/Result and similar monads have decent adoption even in Java, but personally I quite like the Kotlin philosophy [1] to not have generic error containers and either use runtime exceptions for errors that cannot be reasonably handled by the caller and encapsulate failures in the return type if they can.

[1] https://github.com/Kotlin/KEEP/blob/master/proposals/stdlib/...

comment 3y ago · link · parent

You already have to guess. All method calls van throw Runtime exceptions.

comment 3y ago · link · parent

They are so bad even Java stdlib stopped using them for the most part. Nearly all Java 8+ APIs like streams use unchecked exceptions.

comment 3y ago · link · parent

North-western Europe generally does a lot less for pain management than US and the rest of Europe. It's a big complaint of expats.

I've heard it explained as a cultural remnant "pain belongs with life, suck it up" from protestantism.

comment 3y ago · link · parent

afaik the person you replied to is wrong, using System.arrayCopy would definitely make a copy and not be optimized away.

Maybe poster meant only copying the reference with `char[] copy = original` which indeed does nothing, but that's not a defensive copy.

comment 3y ago · link · parent

Iirc correctly the youtube-dl thing was about an additional layer of "protection" that was only used for music video's and the like

comment 3y ago · link · parent

The agreement is that if you earn a wage you have your time available for the employer, so they could no longer reject offers.

You're saying that they should get both the benefits of freelancers (pick work) and employees (minimum wage).

comment 3y ago · link · parent

That would only hold true if shares always trade against a fixed P/E ratio, and with rising interest rates up P/E ratios have historically gone down.

comment 3y ago · link · parent

From memory: Products prices are determined by costs + profits. Inflation is a rise of that sum. Economists traditionally hyper-focus on costs, primarily wages, as the cause of inflation, while completely ignoring profits.

The podcast features a researcher, who has received high pushback from the economics corner although recently more articles support her view somewhat, who says that her research shows corporate profits are the main driver of the 2022+ inflation, and also played a - lesser but under-highlighted - role in the past inflationary periods in the 20th century.

One main reason she highlights is companies expect higher costs and raise prices, but those costs don't materialize, leading to higher profits. This also has a compounding effect throughout the supply chain because each intermediary adds an effect, resulting in a high increase at the consumer end.

comment 3y ago · link · parent

For a counterpoint, see the Planet Money episode "Inflation and the Profit-Price Spiral" [1], where a researcher has some convincing arguments that yes, corporate decisions and profits are one of the most important drivers of the current inflation.

Personally I found it much more convincing than this article.

[1] https://www.youtube.com/watch?v=mu0HLfcK5hs

comment 3y ago · link · parent

I don't see how this is any different than public holidays.

comment 3y ago · link · parent

There is a massive difference between a feature universally offered by the language and something only supported by using a specific library of compiler plugin...

comment 3y ago · link · parent

What a weird take. Parent obviously meant @X meta-programming annotations, not language syntax and keywords with a specific definition.

The definition that includes it is so broad that it loses all meaning, it would make "private", "class" or "boolean" also annotations.

comment 3y ago · link · parent

You 2FA trough your bank app, SMS is too insecure for this purpose.

comment 3y ago · link · parent

You seem to trigger on "diversity" and immediately go into a - slightly troubling if you ask me - rant. Diversity means "diverse group of opinion on free software" in this context, not necessarily "diverse group of humans".

comment 3y ago · link · parent

squashing is a form of rebasing, albeit a narrower and simpler case. Indeed I do not understand why rebasing is so popular instead of merging when you're going to squash at the end anyway.

comment 3y ago · link · parent

The EU has brought several antitrust cases against Microsoft regarding Windows and Office and succeeded, and recently fined them for anti-competitive behavior on video calling software.
1
131415
76