20th IOCCC Source Code Released
An anonymous reader writes "The 20th International Obfuscated C Code Contest apparently has the turbo button pressed, as the source code has been published in only two months, versus almost four years of the 19th contest. As we discussed in February, the judges' verdicts are in: the Best of Show entry comes from Don Yang with a program containing more programs. Some other entries winning this year are a text raytracer (used this year in IOCCC logo), a MOD player, a X11-based dual player tank shooter and a bouncing ball (Amiga-style) with ANSI escape sequences. Remember that every IOCCC entry has a limit of 4 kilobytes, so indeed every one is pretty impresive."
The link to the winners and descriptions is, http://www.ioccc.org/2011/whowon.html
I eat poop.
This is about C coding.
Relating your experience coding Java is irrelevant.
Your age is showing...
Yes, kids, PCs used to have turbo buttons.
I always thought that the Underhanded C Contest was better. Rather than making the code hard to read or doing the odd layout, I think it is better to show people that malicious things can be hidden in even the most readable code. People always worry about malice hidden in the long unreadable stuff, but can you find the problem in this?
Notepad was never intended to be a source code editor. To really mess things up, use Wordpad instead.
My favorite is still from 1987 by David Korn. Short, sweet, not arranged in a silly picture, not obscure due to lack of indenting or white space, and seems to exemplify the spirit of obfuscated C. Though it does have portability issues and intended for older compilers (try to figure out before compiling as compiler messages will give a huge hint).
main() { printf(&unix["\021%six\012\0"],(unix)["have"]+"fun"-0x60);}
I've always been tempted to give this as a question during interviews.
The true obfuscation is that Chrome will not display .c files, but forces you to save it.
Then, if you open it in Notepad, it will show it all as one line, so you can't see whats going on.
Pure genius.
it's just their mimetypes. ie and firefox do the same thing. if you had opened the .c file in IE, it would show the source as intended. silly, huh?
world was created 5 seconds before this post as it is.
Same with my Firefox. Would like to just tell it that it's plain text somehow.
There's an add-on for that. I'm running "Open In Browser 1.11" on Firefox 10.0.3. Works great.
Give me Classic Slashdot or give me death!
You need to use an Ofuscated-C compiler. I would settle for Avenger Assembler though.
"I think this line is mostly filler"
When you feed your code to something that supports infinite precision integers your program will end up printing non-primes! The question is, when does this happen and what would the sizeof(int) be?