HN Hall of Fame Weekly email

Donut math: how donut.c works

www.a1k0n.net Books & learning Tutorials & guides Computer science Candidate
Screenshot of www.a1k0n.net captured 2026-07-20
Page preview · captured 2026-07-20

Resurfaced independently across 7 calendar years, with breakout response in 3 of them.

submissions
12
submitters
12
observed span
2012–2023
peak thread · 22 comments
204 pts
latest 20+ return · 2023-09-17
196 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

Iñigo Quilez has the best live coding tutorials on simple raytracers I've seen: http://www.iquilezles.org/live/index.htm It's so much easier than I thought...

Reminds me of this classic IOCCC entry implementing a flight simulator, where portions of the source code are formatted to resemble a plane: https://www.ioccc.org/1998/banks.orig.c https://www.ioccc.org/years.html#1998_banks

ryandv·196-point thread·

slightly disappointing - the effect is interesting but the implementation and derivation are sloppy. using a z buffer is a little unexciting i was expecting something raytracy or voxely - maybe even scanliney... but thats too much to explain in this comment. also using the matrices for deriving the torus equation... its much simpler to create a rotating basis intuitively with cos and sin then apply them again to create a circle going around... then rotate the torus as a…

jheriko·121-point thread·

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
3

100+ points or 50+ comments

Total points
553

reference only — not used in Hall rules or ranking

Total comments
47

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2012-10-01Donut math: How donut.c worksFirst breakout · Best threadPeroni20411
2014-01-23Donut math: how donut.c works (2011)shrikant12122
2018-07-13Donut math: how donut.c workshdivider50
2018-11-07Donut math: how donut.c works (2011)Cieplak150
2018-11-07Donut math: how donut.c worksfanf220
2020-06-24Donut math: how donut.c workstheBashShell20
2020-07-21Donut math: how donut.c works [2011]rahmaniacc10
2020-08-07How Donut.c Worksbeefman30
2021-01-07Donut Mathvirde10
2021-01-12Donut math: how donut.c worksFlamingo9420
2022-07-31Donut math: how donut.c worksvishnuharidas10
2023-09-17Donut math: how donut.c worksLatest 20+ point returnmr_o4719614