Most cited
Posts that commenters keep linking to, ranked by how many different people have cited them in Hacker News comments. 3,470 posts.
The Bun Shell
The Bun Shell is a cross-platform shell that allows you to run shell scripts in JavaScript & TypeScript
Build Yourself a Redux
Learn how to build a working Redux implementation from scratch. Our implementation won't cover every nuance, but we'll remove most of the mystery.
Useless Use of "dd" (2015)
tl;dr: dd works for reading and writing disks, but it has no "low level I/O" capabilities that make it more suited for this than any other shell utility. Like cat you should use it where it makes sense, e.g. to take advantage of its wide array of options, rather than try to ensure that all disk related commands begin…
A minimal raytracer
How my quest to make a business card sized raytracer got a little out of hand.
My Python Development Environment, 2020 Edition
<p>For years I’ve noodled around with various setups for a Python development environment. A couple of years ago <a href="https://jacobian.org/2018/feb/21/python-environment-2018/">I wrote about a setup I finally liked</a>; this is an update to that post.</p> <p>Bad news: this stuff still isn’t stable, and…
Decisions API is in public beta
Use the Decisions API to check conditions, select from fixed options, and score text, images, and JSON against a rubric.
Writing a Rust compiler in C
To bootstrap Rust, no cost is too great.
YOLOv5: State-of-the-art object detection at 140 FPS
YOLOv5 license and commercial-use guide: AGPL-3.0 terms, specs, resources, and alternatives. Compare YOLOv5 against other vision models free.
Writing a Bootloader
This post describes how to write a simple Hello world bootloader
Visualizing algorithms for rate limiting
Smudge.ai is a Chrome extension that gives you ChatGPT-powered shortcuts in your right-click menu.
A new fast hash table in response to Google’s new fast hash table
Hi, I wrote my new favorite hash table. This came about because last year I wrote the fastest hash table (I still make that claim) and this year one of the organizers of the C++Now conference asked…
Things Every Hacker Once Knew (2017)
One fine day in January 2017 I was reminded of something I had half-noticed a few times over the previous decade. That is, younger hackers don’t know the bit structure of ASCII and the meaning of the odder control characters in it.
Beautiful branchless binary search
I read a blog post by Alex Muscar, “Beautiful Binary Search in D”. It describes a binary search called “Shar’s algorithm”. I’d never heard of it and it’s i…
Writing code is cheap now
Writing code is cheap now - Agentic Engineering Patterns
Dear sir, you have built a compiler (2022)
I am afraid to inform you that you have built a compiler. I know you wanted a “simple prototype” that would just add that one feature to your programming model. You said that “SSA is an overkill” and “it’s just way too much infrastructure to maintain for a simple task” and yet, six months later, you have pile of…
Write a Shell in C (2015)
A tutorial on how to write a Unix shell in C.
How and Why to Log Your Bash History
An easy bit of Bash configuration that will log your bash history to dated log files so you can refer back to them at any point in the future.
Bing.com now runs on .NET Core
Bing.com is a cloud service that runs on thousands of servers spanning many datacenters across the globe. Bing servers handle thousands of users’ queries every second from consumers around the world doing searches through their browsers, from our partners using the Microsoft Cognitive Services APIs, and from the…
How to build large-scale end-to-end encrypted group video calls
Signal released end-to-end encrypted group calls a year ago, and since then we’ve scaled from support for 5 participants all the way to 40. There is no off the shelf software that would allow us to support calls of that size while ensuring that all communication is end-to-end encrypted, so we bui...
Simpson’s Paradox (2016)
A riveting tale of how good data can lead to bad decisions.
How I Start: Haskell
My name is Chris. I teach Haskell to people that are new to programming and as well as long-time coders. Haskell is a general purpose programming language that is most useful to mere mortals.
Replacing Middle Management with APIs
There’s a trend in Silicon Valley startups to create a software layer in industries that were traditionally pure human services. Uber and Lyft have created software layers in the taxi industry, 99designs Tasks in the visual design industry, Homejoy in the cleaning industry, and so on. These new software services…
Zero Cost Abstractions
Rust claims to enable abstraction without overhead. How does that claim hold up in practice?
Why "Structure and Interpretation of Computer Programs" matters (2011)
In 2011, to celebrate the 150th anniversary of MIT, the Boston Globe made a list of the most important innovations developed there. They asked me to explain the importance of SICP, and this is what I sent them: