Top posts
Every blog post that took off on Hacker News, ranked by the votes of its best submission. 49,258 posts.
Never patterns, exhaustive matching, and uninhabited types in Rust
One of the long-standing issues that we’ve been wrestling with in Rust is how to integrate the concept of an “uninhabited type” – that is, a type which has no values at all. Uninhabited types are useful to represent the “result” of some computation you know will never execute – for example, if you have to define an…
A simple hash table in C
A simple hash table implementation in C, by Leo Robinovitch.
SOLID Go Design
This post is based on the text of my GolangUK keynote delivered on the 18th of August 2016. A recording of the talk is available on YouTube .
Some useful regular expressions for programmers
In my blog post, My programming setup, I stressed how important regular expressions are to my programming activities. Regular expressions can look intimidating and outright ugly. However, they should not be underestimated. Someone asked for examples of regular expressions that I rely upon. Here a few. It is commonly…
Cheap and simple way to mount a smartphone directly above a laptop display
with David Santiano, Deyin Mia Zhang, Xinran Azena Fan, and Yunru Casey Pan, NYU Shanghai; Barak Chamo, New York; Paolo Salvagione…
Asterix in Translation: The Genius of Anthea Bell and Derek Hockridge
As promised in a previous blog entry, what follows is a discussion of the translation of some of my favourite Asterix gags. The translators’ modus operandi was to include as many jokes in the Engli…
Inverting a binary tree using x64 assembly
While browsing twitter, I came across this tweet:
"The worst algorithm in the world?"
You know the Fibonacci numbers: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, … Each number is the sum of the previous two. Let’s say the zeroth Fibonacci number is zero, so: $latex \begin{array}{r@{\…
2020 Bundles
The state of bundles in 2020: Netflix, Disney, Amazon, Microsoft, and Apple. Plus, Microsoft’s purchase of ZeniMax.
A USB Fan Controller that now works under Linux
Relying on the built-in motherboard headers on server grade motherboards to reliably control fans with Linux has been a crapshoot since forever. I'm pleased to report that last summer the Corsair Commander Pro received native Linux kernel driver support in the 5.9 release.
Building a freedom-friendly WiFi pocket-router (2020)
Daniel Kulesz's personal website
Screenshot-proof images via temporal dithering
Snapchat 's (and now Facebook Poke 's) main claim to fame is that it lets you send "self-destructing" image messages. Setting aside the debate about the uses of this beyond sexting , the key vulnerability in both apps is the built-in ability to take screenshots. Both take a reactive approach, where you're notified if…
A Brief History of the Corporation: 1600 to 2100
On 8 June, a Scottish banker named Alexander Fordyce shorted the collapsing Company's shares in the London markets. But a momentary bounce-back in the stock…
Static Type Checking in Common Lisp
There is a misconception that Lisp is a dynamically typed language and doesn’t offer compile-time type checking. Lisp being the…
I'm Joining Report URI
What if I told you... that you can get visitors to your site to automatically check for a bunch of security issues. And then, when any are found, those visitors will let you know about it automatically. And the best bit is that you can set this up in a
Entropy of a Large Language Model output
Large language models like ChatGPT & Claude have become ubiquitous in today’s world. I visited a friend for the New years eve and was impressed by how ChatGPT was being extensively used within the family. The friend’s little kid is going to grow up in a world, where turning to large language models (LLM) for quick…
Simulating and Visualising the Central Limit Theorem
Update: this post was discussed on Hacker News I completed a Computer Science degree at uni, and bundled a lot of maths subjects in as electives: partial differential equations, vector calculus, discrete maths, linear algebra.
The Sad State of Diabetes Technology in 2012
I've been diabetic for almost two decades. It's tiring, let me tell you. Here's ...
The Neural Net Tank Urban Legend
AI folklore tells a story about a neural network trained to detect tanks which instead learned to detect time of day; investigating, this probably never happened.
Rolling your own minimal embedded Linux for the Raspberry Pi
Introducing a series of articles on building a custom Linux installation for the Raspberry Pi, for appliance applications.
A Deep Dive into HandBrake and Video Transcoding
An obvious interest area of mine is in ripping (and watching) movies using my Mac. I've talked about everything from installing the tools I use to how I rip to how to make sure I update the ripping tools . And though I've included some comparison pictures in the how-I-rip article, I've never done a deep dive into the…