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

29 of 187 comments (clear)

  1. 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.
  2. 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~
    1. Re:Our Legacy code by Anonymous Coward · · Score: 2, Funny
      No body knows how it works and there is no documentation.
      Oh, so you're the one who is developing OpenSSL's libcrypto.
  3. Re:Rawr by 0x461FAB0BD7D2 · · Score: 3, Funny

    Line 20 will never execute unless you return from Hell. Yes, Jesus, I mean you.

  4. Re:Rawr by JesusCigarettes · · Score: 2, Funny

    Hey, don't bring me into this!

    Besides, if Keanu Reeves can do it, anyone can.

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

  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. Re:I wonder... by Electroly · · Score: 4, Funny

    Obfuscated Perl? Contests are supposed to be hard. :-)

  9. Re:I wonder... by Ryvar · · Score: 4, Funny

    Obfuscated Perl? Contests are supposed to be hard. :-)

    Oh, it would be hard, just not in the way you think. If none of the judges can figure out any of the entries, how would they be able to pick a winner?

    --Ryv

  10. That pink stuff on the walls... by fm6 · · Score: 3, Funny
    ...is from all the brains that exploded as they tried to grasp that code.

    But what's the point? Why expend all that effort on obfuscating code when there are languages with obfuscation already built in?

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

  12. Re:Oh. My. God. by Rattencremesuppe · · Score: 3, Funny
    Am I the only that thinks that perhaps the programmers of the world can spend their energies doing something a little...um...i dunno...um...productive?

    Like... posting on Slashdot?

  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. Too right! by SweetAndSourJesus · · Score: 3, Funny

    As we all know, programming and fun are mutually exclusive. It's completely inconceivable that someone might have, I don't know, a good time writing code.

    --

    --
    the strongest word is still the word "free"
  15. Yes by AthenianGadfly · · Score: 5, Funny

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

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

  17. Winner of all times by halleluja · · Score: 4, Funny

    telnet.c

  18. 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.
  19. Who thinks.... by 10101001011 · · Score: 4, Funny

    We ought to submit the code for WIndows?

  20. Re:Simple by Anonymous Coward · · Score: 1, Funny

    Yeah, he is loops are unbalanced.

  21. OMG by Hobbex · · Score: 3, Funny

    This clearly has no hacker cred what so ever if Visual Studio won't compile it!

    (Real men use visual basic!!!!)

  22. I wrote this to my (girl) friend by nsupathy · · Score: 3, Funny

    And she never replied back. Of course she knew programming.

    int ec(int c){return c-5;}
    void dc(char *s){if(*s){putchar (ec(*s));dc(s+1);}}
    int fp();se(f){f&1?fp():f&2?
    fp2(): f&4 ? fp3():0;}
    fp(){char t[4] = "";dc("N%fr%ytt%ynwji%ytif~33%|fsy%f%ltti%mtrj%rfi j%yjf%gjktwj%mjfinsl%mtrj$");putchar(012);dc("Nx%n y%utxxngqj%ytif~D%`~jx4stb%");gets(t);(!strcasecmp (t, "yes"))?
    se(2):se(4);}
    fp2(){char s[21]="";dc("|mfy%ynrj%hfs%N%iwtu%nsD%");gets(s);
    dc("N%|nqq%gj%ymjwj%g~%");puts(s);dc("Ymfsp%~tz") ; }
    fp3(){dc("N%fr%xt%xfi33333%");dc("Fs~|f~%ymfsp% ~tz %ktw%wzssnsl%ymnx");
    putchar(012); }
    main(){se(1);}

    --
    #include std_disclaimer.h
  23. Re:I wonder... by Procrasti · · Score: 2, Funny

    You know why there is no obfuscated Perl contest?

    Everyone's a winner!

  24. Is it just me... by Minute+Work · · Score: 2, Funny

    ...or did any other web developers get their wires crossed when they read "18th International" and thought this had something to do with "I18N"?

  25. Re:Speaking of obfuscated code... by sconeu · · Score: 4, Funny

    Reminds me of some code... it was in a military system...


    while (strncmp(p," ", 1) == 0)
    ++p;


    To find the first non-space character in a string.

    --
    General Relativity: Space-time tells matter where to go; Matter tells space-time what shape to be.
  26. Re:Rawr by Anonymous Coward · · Score: 1, Funny

    Linux which can do endless loops in 6 seconds.

    That article you linked is ten years old, I really think Linux have improved since then.

  27. Re:Speaking of obfuscated code... by scavenger87 · · Score: 2, Funny
    Can somebody enlighten a newbie what is wrong with parent's code? Is the following snippet better:
    public boolean compareObjects(Object obj1,Object obj2) {
    return obj1.equals(obj2);
    }