HNHacker News
TopNewBestAskShowJobs

kosherhurricane

164 karma · joined April 19, 2022

submissionscomments
kosherhurricane··on Introducing passkeys in Chrome
I have a novice question:

If I create a new passkey using Chrome on a Mac, is that passkey stored in chrome (via google account) or on MacOS iCloud Keychain?

Would I get to pick one or the other?

kosherhurricane··on AirDrop is now limited to 10 minutes
Capitalism giveth, and capitalism taketh it away. -KosherHurticane
kosherhurricane··on Making a Go program faster with a one-character change
C is an abstraction, and most (all?) cpu architectures pretends to be c machines.

I don't know of any other way of manipulating the cpu as closely as C and assembly. Do you?

kosherhurricane··on Making a Go program faster with a one-character change
I know about this article. Thank you.

I said C is "close to" how a computer works. C is an abstraction, and most (all?) cpu architectures pretends to be c machines. There was a talk (Kelly?) where even assembly is nowhere close to what a cpu actually does.

I don't know of any other way of manipulating the cpu as closely as C and assembly. Do you?

kosherhurricane··on Making a Go program faster with a one-character change
I work on a code base that is a mixture of Go and C.

It's IO, CPU and Memory hungry, and it's distributed.

C is fast because it's close to how CPU and memory actually work. Go gives you 95+% of that plus easy to learn, easy to use language. A new person could start contributing useful features and bug fixes immediately. A senior person could get C-level performance.

More and more of our code is moved from C to Go, with very little performance penalty, but with a lot more safety and ease of use.

Our customers benefit, and our company makes more money.

In the end, that's what software is about.

kosherhurricane··on Scala isn't fun anymore
When Scala was "hot", it was embraced by very good programmers. The complexity of the language sort of demanded it.

Thus, the stuff they wrote were well written.

After they leave, nobody can improve it or change it. (See sibling reply).

It's the people, not the language, that produces good software.

kosherhurricane··on Amazon, Verizon found using IPv4 240/4 addresses
If such huge companies who has both the need and the resources to use ipv6 internally would rather stick to 240/4 or 10/8 ipv4, what hope do smaller organizations have of adopting ipv6?
kosherhurricane··on It’s time to leave the leap second in the past
I think this is the argument NTP makes for not including the offset. TAI can be just another "timezone", so that TZDATA should be to used it to derive it.

But that's backwards. A Stratum 1 NTP usually gets its data from GPS, which HAS the offset (GPS runs TAI). But it only outputs UTC, but not the offset, making other programs compute it from TZDATA. Why is NTP making user programs harder to get the data that IT ALREADY HAS? Because philosophically, NTP is married to UTC (even though NTP is mostly for computers!)

And providing this offset would basically get rid of a large body of people (like the TFA) who wants to CHANGE the definition of UTC, which is a more drastic proposal.

kosherhurricane··on It’s time to leave the leap second in the past
It seems the problem of adopting TAI for computers is because the NTP protocol does not provide the offset. We should add TAI-UTC offset to the NTP protocol.
kosherhurricane··on It’s time to leave the leap second in the past
I totally support this. In fact, I would say all computer systems should just use TAI, and display UTC to the user.

Someone should fork the NTP protocol to use TAI instead, and go from there (or at least provide tai offset).

kosherhurricane··on Germany to Rethink Nuclear Shutdown as Energy Crisis Deepens
You mean like in a global pandemic? (cries in fact based decision making)
kosherhurricane··on I should have loved biology
The coolest thing about biology is that it's not just in every cell of your body, but every cell on life on earth.

But the funny thing about that is that the genes for say the 'helicase' looks like it was made by a copy machine, churned out by the millions, for every life on earth. But if you look very carefully, it's not a copy made from a master copy, but copied from each other. There are small mistakes made by this 'copy machine', so that you can trace the different generations of the copy of the 'helicase' based on what mistakes have been accumulated. You dig further, and you can map out different generations and make a tree like diagram. The further away from each other the two helicases are, the more mistakes have been accumulated.

You keep doing that for every life on earth, and you get something like this [1].

And then you dig further and realize that there is no Hand of God there, and creationism is a primitive explanation for something people didn't understand, like how lightning was God being angry.

[1] https://www.sciencedirect.com/science/article/pii/S235234091...

kosherhurricane··on I should have loved biology
> I don't think this could have evolved through random processes.

It's a logical fallacy that complex processes cannot be created from random events. It certainly can, and evidence is abundant.

Biochemistry of life is an advanced form of brownian ratchet [1]. It started simple, but can get to absurd level of complexity due to selective pressure, and memory via genes. And selective pressure is nothing but maximizing for greatest replication.

There are many interesting philosophical questions inside biochemistry, but a Judeo-Christian Diety is not the most interesting.

[1] https://en.wikipedia.org/wiki/Brownian_ratchet

kosherhurricane··on Bitcoin drops below $20k, Ether cracks $1k – what this means
lol, it's going a lot lower. Probably zero.
kosherhurricane··on Bitcoin drops below $20k, Ether cracks $1k – what this means
Why stop at 4 digits? Why not 3? 2? 1?

Like good ol' Warren Buffet has said, bitcoin has no intrinsic useful value, unlike gold or even lead.

It's tulips all the way down.

kosherhurricane··on Data Race Patterns in Go
>>> The reference to the slice was resized in the middle of an append operation from another async routine.

> What exactly happens in these cases?

Go's append looks like this:

mySlice = append(mySlice, newItem)

To me, this makes it very clear that 1) mySlice pointer can now point to someplace entirely different in memory, and 2) there maybe new allocation.

I write both Java and Go. For personal projects, I always choose go.

kosherhurricane··on Russia’s Ill-Fated Invasion of Ukraine: Lessons in Modern Warfare
> so we had better have some contingencies for a second theater.

USA doesn't have a first theater yet--no troops have been mobilized into Europe.

The $1T/year US military budget is insanely large. Chucking a few $B to Ukraine is not deteriorating anything. Supporting Ukraine is basically a cheap way to tie up Russia and use up old equipment that would have been retired anyway.

US defense industry is known to keep making new stuff and retiring the old in order to keep production lines from dying. There is a very deep reserve for all that stuff. See https://www.youtube.com/watch?v=7CmXz8Qd9yw

As for Taiwan, after the war started, Biden made removed the ambiguity around US involvement. And Taiwan has been preparing for a Chinese invasion far longer than Ukraine preparing for the Russian invasion (mostly since 2014). At this point, it's clear that if China invaded Taiwan, they'd have to do it entirely themselves. I don't think they're ready to take that risk.

kosherhurricane··on Russia’s Ill-Fated Invasion of Ukraine: Lessons in Modern Warfare
Oh, it's worse than that.

US Lend Lease to Ukraine was what, $30B? And that money hasn't been even tapped yet. I don't know the current numbers today, but I'm thinking at least $5B has gone to Ukraine in arms, just from the United States. Ukraine's pre-war military budget seems to be about $6B. US is basically subsidizing UKR defense spending for the next 5 years.

Given the US defense budget is ~$1T, spending < 10% to drastically depleting the Russian military (without even using US forces) is an opportunity that will not be squandered.

Russia can complain all they want, but the truth is they can stop this war immediately by withdrawing. It's a war of choice that they can no longer withdraw from.

kosherhurricane··on Russia’s Ill-Fated Invasion of Ukraine: Lessons in Modern Warfare
> A drawn out conflict favors Russia

What I'm about to say maybe be totally shocking, but it's the truth. A few people have started to notice it, and it will be more apparent as time goes on, and there will be no reversal from this trajectory.

We are witnessing the total implosion of the Russian military force. The causes will be analyzed for decades (was it corruption? was it misguided doctrine?).

What's the basis for my claim? Some of the Russian (DNR and LDR, included) forces that are fighting currently (you can say conscripts or whatever, but they are troops in Uniform) are showing up with zero training. Zero.

Think about why that might be happening to the 2nd largest military in the world, that's not generally mobilized, fighting a small country in a "special operation".

kosherhurricane··on Async Rust doesn't have to be hard
Lack of 'async' in Go has been a great design choice (aka, an absolute blessing).

People complain a lot about Go's missing features, and they did end up adding generics, but their conservative approach I think has been a net benefit for Go.

Rejecting language feature is something that's hard to do, and it takes a lot of experience, and I dare say wisdom to stick to it.

kosherhurricane··on Viruses that were on hiatus during Covid are back, behaving in unexpected ways
The bottom 7 are

  California
  Connecticut
  New York
  Rhode Island
  New Jersey
  Massachusetts
  Hawaii
I wonder if the strong gun laws in California and NY, NJ have anything with them being at the bottom.
kosherhurricane··on Long Covid risk falls only slightly after vaccination, study shows
Your risk of heart failure is much greater with infection than with vaccination. It turns out that Covid messes up your immune system and will reinfect you multiple times, so there will be no natural herd immunity. And with each infection , your heart failure chances goes up.
kosherhurricane··on Long Covid risk falls only slightly after vaccination, study shows
Covid was a novel virus, which means it was and still is a poorly understood virus.

Vaccines came out fast and worked well because we had a new tech platform (mRNA).

But it’s starting to look like sarscov2 has immunity evading abilities, which is something that scientists were not able to work out until now.

The immunity evading ability should scare everyone at this point, but humans don’t do well with long term bad news when short term pain is involved.

kosherhurricane··on Ask HN: How long should Police wait to get in school with active shooter present
After Columbine, the standard police doctrin for a school shooting is to interfere with the shooter as quickly and as much as possible. If an officer is armed, they should engage the shooter as quickly as possible to draw fire away from the kids and to pin them in place.

Considering how well armed and trained the police force was in this town [1], it was a complete failure of police response. The police had the means (they had ar-15 in their cars and on their persons) and the training, yet chose to do nothing should be a lesson to all the “armed citizen” wannabes.

https://twitter.com/chadloder/status/1529670885770027008

kosherhurricane··on Ask HN: What Happened to Reddit?
The key word is “monetization”.

Entertainment (aka funny) makes money. Useful information can make money but not nearly as much as entertainment.

kosherhurricane··on Java: Why Core-to-Core Latency Matters
The article doesn’t even say when one needs core affinity.
kosherhurricane··on Java: Why Core-to-Core Latency Matters
I did.

> Finance makes up a rather large chunk of Java usage in industry.

I don’t doubt a lot of finance uses Java. But to claim that finance makes up a large chunk of Java usage is absurd. Think of all the android apps out there. And even inside finance, what percentage of the code is high speed trading?

> Not all applications are CRUD apps.

Agreed. But what fraction of Java code out there do you think is high performance code that needs core affinity? If you say anything below 0.5%, that rounds to 0%.

kosherhurricane··on Java: Why Core-to-Core Latency Matters
> it’s surprising how few Java developers with 10+ years of experience have a deep knowledge of the underlying hardware.

What fraction of Java software needs the lowest possible core-to-core latency? Around 0%?

But hey, he's a cool, specialized programmer who knows these things, and need to share this important knowledge with someone. And yet, the article never answers the question it asks. What impact did pinning cores have on their application? 5% improvement? 20% improvement?

I've made performance improvements by manually removing all bounds checks in a hot path. It made about 3% improvement to the total performance. Was it worth it? For my application, sure. Do I think other engineers are dumb because they don't do rigorous bounds check elimination? No.

kosherhurricane··on Personal Knowledge Management Is Bullshit
I use the Johnny Decimal system (with Zim Wiki). In 30 years of trying, it's the best personal knowledge management I've ever used.

All these note taking tools missed out on the straightforward categorization that the Johnny Decimal provides. And it's a big one.

kosherhurricane··on The x86 architecture is the weirdo (2004)
Inertia is the same as backward compatibility.

Kinda like gas engines and fuel pumps. Or wall socket formats. Inertia.

← PreviousPage 2 of 2