New

The latest blog posts to take off on Hacker News. 80,835 posts.

Any topic
Any year
8941

Use Your Type System

Today I'm discussing a trivially simple technique that I've rarely seen used in production codebases. In programming, we often need to deal with simple values that can be represented by simple, generic types built into our programming language or provided by libraries: types like integer, string, or UUID. In any

8944

A valid HTML zip bomb

<h1 id="a-valid-html-zip-bomb"><a tabindex="0" class="anchor" href="/notes/html_zip_bomb">A valid HTML zip bomb</a></h1><p><img src="/notes/res/zip_bomb_file.svg" alt="Illustration d&#x27;une bombe zip" height="150" width="150"> Many sites have been affected by the aggressiveness of web crawlers designed to improve…

8948

I drank every cocktail

The International Bartenders Association, or IBA, maintains a list of official cocktails, ones they deem to be “the most requested recipes” at bars all around the world. It’s the closest thing the bartending industry has to a canonical list of cocktails, akin to the American Kennel Club’s registry of dog breeds or a…

8961

Font-size-adjust Is Useful

In this article, I will describe a recent addition to CSS, the font-size-adjust property. I am also making a bold claim that everyone in the world misunderstands the usefulness of this property, including Google, MDN, and CSS Specification itself. (Just to clarify, no, I am not a web designer and I have no idea what I…

8967

Extending Emacs with Fennel (2024)

After watching this year’s EmacsConf and seeing Guile Emacs being resurrected I thought to myself - why limit ourselves to Guile? Sure, Guile isn’t just a Scheme implementation, thanks to its compiler-tower-based design. Other languages exist for Guile VM, such as Emacs Lisp, and Guile manual lists the following…