Slashdot Mirror


18th International Obfuscated C Code Contest Opens

chongo writes "The 18th International Obfuscated C Code Contest, the Internet's longest running contest, is now open. The goals, rules, and guidelines are available. Use the online submission tool to submit your obfuscated C code by 22-May-2005 23:59:59 UTC."

17 of 187 comments (clear)

  1. Past Winners with Spoilers by Entropy248 · · Score: 5, Informative

    Here are some past winners with "Spoilers" for what they do. It's already pretty slow though and I'm first post.

  2. Reminds me of a joke... by mirko · · Score: 5, Funny
    The highlight of the annual Computer Bowl occurred when Bill Gates, who was a judge, posed the following question to the contestants:

    ``What contest, held via Usenet, is dedicated to examples of weird, obscure, bizarre, and really bad programming?''

    After a moment of silence, Jean-Louis Gassee (ex-honcho at Apple) hit his buzzer and answered ``Windows.''

    Mr. Bill's expression was, in the words of one who was there, ``classic.''
    --
    Trolling using another account since 2005.
  3. Our Legacy code by AhaIndia · · Score: 5, Funny

    The legacy code I have to work on must be submitted. No body knows how it works and there is no documentation.

    --
    ~Aha~
  4. Hmm.. by bl4nk · · Score: 5, Funny

    DOS C:\DOS C:\DOS\RUN RUN DOS RUN.. Wait... that's C isn't it? God damn it. I'll never win at this rate...

  5. Mirrors by ugo · · Score: 5, Informative

    www.tw.ioccc.org - Hsin-Chu, Taiwan
    www.au.ioccc.org - Sydney, Australia
    www.de.ioccc.org - Frankfurt/Main, Germany
    www.es.ioccc.org - Madrid, Spain
    www.gr.ioccc.org - Athens, Greece
    www0.us.ioccc.org - Sunnyvale California, US
    www1.us.ioccc.org - Saint Paul, Minnesota US

  6. Quoth the output, "I've dumped a core" by aendeuryu · · Score: 5, Funny

    Once upon a midnight dreary, gcc compiled, growing weak and weary,
    code obfuscated like ne'er seen before.
    I could hear a faint grinding,
    As the preprocessor went on finding,
    it was a noise I could plainly say I abhor.
    T'was an executable destined to dump quite a core.

    It was a nice sunny day, I remember, in May,
    and there lay pizza boxes scattered all o'er the floor.
    But because of this Gentoo, I felt I was being sent to
    the depths of hell for damnation evermore.
    All for a program that would dump its core.

    In time, day diminished, and gcc was finished,
    and the program was a size worthy of lore,
    because of the a.out, my hard drive near ran out,
    as the program took up gigabytes galore,
    and when I ran it, quoth the output, "I've just dumped a core."

  7. Re:I wonder... by Anonymous Coward · · Score: 5, Funny

    No, they have the UNobfuscated version of the event for Perl - much harder to win.

    http://humorix.org/articles/2000/09/unobfuscated /

  8. Maze of Code by Anonymous Coward · · Score: 5, Interesting

    Compile with -fwritable-strings, run, type in a number like 20, find your way out...

    char*M,A,Z,E=40,J[40],T[40];main(C){for( *J=A=scanf(M="%d",&C);
    -- E; J[ E] =T
    [E ]= E) printf("._"); for(;(A-=Z=!Z) || (printf("\n|"
    ) , A = 39 ,C --
    ) ; Z || printf (M ))M[Z]=Z[A-(E =A[J-Z])&&!C
    & A == T[ A]
    |6<<27<rand()||!C&!Z?J[T[E]=T[A]]=E,J[T[A]=A-Z ]=A,"_.":" |"];}

  9. Speaking of obfuscated code... by PornMaster · · Score: 5, Informative

    If you haven't been there yet, you should check out TheDailyWTF... it's not obfuscated code, but rather unmaintainable code people submit to show what they've been left to deal with at work. Quite interesting, and sometimes as difficult to understand as intentionally obfuscated code.

    1. Re:Speaking of obfuscated code... by Repton · · Score: 5, Funny

      This truly brings tears to my eyes...

      public boolean compareObjects(Object obj1 , Object obj2) {
      if (obj1.equals(obj2) == true)
      return true;
      else
      return false;
      }

      Oh why aren't we teaching more people to code like this?

      --
      Repton.
      They say that only an experienced wizard can do the tengu shuffle.
  10. Ode to C. by Anonymous Coward · · Score: 5, Funny

    May your signals all trap
    May your references be bounded
    All memory aligned
    Floats to ints rounded

    Remember ...

    Non-zero is true
    ++ adds one
    Arrays start with zero
    And NULL is for none

    For octal, use zero
    0x means hex
    = will set
    == means test

    use -> for a pointer
    a dot if its not
    ? : is confusing
    use them a lot

    a.out is your program
    there's no U in foobar
    And char (*(*x())[])() is a function returning a pointer to an array of pointers to functions returning char.

  11. A tattoo of obfuscated C ... by Crspe · · Score: 5, Interesting

    This I love - One guy went and had the first ever entry in the ioccc (from 1984) tattooed on his forearm ...
    http://tattoo.thomasscovell.com/index.html

    This I also love - the first ever entry was a hello world program!

    That entry was the longest one ever made into a tattoo, however there are hundreds of people around the world who have unknowingly had this entry tattoed on their forearm:
    http://www.de.ioccc.org/years.html#1994_smr

    This is really a great competition - lots of fun, lots to learn. Try understanding how some of the entries work, its really a challenge sometimes, and you can learn plenty about C and the preprocessor.

  12. Re:I wonder... by Crspe · · Score: 5, Interesting

    Well, there is kind of a similar competition for perl ... perl golf ... where the aim is to write the smallest possible perl program to fulfill a particular task. The winners of these competitions are invariably amazingly obfuscated, and unbelievably small!
    One example - one competition involved calculating and printing out the huffman codes for a given input - the winner achieved this with a 76 character perl program!

    find more here:
    http://www.google.com/search?hl=en&q=perl+golf
    or here http://terje.perlgolf.org/

  13. I agree with you. Join us. Join us. by kahei · · Score: 5, Funny


    Unproductive labor is bad. Only productive units can be allowed in hive. Workers who waste energy must be sent to the vats. It is therefore in interests of workers to be productive. To conserve energy. To obey.

    (This message brought to you by the World Utilitarian Council).

    --
    Whence? Hence. Whither? Thither.
  14. Yes by AthenianGadfly · · Score: 5, Funny

    Yes, they do have this in Perl. It's called programming.

  15. I've got a good one in the same vein by Anonymous Coward · · Score: 5, Funny

    B: Why did the chicken cross the road?

    A: Windows sucks!

    1. Re:I've got a good one in the same vein by Anonymous Coward · · Score: 5, Funny

      B: Windows NT Chicken:
      A: The Windows NT Chicken is designed to run over the Novell chicken as it crosses the road. Forget about crossing the road with less than 100MB of RAM

      B: Win 95 Chicken:
      A: The Win95 Chicken can cross any given road in eleven different ways, not counting the use of wizards who will actually cross the road for the chicken. If you can remember all eleven ways, you can become a Microsoft Certified Poultry Specialist (MCPS). If you come up with new way for the Windows 95 Chicken to cross the road, you can become a Microsoft Certified Solution Provider (MCSP.) But if you come up with a whole new chicken altogether, then you will become a Microsoft Certified Enemy (MSROADKILL)

      B: Microsoft Chicken (tm):
      A: Already owns both sides of the road and the space in the middle (check out "The Road Ahead", by Bill Gates). The Microsoft Chicken no longer worries about getting to the other side of the road. Its sole hell-bent mission is to somehow install MS Internet Explorer on your hard drive and choke the Netscape Chicken.

      B: Longhorn Chicken
      A: Struts around like it's king, but when it eventually crosses the road, it's indistinguishable from the XP Chicken