Slashdot Mirror


The 17th IOCCC is Now Open!

SimonCooper inputs: "Are you frustrated with software bloat? If so then you might want to consider submitting a little something to The 17th International Obfuscated C Code Contest. The contest is now open for submissions and runs from midnight Jan 7th, 2004 through the end of 29th Feb 2004 (all times in UTC!). Later on in January it will be possible to submit entries using a web form."

12 of 25 comments (clear)

  1. The Ultimate Obfuscation by Anonymous Coward · · Score: 2, Funny

    - Take C code
    - Translate it into APL
    - Print out code
    - Drink coffee and beer quite sloppily while reading code
    - Put code in file cabinet in basement behind locked door that has a sign on it "Beware of Leopard".

    1. Re:The Ultimate Obfuscation by aled · · Score: 2, Funny

      You forgot first going in the isolation tank with the hallucinogen drugs until you get to right state of mind for IOCCC.

      --

      "I think this line is mostly filler"
  2. Another win for M$! by simonecaldana · · Score: 3, Funny

    Microsft is going to win hands down, they would simple have to submit some windows source code.

    1. Re:Another win for M$! by gazbo · · Score: 3, Funny

      Are you allowed to say that under the NDA you obviously signed given that you've obviously actually seen Windows code and aren't just making "an hilarious" karma-whoring "joke"?

    2. Re:Another win for M$! by Anonymous Coward · · Score: 4, Funny

      Or maybe Linus Torvalds will win with his unbelievably obfuscated version of SCO's UnixWare?

      (Yes, that's a lame joke too. It's so lame that I have to tell it's a joke not to be moderated down as flamebait. And you should know it's not flamebait when it's true. Alright, the last sentence there was flamebait. But not anymore now that I've admitted it was. Now it's a joke. Funny! Laugh! Now give me my precious karma points, you fucking retard moderators! So now I'm a troll. Maybe I should post this anonymously. Or maybe I just should buy some cigarettes. Being a non-smoker makes me weird. Let this message be a warning if you consider to quit smoking. It's not worth it. You'll be like me, and there's nothing as disgusting as a self-concious troll. Cigarettes, cigarettes ... I'm off!)

    3. Re:Another win for M$! by simonecaldana · · Score: 3, Funny

      I'm sorry, I can't answer you. I signed an NDA which forbids me to.

  3. Assuming, of course... by MarkusQ · · Score: 4, Funny

    Later on in January it will be possible to submit entries using a web form.

    Assuming, of course, that they don't have a lameness filter.

    -- MarkusQ

  4. Not hard enough! by Larry+David · · Score: 5, Funny

    Obfuscated C code is one thing, and they make some great stuff, like that miniature BASIC interpreter which won last year (or was it 2002?). But if you want a REAL challenge, perhaps we should invent a new competition..

    The first International Readable Perl Code Contest. Your challenge.. write any application in Perl that's over 100 lines and that at least two other programmers can understand. We don't expect to have any winners for the next few years, but get coding.. and we'll see you soon!

    1. Re:Not hard enough! by aled · · Score: 4, Funny

      You know that Larry Wall (creator of Perl) won at least twice at IOCCC? that explains somethings...

      --

      "I think this line is mostly filler"
    2. Re:Not hard enough! by jonadab · · Score: 2, Informative

      > any application in Perl that's over 100 lines

      You do realize, do you not, that 100 lines is a whole lot of Perl. I know, in
      C that's barely enough to declare your data structures for a medium-sized
      CGI script, but a Perl program tends to be shorter. (There *are* really
      large apps written in Perl (Bugzilla comes to mind), but if they were written
      in C they'd be 2-10 times larger, depending on what they do.)

      For example, consider an application that connects to the slashdot web server,
      retrieves the main page, fills in the username and password, submits the form,
      extracts the list of headlines from the result, checks them against a MySQL
      database to see which ones are new since last time, displays those, and then
      sleeps for some predetermined amount of time. In C, that's probably well over
      100 lines of code. In Perl, we write that in ten lines and play golf with it.
      Yeah, that's using a couple of modules from the CPAN, but that's roughly the
      equivalent of includes in C, and I *know* you don't want to try the above in
      C without including some string handling libraries.

      --
      Cut that out, or I will ship you to Norilsk in a box.
    3. Re:Not hard enough! by jonadab · · Score: 2, Informative

      > In Perl, we write that in ten lines and play golf with it.

      In fact...

      use WWW::Mechanize; use DBI; $\=$/;
      my $dbh = DBI->connect("DBI:mysql:database=slashdot;host=loc alhost", 'dbuser', 'dbpasswd', {'RaiseError' => 1});
      my $query = $dbh->prepare("SELECT * from headlines WHERE title=? and seen='yes'");
      my $update = $dbh->prepare("INSERT INTO headlines SET seen='yes', title=?");
      while (1) {
      ($m = WWW::Mechanize->new())->get("http://slashdot.org") ;
      $m->form_number(1); $m->set_fields(unickname=>'slashuser',upasswd=>'sl ashpass'); $m->click();
      for (($m->content()) =~ m/size="?4[^>]*><b>(.*?)<\/b>/ig ) {
      $query->execute($_); (print and $update->execute($_)) unless $query->fetchrow_array() }
      sleep 10 }

      --
      Cut that out, or I will ship you to Norilsk in a box.
  5. Tried it by dtfinch · · Score: 2, Interesting

    I've never placed though. Had an othello game and an encrypted program within a program (interpreter). In retrospect I probably should have chosen a different game because othello had been done before, and written a bigger program to run on the interpreter.

    I recognize one of the 2000 winners though from the Robot Battle Mailing List, long before he was in the contest.