HN user

kosherhurricane

164 karma
Posts0
Comments60
View on HN
No posts found.

500GB isn't a lot of data, and $3K/month seems like an extortion for that little data.

Having said that, MongoDB pricing page promises 99.995% uptime, which is outstanding, and would probably be hard to beat that doing it oneself, even after adding redundancy. But maybe you don't need that much uptime for your particular use case.

More or less.

For a language designed for fresh-out-of-college engineer to pick up in a few weeks and be effective, it is very easy to squeeze out a lot of performance.

* built-in profiler. * built-in escape analysis tool. * It's easy to pass pointers instead of copying data. * []byte is sub-slice-able, with a backing array. This does throw people off occasionally, but the trade off is performance. * Go lets you have real arrays of structs, optimizing cpu caches. * Built-in memory pools

And more.

And if you look at "non-idiomatic" performance code, they are surprisingly legible by the said fresh engineer. It's as if the designers didn't want to give up all the usual C performance tricks while making a Java/Python kind of friendly language, and this shows.

Of course Go can go only so far, due to the built-in runtime and GC. But it gets very far. Much farther than at first glance, or second glances that language snobs would give credit for.

Kaiser is non profit. They dont have shareholders and no dividends. The 1B net income that year is because some years they run a deficit.

If the workers get paid more through this strike, it will translates directly to higher prices.

Even after that, Kaiser will stay a low cost provider. Becasue they are non-profit.

Go's lack of sum types mean that there is no static check for whether the error has actually been handled or not.

I dunno, my IntelliJ calls out unhandled errors. I imagine go-vet does as well.

If a programming language supports union types and type inference then there is no need for such a "special" language feature

Laughs in Go.

While Zig's errorhandling is not bad and miles above Go's

Laughs again in Go. Go has no "foundations" regarding errors, it's just a convention. It has no union types. It doesn't have weird corner cases. It's just a returned value you can handle. Or not.

Of all the error handling paradigms I've seen, Go's requires the least amount of "specialized thinking" (try/catch or whatnot)--it's just becomes another variable.

TLDR:

The best part of Go is that there is very little magic in Go. If you understand that slices are just fat pointers implemented as a built-in, there is nothing confusing about them. I can understand every part of a Go program, all the way down to the language syntax that generate assembly. I don't have to be afraid of or be mystified by any language feature, because 1) there are few, 2) they are just programs implementable in Go. This does not happen with many languages.

Longer version:

Go didn't need to add slices as a language feature (it could have been a library function of containers, as fat pointers are not a new thing), but having it in the language makes using them easy. And not having generics at the start sort of forced their hand.

And as slices are just fat pointers to an underlying array, obviously it's not multi-thread safe.

So if you understand that slices are just C-style structs with pointer to data, a length counter and a capacity counter, then nothing in your example code is surprising. There is no hidden memory copy, no hidden synchronization lock to make it thread safe. And Go's a = append(a, item) now makes sense, because if 'a' grew in size, append would have to create a new underlying array, and a new slice struct with a pointer to new data. To me, it's much easier to reason about what the code is doing than other languages with Array types.

nobody would ever design something like this without massive cognitive dissonance

Somebody did, without any cognitive dissonance. And I like it :)

just copy and modify the previous industrial PL, C in this case

Go really wanted to be "A Better C". The language is not much larger than C, removed a bunch of C foot-guns, and it's as capable as Java, if not a bit more. I think the compromises Go made were well considered compared to other C family of languages.

What I would have done is first create a map of the file, just the keys and shapes, without the data. That way I can traverse the file. And then mmap the file to traverse and read the data.

A couple of dozen lines of code would do it.

I think philosophy is somewhat like math in that there is an attempt to create a logically self consistent system. Except it's not rigorous like math because the logic often have gaps that gets filled with observations (anecdotes), and it tries to explain the observed world.

Philosophy is also not science, since there is no attempt to rigorously test the theories with experiments or data.

So I lump philosophy with art. It's strongly tied with a person's sense of aesthetics as well as the culture around them.

it makes me have to maintain several sync fabrics

Yes, that's the con. That's why 3rd parties like 1password exist. Of course, they have to fight to get their plugins into the Big 3, as the Big 3 want you to use their systems.

But also the pro is that if you lose access to your sync fabric X (security breach, account closure), you can still use sync fabric Y. It's like backup fido2 tokens.

I think the security benefit of passkeys outweigh the small vendor lock-in they might create.

I love the idea of passkeys. They will be so great for my parents and grandparents.

I love the fact that Apple/Google/Microsoft are onboard, and now have implementations.

So why the frack are Apple/Google/Microsoft don't support passkeys on their own systems yet? They don't even support Webaunth.

These guys really need to set an example if they are actually serious about passkey.

except there's no way to sync your Passkey from the Apple sync fabric to the Microsoft sync fabric

This is by design.

so you need some sort of shareable secret between those from which an encryption key can be derived

No, you just authenticate with your iPad passkey (using qr code), and then generate a new passkey on your Windows PC, which will now sync between your windows devices. So no sharing of secrets between sync-clouds is needed, just one time sideways authentication.

I'm guessing 1password is just another passkey that they store/sync.

2021 countries kept having massive covid waves after reaching high vaccination rates.

This happened in low vaccination rate countries like Russia, South Africa, etc. So probably not due to vaccination.

Around the same time they noticed the spike in myocarditis in young men

This was noticed with people catching covid pre-vaccines.

they use archive sites to keep things available from official websites that get deleted,

I've seen those sites. They said "hydroxychloroquine data was being suppressed". Then they switched to "ivermectin data was being suppressed". And at the same time they were against "mandatory masking". They've always been against vaccines, mitigation, shutdowns, masks.

Basically, they were all for letting the disease run rampant.

when they have evidence no one wants to look at ... they just get ignored through ad-hominims instead.

UFO guys have been saying the exactly the same thing for 50 years. Lol.

Blood clots have gone up significantly for younger people in last two years. Is that due to covid or due to vaccination?

You can look at countries with young populations with low rates of vaccination before the first infection, say South Africa.

The data points to it being due to covid.

That itself suggests either bias or complacency to me. Would you be against data collection? It's not implying anything.

The data is being collected. In countries like the UK and Israel where government knows the vaccination status of 100% of the population, you can do very precise studies.

You ARE implying something.

I guess the bigger question that I often have is why the rush to completely rule out vaccines?

Because antivaxxers don't want to have a nuanced discussion of pro and cons of any vaccine. This iteration is "mRNA is new so it's bad". But it's always been the same and ends with "vaccine is bad" for them. It's not possible to bring a reasonable discussion to someone who will happily throw out reason to accept their own preconceived conclusions.

In my own case, I had significant cardiovascular issues at a relatively young age, 1 week after I got my booster.

Even before the vaccine, it was clear that covid triggers cardio events in some people, even young. Even three years in, it's not clear why that is. So it's plausible that a vaccine's spike protine could trigger an event, above the background level. The question then is, does the vaccine trigger cardio events at a higher or lower rate than getting covid?

If enough time or technology has passed that someone has to write a wav parser, how do you expect them to mount your file system, assuming it has survived?

Audio CDs have less error correction than CD-ROMs. When you rip an audio CD, the drive is doing the error correction, and may give you PCM data different from what was written on it. Software like ExactAudioCopy tries the best it can, but that’s exactly that. Reading CD-ROM data is different. You can get an iso image of a data cd, but not an audio one.

This was done to both increase play time and discourage copying.

So since you’ll never get the raw redbook data off a cd, there is no reason to prefer WAV over FLAC for CD audio.

I claim no expertise, as this is the internet and my credentials are entirely virtual and imaginary.

* Business insider is often a click bait.

* Taxis and Police cars idle all day. That's fine because their engine is warm. We're talking about damage being done at cold start and idle.

* The only time the engine is without much lubricant is when it is cranked.

* When the engine has started and running, oil is forced into different places that need it. Viscosity is not optimal, but it's good enough, as long as it's been changed appropriately, and not already a sludge.

* At idle, the oil pump is at its lowest output. The fast idle at cold start mitigates that. Fast idle also warms up the engine faster than normal idle. Driving it will give it good output.

* Engines do warm up slower when idling (<1k rpm) vs driven right away (2k+ rpm).

Taken all this together, it's fine to start the engine when cold, let it idle for 30 seconds, and start driving.

It's also fine to start the engine cold, and let it idle and warm up while you scrape the windshield and make a cup of coffee.

Millions of people do both of the above, and their cars are fine. Ignore Business Insider, and maintain your cars as per its manual.