Closed Thread
Results 1 to 10 of 10

Thread: The obfuscated Eiffel

  1. #1
    Chinmoy's Avatar
    Chinmoy is offline Programming Expert
    Join Date
    Feb 2008
    Location
    where heaven meets earth
    Posts
    410
    Rep Power
    18

    The obfuscated Eiffel

    International Obfuscated C Code Contest

    The International Obfuscated C Code Contest (abbr. IOCCC) is a programming contest for the most creatively obfuscated C code held annually since 1984. The goal is thus to create the most complex and complicated logic for a possibly simple execution!!


    There are many winning entries each year, and each entry gets a category such as “Worst Abuse of the C preprocessor” or “Most Erratic Behavior”.

    The IOCCC was started by Landon Curt Noll and Larry Bassel. They were talking together about the horrible code it was their jobs to maintain and this led to an idea. They decided to hold a contest for the worst possible C code!

    Within the only limit being the code size to a few kilobytes, the contestants manage to do complicated things.A 2004 winner turned out an operating system.

    Some quotes from 2004 winners include:

    To keep things simple, I have avoided the C preprocessor and tricky statements such as “if”, “for”, “do”, “while”, “switch”, and “goto”.
    We still aren’t sure whether or not this is a useful program, but it’s the first atomic fission we’ve seen in the IOCCC.
    Why not use the program to hide another program in the program? It must have seemed reasonable at the time.
    The program implements an 11-bit ALU in the C preprocessor.
    I found that calculating prime numbers up to 1024 makes the program include itself over 6.8 million times.

    Below is a 1988 entry which calculates pi by looking at its own area:

    Code:
    #define _ -F<00||–F-OO–;
     
    int F=00,OO=00;
     
    main()
    {
            F_OO();
            printf("%1.3f\n",4.*-F/OO/OO);
    }
     
    F_OO()
    {
                _-_-_-_
           _-_-_-_-_-_-_-_-_
        _-_-_-_-_-_-_-_-_-_-_-_
      _-_-_-_-_-_-_-_-_-_-_-_-_-_
     _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
     _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
    _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
    _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
    _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
    _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
     _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
     _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
      _-_-_-_-_-_-_-_-_-_-_-_-_-_
        _-_-_-_-_-_-_-_-_-_-_-_
            _-_-_-_-_-_-_-_
                _-_-_-_
    }
    read the complete post :: Obfuscated c contest | TECHARRAZ
    God is real... unless declared an integer

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    Jordan Guest

    Re: The obfuscated Eiffel

    Sounds like a neat contest!

  4. #3
    Chinmoy's Avatar
    Chinmoy is offline Programming Expert
    Join Date
    Feb 2008
    Location
    where heaven meets earth
    Posts
    410
    Rep Power
    18

    Thumbs up Re: The obfuscated Eiffel

    Ya, you can participate, given your level of knowledge...
    God is real... unless declared an integer

  5. #4
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: The obfuscated Eiffel

    It sounds like fun. Good luck Jordan!

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

  6. #5
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101

    Re: The obfuscated Eiffel

    Personally I don't know any C... And I didn't understand much.

  7. #6
    Chinmoy's Avatar
    Chinmoy is offline Programming Expert
    Join Date
    Feb 2008
    Location
    where heaven meets earth
    Posts
    410
    Rep Power
    18

    Re: The obfuscated Eiffel

    The obfuscated eiffel is held for a variety of otheer languages, python i know and many other...
    God is real... unless declared an integer

  8. #7
    Join Date
    Jul 2006
    Posts
    16,486
    Blog Entries
    75
    Rep Power
    143

    Re: The obfuscated Eiffel

    C is the one I've heard about, mainly because it has so MANY methods of obfuscation available to it.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  9. #8
    Sionofdarkness is offline Programming Expert
    Join Date
    Jul 2006
    Posts
    383
    Rep Power
    0

    Re: The obfuscated Eiffel

    Ha ha, the way pi is calculated is funny.

  10. #9
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20

    Re: The obfuscated Eiffel

    I've heard of the International Obfuscated C Code Contest - In fact, I mentioned to Jordan a while ago, that I would like CodeCall to hold an Obfuscuated Code contest.

  11. #10
    Chinmoy's Avatar
    Chinmoy is offline Programming Expert
    Join Date
    Feb 2008
    Location
    where heaven meets earth
    Posts
    410
    Rep Power
    18

    Re: The obfuscated Eiffel

    that would be excellent! I love contests!
    God is real... unless declared an integer

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Obfuscated C++ Contest
    By LogicKills in forum C and C++
    Replies: 36
    Last Post: 10-05-2008, 08:52 PM
  2. Obfuscated code? Programming contest?
    By BR Invertia in forum General Programming
    Replies: 4
    Last Post: 04-02-2007, 09:15 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts