Best of 2013

The blog posts Hacker News loved most in 2013. 537 posts.

Software Engineering
247

How D3 Selections Work

In the past I have presented simplified descriptions of D3 ’s selections, providing only enough detail to get started. This article takes a more comprehensive approach; rather than saying how to use selections , I will explain how selections are implemented . This may take longer to read, but it should dispel any…

249

Message threading (1997-2002)

In this document, I describe what is, in my humble but correct opinion, the best known algorithm for threading messages (that is, grouping messages together in parent/child relationships based on which messages are replies to which others.) This is the threading algorithm that was used in Netscape Mail and News 2.0…

262

Trampolines in JavaScript

A trampoline is a loop that iteratively invokes thunk -returning functions ( continuation-passing style ). A single trampoline is sufficient to express all control transfers of a program; a program so expressed is trampolined, or in trampolined style; converting a program to trampolined style is trampolining…