Top posts

Every blog post that took off on Hacker News, ranked by the votes of its best submission. 49,243 posts.

Any topic
Any year
21784

I'm not a fan of strlcpy(3)

strlcpy(3) is an OpenBSD function which is often hailed as a safer replacement for strcpy(3) and/or strncpy(3) . One of the obvious issues with strlcpy is that it's not safe if src isn't null-terminated. However, that's not the reason I don't like strlcpy. In fact despite knowing this, I used to think it was an okay…

21786

In Defense of C++

I really like C++. It's not the right tool for every job, but it's what I reach for when I need to do any kind of systems programming. Unfortunately, C++ has often been cited as a "bad" language, and I feel like that reputation has worsened over time. Recent languages like Go and Rust have taken over a lot of mind…

21797

Catching Native Apps

If you imagine a world where the sum of all things you can do with a computer is exactly matched, and locked down for all time with what you can do inside a browser, then the arguments for the web are persuasive. Why write for a specific platform when you can write for all platforms at once and gain the other…

21799

Nobody pays for FOSS, we can force them to

Thirty years of voluntary funding schemes haven't paid open source maintainers because asking doesn't scale. The real money already flows — to JFrog, Docker, Sonatype — at the registry layer. The fix: registries charge companies for supply (they already do), then route a slice automatically to the maintainers who make…

21803

De-googling, so far

Over the past few years, I have tried to gradually reduce or eliminate my use of Google products and services. It has been difficult to ditch Google’s products in some categories, and in some others, it has been nigh impossible. Here, I list the services I have tried to find alternatives for, discuss the ease (or lack…

21806

It's My Monitor

This is the first in (maybe) a series of “Tales From Tech Support”, which are true stories from my point of view. I’ll probably only post these on a Friday. In the 1990s, I worked as a contractor for a large, well-established accounting firm. We’d often buy new equipment and unpack it at the helpdesk, throw away all…