Recent submissions

Comment · 3 months ago
your algorithm for multiplication involves doing multiplication?
Comment · 4 months ago
| the sunrise spread across the city on its own, on t-shirts and stickers and bike frames and beer cans

tfa appears to admit that people are actually _using_ the new Milwaukee flag. This seems like a pretty strong argument that the new flag actually is better than the old flag? It is kinda cool to have a very distinctive local flag, but if the practical upshot of that is that the flag isn't actually used anywhere except a single flagpole in front of city hall (if that), seems like the vexillology people kind of have a point?

Comment · 11 months ago
It's not just better performance on latency benchmarks, it likely improves throughput as well because the writes will be batched together.

Many applications do not require true durability and it is likely that many applications benefit from lazy fsync. Whether it should be the default is a lot more questionable though.

Comment · 11 months ago
It means that the action we should take in response to this article is "building more dorms with singles" rather than "we need to rethink the way that we are making accommodations for disabilities in educational contexts".

That seems like an important distinction, and makes the rest of the article (which focuses on educational accommodations) look mistaken.

Comment · 1 year ago
betteridge's law of headlines still undefeated
Comment · 1 year ago
I was _extremely disappointed_ not to see this meme when I clicked on the link. Will not consider using this extension until Xzibit is prominently featured.
Comment · 2 years ago
This is an insane standard and attempting to adhere to it would mean that the CVE database, which is already mostly full of useless, irrelevant garbage, is now just the bug tracker for _every single open source project in the world_.
Comment · 2 years ago
if it's not compiled in by default, then you aren't shipping the code! Somebody is downloading it and compiling it themselves!
Comment · 3 years ago
Great idea! Now to just find somewhere to put a billion dollars worth of solar PV in California, preferably somewhere where it doesn't ever get dark so the power will stay on at night.
Comment · 3 years ago
Comment · 3 years ago
How does this kind of shit get upvoted?

it really takes about 5 seconds of thinking about this to realize why this "analysis" is stupid - he takes an INCREDIBLY expansive view of what counts as "pollution" from food production and then takes the narrowest possible view of what counts as "pollution" from driving a ICE car.

It's frankly embarrassing that econlib would even host this kind of crap which would get a failing grade in an undergraduate econ class.

Comment · 4 years ago
Comment · 4 years ago
At least some of these would be caught by running your tests with race detection on? I haven't read the whole article yet but as soon as I read the loop variable one I was pretty sure I have written code with that exact bug and had it caught by tests...

https://go.dev/doc/articles/race_detector

Edit: at the _end_ of the post, they mention that this is the second of two blog posts talking about this, and in the first post they explain that they caught these by deploying the default race detector and why they haven't been running it as part of CI (tl;dr it's slower and more resource-expensive and they had a large backlog).

https://eng.uber.com/dynamic-data-race-detection-in-go-code/

Comment · 4 years ago
I love Go and goroutines, but...

> A newly minted goroutine is given a few kilobytes

a line later

> It is practical to create hundreds of thousands of goroutines in the same address space

So it's not practical to create 100s of Ks of goroutines - it's possible, sure, but because you incur GBs of memory overhead if you are actually creating that many goroutines means that for any practical problem you are going to want to stick to a few thousand goroutines. I can almost guarantee you that you have something better to do with those GBs of memory than store goroutine stacks.

Asking the scheduler to handle scheduling 100s of Ks of goroutines is also not a great idea in my experience either.

Comment · 4 years ago
This is probably the best advertisement for loki I've ever seen.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton