2004 IOCCC Winners Source Code Released
Langly writes "The IOCCC have finally released their source code for 2004.
My thoughts goes out to the poor guys that actually wrote this code.
Reader discretion is advised." Every time I see an obfuscated code contest, I wonder if 'Winner' is the right word to describe the victor ;)
I would hate to have to be the one that either updates that code or has to read it. Some nice ASCII art in there, I am not brave enough to test to see if the programs do what they say they do. I went to the spoiler page so I could get the synopsis of them. That code would be a good Halloween costume it is just scary.
Slightly offtopic, but this will serve the needs of those of us reading this thread for a fix of C-related humour. The Infrequently asked questions in C (C-IAQ).
I wish the submitters for these things understood that 90% of the obfuscation is done post-debugging with perl scripts... (The remaining 10% is the clever part.)
gcc -std=c99 -o frist_prost frist_prost.c works perfectly without warning. By default, gcc still interprets the code as C89.
A monkey is doing the real work for me.
And best of all, that ridiculous code is REALLY AMAZINGLY POWERFUL in many cases.
I only looked at the first entry, anonymous.c. It's 47 utterly incomprehensible lines. What it does is convert text into one of Tolkien's Elvish fonts - and the result looks rather nice, for such a tiny C program (that doesn't use any libraries apart from stdlib, stdio and string).
I took the example from the hint file, pasted only the first half ("ash nazg durhbatuluhk, ash nazg gimbatul") and created a picture, then converted it to PNG with ImageMagick. The result is here. I think that's rather good.
And that's just the first one of this year. Many of the entries of earlier years were stunning.
I believe posters are recognized by their sig. So I made one.
Examples:etc.
Why not just differentiate by varying the length of the names?
xxxxxxxxxxxxxx = xxxxxxxxxxxx + xxxxxxxxxxxxxxxxxxxxx / xxxxxxxxxxxxxxxx;
Makes sense, doesn't it? And it works with every letter of the alphabet too!
Slashdot social media options: AIM, ICQ, Yahoo, Jabber and Mobile Text. Why no MySpace?
How to obfuscate Mandelbrot code.
I have discovered a truly remarkable proof which this margin is too small to contain.
step 2: ?
step 3: profit!
This method also works on lame tricks like: