Andy Sloane personal blog

Donut math - How donut.c works

There has been a sudden resurgence of interest in my "donut" code from 2006 , and I've had a couple requests to explain this one. It's been five years now, so it's not exactly fresh in my memory, so I will reconstruct it from scratch, in great detail, and hopefully get approximately the same result.
Points
237
HN comments
68
Submissions
4
Cited by
10 commenters

Math & AlgorithmsSoftware Engineering2011

On Hacker News

SubmittedTitle on HNPointsComments
Jul 20, 2011Donut math - How donut.c works by dmuino23721
Oct 1, 2012Donut math: How donut.c works by Peroni20411
Sep 17, 2023Donut math: how donut.c works by mr_o4719614
Jan 23, 2014Donut math: how donut.c works (2011) by shrikant12122

Cited in comments

Linked from 12 Hacker News comments by 10 different people, from Nov 2013 to Aug 2025.

Most recent:

Search every comment that links here →

More from Andy Sloane

All 8 posts →

Related posts from the same era