by malux85 · 1y ago · 0 comments
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
You can see an example recording here of how it's done:
https://www.ioccc.org/2019/yang/obfuscation.html
First half of it is writing and golfing, second half is the formatting bits.
For languages like Perl and Ruby, the formatting process is easily automated and mostly trivial.
For something larger or in other languages, or having text strings, certainly not trivial.