Top posts

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

Any topic
2025
1111

Use Your Type System

Today I'm discussing a trivially simple technique that I've rarely seen used in production codebases. In programming, we often need to deal with simple values that can be represented by simple, generic types built into our programming language or provided by libraries: types like integer, string, or UUID. In any

1114

The Journey Before main()

A while back, I worked on a RISC-V-based userspace simulator for fun. In doing so, taught myself a lot more than I wanted to know about what happens in-between when the Kernel is asked to run a program, and when the first line of our program’s main function is actually executed. Here’s a summary of that rabbit hole.

1130

I'm returning my Framework 16

My current laptop is an aging X1 Carbon generation 7, purchased some time in mid 2019. A few months ago a few keys of the keyboard stopped working, specifically the 5, 6, - , = and Delete keys. Sometimes I can get it working again by mashing one of them for a while, but it's not consistent. Given my past experiences…