Top posts
Every blog post that took off on Hacker News, ranked by the votes of its best submission. 49,287 posts.
Unbloating the buffers
What is bufferbloat, why is it bad, and what to do about it
In search of a better job scheduler
What if cron and systemd had a baby? Wouldn't it be beautiful?
Pascal's Apology, or why computer science is complicated
Blaise Pascal once famously ended a letter with an apology : I'm sorry that this was such a long letter, but I didn't have time to write you a short one. Computer science has pretty much the same problem. It's a young field, and young fields are, by their nature, messy. As we race to generate new knowledge, we also…
Learning SIMD with Rust by Finding Planets (2018)
How to get the most of Rust while keeping your code portable
Quadrupling code performance with a "useless" if
So I was optimizing a domain-specific compressor the other day, as one does. One important problem was chunking the input string and optimally choosing the most compact encoding for each chunk (different encodings compress different characters better, so where to split is not immediately obvious). The previous post…
Xcode UI Improvements
Xcode is a fantastic development environment for developing Mac, iPhone, and iPad applications. But it has some areas for improvement. In this post, I’ll explore some improvements to how documentation and autocompletion is integrated into the development workflow and how Xcode could provide specialized interfaces for…
Fewer Than 1000 Brits Googled “What Is the EU?” After Referendum
I’ve never seen such snobbery in my life. The post-Brexit condescension has been nauseating. The media, pundits, and academics have desperately tried to paint the Brexit voters as ignorant, backwoods troglodytes who only voted to leave the EU because they don’t like brown people.
Don’t Trust Activity Monitor on M1 Macs
Using CPU % or Energy values in Activity Monitor appears to show that running code on E cores is less efficient than on P cores. Don’t believe a word of it.
Processing ported to JavaScript
As a sort-of reverse birthday present I’ve decided to release one of my largest projects, in recent memory. This is the project that I’ve been alluding to for quite some time now :
"All your base are belong to us" intro to my 2004 MIT Spam Conference talk
As I've mentioned before my talk at the 2004 MIT Spam Conference was about using one machine learning system to beat another. In that case ...
RSA: Theory and Implementation
RSA has been a staple of public key cryptography for over 40 years, and is still being used today for some tasks in the newest TLS 1.3 standard. This post describes the theory behind RSA - the math that makes it work, as well as some practical considerations; it also presents a complete implementation of RSA key…
The curious death of Oppenheimer’s mistress (2015)
Who killed J. Robert Oppenheimer's Communist lover?
Coding with gumption
The first and only mention of Gumption Theory in modern writing is found towards the end of Robert Pirsig’s Zen and the Art of Motorcycle Maintenance. The author sets out a plain and uncomplicated approach to attaining and maintaining the state of mind required to repair a motorcycle. It takes about 20 pages. And the…
Early Chinese World Maps (2010)
I recently came across this fascinating world map while researching the history of the Jesuit missions in seventeenth century China . Appar...
Designing my own ASIC with tiny tapeout
First, what is an ASIC? An ASIC is an Application Specific Integrated Circuit which basically means that it is an Integrated Circuit on a single piece of silicon and its use is limited to a particu…
Bitwise Binary Search: Elegant and Fast
I recently read the article Beautiful Branchless Binary Search by Malte Skarupke. In it they discuss the merits of the following snippet of C++ code implementing a binary search :
Android Developer Income Report #10
Last month has been looking like some slow down in my income and traffic. Fortunately it was only temporary as it is getting better with each day now. Anyway I still made quite nice income and as u…
TypeScript and Set Theory
How does set theory help to understand type assignability and resolution in TypeScript?
A Breakthrough Cure for Ebola
Ebola is one of the nastiest, most frightening viruses known to man. Its victims suffer fevers, muscle weakness, and other symptoms that pr...
Understanding the limits of large language models
Reading level: No programming knowledge required, but trying ChatGPT first is advised.
I added some optimizations to my compiler that turns Lisp into JavaScript
Smaller programs that do less work.
Browser Engines 2015: Commit Rates and Active Developer Counts
I used to work as a developer in the “core” group at Opera that developed thePresto web engine. During this period, I often wondered just how many developers...
Writing HTTP Middleware in Go
In the context of web development, "middleware" usually stands for "a part of an application that wraps the original application, adding additional functionality". It's a concept that usually seems to be somewhat underappreciated, but I think middleware is great.