Top posts

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

Any topic
Any year
45631

Zig Profiling on Apple Silicon

If you’re a developer rocking an Apple Silicon Mac and writing in Zig, congratulations - you’ve chosen the scenic route through the desert of profiling tools. It’s just you, your code, and a tumbleweed named Apple Instruments. But don’t worry - we’ll try to find some oases. Okay, it’s not that bad, but we’re far away…

45639

Long Bets by Confidence Level

If you want to make a long-term bet one of your options is to register your bet with the Long Now Foundation as a Long Bet. They have some rules, which are roughly: Both parties put up the same amount, at least $200/each. Long Bets effectively runs a donor-advised fund (DAF). When the bet concludes the winner chooses…

45641

How transistors really work (1995)

Most technician textbooks do a very poor job of explaining the details of transistors' internal workings. First they assume that the Base current is somehow controlling the Collector current, then they try to explain how one current can affect another. These explanations invariably fail because Bipolar transistors…

45654

Text Matching Using Cosine Similarity

Recently I was working on a project where I have to cluster all the words which have a similar name. For a novice it looks a pretty simple job of using some Fuzzy string matching tools and get this done. However in reality this was a challenge because of multiple reasons starting from pre-processing of the data to…

45655

Lanzaboote – NixOS Secure Boot

Secure Boot protects a system from an attacker that compromises the boot flow. For example, without Secure Boot it is easy to replace the code that reads your disk encryption password and store it somewhere where the attacker can pick it up later. So ideally you want Secure Boot to be enabled to limit the code that…