Blogs / Personal blogs

Welcome to my web site. I'm Simon Tatham, a software engineer and free-software author in Cambridge, UK.

Popular posts
16
Total points
4,224
HN comments
1,891
Rank
#296 personal

Visit chiark.greenend.org.uk/~sgtatham → On Hacker News May 2010 – May 2026

Software Engineering 10Open Source 5Security & Privacy 4Math & Algorithms 4Systems & Performance 2Tools & Productivity 1

1

Coroutines in C (2000)

Structuring a large program is always a difficult job. One of the particular problems that often comes up is this: if you have a piece of code producing data, and another piece of code consuming it, which should be the caller and which should be the callee?

2

Philosophy of Coroutines

I encountered the idea as a student, when I first read The Art of Computer Programming . I’d been programming already for most of my childhood, and I was completely blown away by the idea, which was entirely new to me. In fact, it’s probably not an exaggeration to say that in the whole of TAOCP that was the single…