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.

From ASCII to ASIC: Porting donut.c to a tiny slice of silicon

162 pointsby a1k0n4 months ago

7 comments

swores4 months ago
Going slightly off topic, I was interested to learn from this blog about Tiny Tapeout, the service they&#x27;ve used to order their custom chip design. The concept for anyone as unfamiliar with it as me is that lots of people pay a few hundred dollars each to get a small part of a chip being made, and once it&#x27;s made they receive the chip ready to use with their section everyone else&#x27;s, too, with a way to choose which bit gets run.<p>I know basically nothing about chip design, and I&#x27;m wondering if anyone could tell me: is this only useful for education purposes, for example learning how to make a chip that creates a donut on a screen, or are there people using Tiny Tapeout for useful projects, too?<p>For each of their chip runs, they publish a list of the different people&#x27;s projects that got included - <a href="https:&#x2F;&#x2F;tinytapeout.com&#x2F;runs&#x2F;" rel="nofollow">https:&#x2F;&#x2F;tinytapeout.com&#x2F;runs&#x2F;</a> - but it&#x27;s not easy to spot which ones might be more than somebody just learning how to play with chip design.<p>Essentially, if someone were to pick this up as a hobby, what is the most interesting thing they could make using this?
评论 #42679887 未加载
评论 #42678803 未加载
评论 #42689091 未加载
malux854 months ago
The thing about donut.c is that its source code is shaped like a donut, that’s a huge part of its charm.<p>While altering it to use shifts and adds is a fun exercise, since its source code is no longer shaped like the donut it renders, I would argue that a large part of its charm has disappeared and it’s no longer a donut.c
评论 #42682343 未加载
评论 #42676167 未加载
refulgentis4 months ago
I&#x27;ve been <i>deeply</i> curious about the sort of speedup you get from doing what was in software, on hardware:<p>I know the chips hasn&#x27;t been delivered yet, but, the statements at the beginning re: we can expect a new frame every N nanoseconds, give me hope there&#x27;s a rough heuristic for what speedup we&#x27;d expect in this particular case.<p>Do we have a rough* understanding of what the speedup will be?<p>* Within 2 OOMs
评论 #42681597 未加载
评论 #42677785 未加载
anthk4 months ago
I suggest you all to compile the C examples with -O3 -ffast-math on legacy systems.
binarymax4 months ago
So great to see this excellent explanation. Have been a fan of donut.c since it first came out. Also I&#x27;m way better at golfing js than c so it kinda feels like you wrote this just for me :)
amstan4 months ago
Yay, a1k0n!<p>Long time since AI Challenge, I see you&#x27;re dabbling into hardware too!
评论 #42686590 未加载
still_waiting4 months ago
When are you going to post part 3 of your Hacker Challenge?<p>It&#x27;s been fifteen years and we&#x27;re still waiting. Thanks.
评论 #42679294 未加载