from Hacker News

Donut math: how donut.c works

by mr_o47 on 9/17/23, 7:38 PM with 14 comments

  • by ryandv on 9/18/23, 11:39 AM

    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

  • by enigmarc on 9/18/23, 9:06 AM

    Interesting.

    Tangentially reminds me of my own animated GIF app that I made a while ago.

    https://www.gifcii.fun

  • by Agingcoder on 9/18/23, 5:53 AM

    That’s the kind of thing that had me learn coding many years ago ( watching demoscene productions).
  • by supportengineer on 9/18/23, 6:27 AM

    What platform does this compile on? Didn't work for me on a recent model M1 MacBook Pro.
  • by munchler on 9/18/23, 4:40 AM

    (2011)
  • by jheriko on 9/18/23, 7:13 AM

    reminds me of stuff i based in basic when i was a kid

    made me laugh to see "no raytracing", then immediate use of the perspective projection which is intersecting points and a plane along a ray lol...