Hacker News new | ask | show | jobs
by kchr 658 days ago
The IOCCC[1] (International Obfuscated C Code Contest) often features submissions where the source code is formatted to be works of art in itself. Sometimes the source code is also used as input to the program, where the formatting affects how the program behaves.

For example this program, which approximates the decimal digits of pi while having source code formatted to look like a circle:

https://www.cise.ufl.edu/~manuel/obfuscate/pi.c

[1] https://www.ioccc.org/