Top posts
Every blog post that took off on Hacker News, ranked by the votes of its best submission. 49,278 posts.
Don’t Think, Just Defunctionalize
TL;DR: CPS-conversion and defunctionalization can help you to come up with a constant-stack algorithm.
Interactive Common Lisp Development
Common Lisp programming is often presented as “interactive”. In most languages, modifications to your program are applied by recompiling it and restarting it. In contrast, Common Lisp lets…
On Technical Writing
How I make it work (or not)
Inside boost::unordered_flat_map
Introduction The case for open addressing SIMD-accelerated lookup boost::unordered_flat_map data structure Rehashing Hash post-mixing Sta...
Personal OKRs for Success
How to use OKRs for personal goal setting and tracking your progress
Wireless Amiga Tank Mouse
Taking a look at a Wireless Tank Mouse that I picked up from Sordan.ie and seeing how well it works with my Commodore computers.
Fun with -fsanitize=undefined and Picolibc
Both GCC and Clang support the -fsanitize=undefined flag which instruments the generated code to detect places where the program wanders into parts of the C language specification which are either undefined or implementation defined. Many of these are also common programming errors. It would be great if there were…
My Meeting with David Bohm
June 29, 2023. Some scientists seek to clarify reality, others to mystify it. Physicist David Bohm seemed driven by both impulses. He is renowned for promoting a sensible (according to experts like Einstein, John Bell and philosopher Tim Maudlin) interpretation of quantum mechanics. But Bohm also a
Why Intel is adding instructions to speed up non-volatile memory
The latest version of the Intel manual has a couple of new instructions for non-volatile storage, like SSDs . What's that about?
Coaching engineering managers to take on organizational problems
In an organization with many teams, problems will arise that span across these teams and require solutions broader than an individual manager’s purview. These types of projects include things…
Conditional CSS with:has and:nth-last-child
A modern look at how to combine CSS :has, :nth-last-child, and style queries to create dynamic components.
The Moon Illusion, an Unsolved Mystery
physics, history of science, pseudoscience, hoaxes, writing, education, skepticisism, humor, quotes, illusions, 3d stereo photography.
Unusual Locomotives
The Douglas Self Site, steam locomotive, Shay, Climax, Mallet, Garratt, Turbomotive, Reid-Ramsey
Low-poly image generation using evolutionary algorithms in Ruby (2023)
A deep dive into evolutionary algorithms through the lens of low-poly image generation. This exploration covers genetic algorithm theory, custom Ruby implementation using the Petri Dish framework, and detailed analysis of genetic operators including roulette wheel selection, random midpoint crossover, and nudge…
Super easy project planning and estimation
Add tasks to your project and break them down into subtasks. The tree layout highlights the structure of your project.
Picolibc – Libc for Embedded Systems
I wrote a couple of years ago about the troubles I had finding a good libc for embedded systems , and for the last year or so I've been using something I called 'newlib-nano', which was newlib with the stdio from avrlibc bolted on. That library has worked pretty well, and required very little work to ship.
The Origin of Banking (2016)
There is a just-so story that explains the existence of money. Before money, the story goes, we all had to barter for the goods we wanted. If I wanted wheat and had chickens, I needed to find someone who wanted chickens and had extra wheat. Money solves this “double coincidence” problem by letting me sell my chickens…
The Y Combinator in Go with generics
A few years ago I've written in some detail about the Y combinator, including implementations in Clojure and Python.
A successful example of "adversarial collaboration"
We synthesized the vast, contradictory scholarly literature on gender bias in academic science from 2000 to 2020. . . . Claims and counterclaims regarding the presence or absence of sexism span a range of evaluation contexts. Our approach relied on a combination of meta-analysis and analytic dissection. We evaluated…
The Burial of William the Conqueror: A Comedy of Errors
William the Conqueror is one of those historical figures who need no introduction. Thanks to his famous victory at Hastings in 1066, he dra...
Applied Cryptography Engineering
Applied Cryptography taught two generations of developers what they know about crypto, and it is a dreadful instruction manual. The book to replace it with, and what you still have to learn after.
Writing a Self-Mutating x86_64 C Program (2013)
My little corner of the web for sharing wherever my interests take me.
Constraint Solving with MiniZinc
This is part one of a two-part article. Part two is here. A while back somebody told me to check out MiniZinc. Eventually I did and really enjoyed it, so figured I’d write about it here. This is actually going to be a two part article. Right now we’re talking about what it is and how it works, and in the next post…