Top posts
Every blog post that took off on Hacker News, ranked by the votes of its best submission. 14,544 posts.
Building and using a 29-year-old compiler on a modern system
In this post I’ll share my experience of building and using one of the earliest versions of the GNU C Compiler — GCC 1.27 (released in 1988) on a modern system.
Making fifty TIC-80 carts in a weekend
Ever since I read about the Make 50 of Something technique in Vi Hart's blog post about Fifty Fizzbuzzes, I wanted to try it for myself! Creating 50 of, well, anything, in quick succession seemed like a fun challenge!
GC and Rust Part 1: Specifying the Problem
This is the first in a series of posts will discuss why garbage collection is hard, especially for Rust, and brainstorm about solutions to the …
Do or undo – there is no VACUUM
What if PostgreSQL didn’t need VACUUM at all? This seems hard to imagine. After all, PostgreSQL uses multi-version concurrency control (MVC...
A Tour of Hell – Shell scripting Haskell dialect
This set of slides sketches out the implementation of Hell , in technical detail. I do tend to switch between the slides, old code, and the present code, so bear with me. It's more about the ideas. If you want to see a complete implementation, the complete implementation of Hell is one file , which you can look…
Bel in Clojure (2022)
9 months ago, I took a gander at PG’s guide to Bel . If you haven’t read it, here’s the premise:
Cloning a Sennheiser BA2015 battery pack
I generally avoid messing with Li-ion battery packs, but these are both Ni-mh and expensive.
Optimizing Postgres text search with trigrams
In this post, we’ll implement and optimize a text search system based on Postgres Trigrams
Casual Shadertoy Path Tracing 1: Basic Camera, Diffuse, Emissive
Posts in this series: Basic Camera, Diffuse, Emissive Image Improvement and Glossy Reflections Fresnel, Rough Refraction & Absorption, Orbit Camera Below is a screenshot of the shadertoy that g…
Learning Exploitation with Offensive Computer Security 2.0
Own this domain today. We make your shopping experience easy. Friendly and quick customer service.
My favorite coding question to give candidates
A coding question, from the viewpoint of an Google/Amazon/Microsoft interviewer
Rust data structures with circular references
To implement its safety guarantees, the Rust compiler keeps careful track of ownership and references throughout a program. This makes writing certain kinds of data structures challenging; in particular, data structures that have circular references.
Can sanitizers find the two bugs I wrote in C++?
A few days ago I published a short post about two bugs I wrote while developing the C++ external scanner for my TLA⁺ tree-sitter grammar. Reactions were mixed! Many people were supportive, but there were of course the usual drive-by claims by developers that the bugs were trivial, they would’ve found & fixed them…
Is Zig's new writer unsafe?
Karl Seguin's Blog - A mix of coding and creative writing
Modern C++ for C Programmers (2018)
Welcome to part 1 of Modern C++ for C Programmers, please see the introduction for the goals and context of this series. In this part we start with C++ features that you can use to spice up your code ’line by line’, without immediately having to use all 1400 pages of ‘The C++ Programming Language’. Various code…
Man pages are great, man readers are the problem
TLDR: man pages support links, but man page readers neither display nor allow allow following them.
Don't microservice, do module
Looking beyond the hype and explaining why microservices should nearly become extinct.
Rust is for Professionals
A professional programmer delivers value through the authoring and maintaining of software that solves problems. (There are other important ways for professional programmers to deliver value but this post is about programming.)
Why Static Languages Suffer from Complexity (2022)
People in the programming language design community strive to make their languages more expressive, with a strong type system, mainly to increase ergonomics by avoiding code duplication in final software; however, the more expressive their languages become, the more abruptly duplication penetrates the language itself.
JavaScript web apps considered valuable
Recalling best practices for web applications that make heavy use of client-side JavaScript.
Code Is Not Technical Debt
Someone is wrong on the Internet; he said that all code is technical debt, and I refute that.