Slashdot Mirror


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."

6 of 46 comments (clear)

  1. Winners link by SimonCooper · · Score: 5, Informative

    The link to the winners and descriptions is, http://www.ioccc.org/2011/whowon.html

  2. Re:Poop by Anonymous Coward · · Score: 5, Funny

    I eat poop.

    This is about C coding.
    Relating your experience coding Java is irrelevant.

  3. Turbo button? by McGregorMortis · · Score: 3, Funny

    Your age is showing...

    Yes, kids, PCs used to have turbo buttons.

    1. Re:Turbo button? by ericloewe · · Score: 3, Informative

      Weren't they actually underclock switches to maintain compatibility with older software that relied on the processor's clock for timing, the "turbo" being a marketing gimmick to make it sound faster?

    2. Re:Turbo button? by ChatHuant · · Score: 3, Interesting

      Weren't they actually underclock switches to maintain compatibility with older software that relied on the processor's clock for timing,

      Yup, that's what they were. The original PC had a hardware timer (an 8253 IIRC), but all available counters were used for timekeeping interrupts, sound generation and the like. Many programs (especially games) used software loops to generate timing, assuming the clock ran at the original IBM PC's 4.77 MHz. When the 80286-based /AT was introduced, those programs become unusable. To preserve some compatibility, manufacturers introduced the "turbo" button, whose purpose was actually to slow down the machine close to the original PC speed. This button remained a feature on cases for years, even though it often wasn't even connected to anything anymore.

  4. Favorite by Darinbob · · Score: 4, Interesting

    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.