"There is much pleasure in useless knowledge." — Bertrand Russell
Coroutines in C
I remember blinking a few times the first time someone showed me Duff’s device. It made me ask “is that really legal C”. Simon Tatham’s article Coroutines in C comes very close to provoking the same response. Wacky, wacky code.