TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Donut math: how donut.c works

196 pointsby mr_o47over 1 year ago

6 comments

ryandvover 1 year ago
Reminds me of this classic IOCCC entry implementing a flight simulator, where portions of the source code are formatted to resemble a plane:<p><a href="https:&#x2F;&#x2F;www.ioccc.org&#x2F;1998&#x2F;banks.orig.c" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.ioccc.org&#x2F;1998&#x2F;banks.orig.c</a><p><a href="https:&#x2F;&#x2F;www.ioccc.org&#x2F;years.html#1998_banks" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.ioccc.org&#x2F;years.html#1998_banks</a>
enigmarcover 1 year ago
Interesting.<p>Tangentially reminds me of my own animated GIF app that I made a while ago.<p><a href="https:&#x2F;&#x2F;www.gifcii.fun" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.gifcii.fun</a>
评论 #37554036 未加载
Agingcoderover 1 year ago
That’s the kind of thing that had me learn coding many years ago ( watching demoscene productions).
supportengineerover 1 year ago
What platform does this compile on? Didn&#x27;t work for me on a recent model M1 MacBook Pro.
评论 #37553251 未加载
评论 #37552991 未加载
munchlerover 1 year ago
(2011)
jherikoover 1 year ago
reminds me of stuff i based in basic when i was a kid<p>made me laugh to see &quot;no raytracing&quot;, then immediate use of the perspective projection which is intersecting points and a plane along a ray lol...
评论 #37553751 未加载
评论 #37553655 未加载