Connect with Facebook Lost Password?


Go Back   CodeCall Programming Forum > General > The Lounge

The Lounge Discuss any topics not covered elsewhere in this forum. Kick back, relax and get it off your mind.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-12-2008, 07:35 AM
Chinmoy's Avatar   
Programming Expert
 
Join Date: Feb 2008
Location: where heaven meets earth
Posts: 391
Rep Power: 9
Chinmoy has a spectacular aura aboutChinmoy has a spectacular aura about
Default 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-12-2008, 07:52 AM
Jordan's Avatar   
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 18,348
Blog Entries: 90
Rep Power: 20
Jordan is a glorious beacon of lightJordan is a glorious beacon of lightJordan is a glorious beacon of lightJordan is a glorious beacon of lightJordan is a glorious beacon of light
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan Send a message via Yahoo to Jordan
Default Re: The obfuscated Eiffel

Sounds like a neat contest!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-12-2008, 08:00 AM
Chinmoy's Avatar   
Programming Expert
 
Join Date: Feb 2008
Location: where heaven meets earth
Posts: 391
Rep Power: 9
Chinmoy has a spectacular aura aboutChinmoy has a spectacular aura about
Thumbs up Re: The obfuscated Eiffel

Ya, you can participate, given your level of knowledge...
__________________
God is real... unless declared an integer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-12-2008, 12:45 PM
Xav's Avatar   
Xav Xav is offline
Code Slinger
 
Join Date: Mar 2008
Location: The North Pole
Posts: 13,210
Blog Entries: 13
Rep Power: 105
Xav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud of
Send a message via MSN to Xav
Default 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-13-2008, 10:05 AM
TcM's Avatar   
TcM TcM is offline
Code Warrior
 
Join Date: Aug 2006
Posts: 9,807
Blog Entries: 6
Rep Power: 82
TcM is a name known to allTcM is a name known to allTcM is a name known to allTcM is a name known to allTcM is a name known to allTcM is a name known to all
Default Re: The obfuscated Eiffel

Personally I don't know any C... And I didn't understand much.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 06-13-2008, 10:38 AM
Chinmoy's Avatar   
Programming Expert
 
Join Date: Feb 2008
Location: where heaven meets earth
Posts: 391
Rep Power: 9
Chinmoy has a spectacular aura aboutChinmoy has a spectacular aura about
Default 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 06-13-2008, 11:11 AM
WingedPanther's Avatar   
Super Moderator
 
Join Date: Jul 2006
Age: 36
Posts: 8,075
Blog Entries: 48
Rep Power: 20
WingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to behold
Default Re: The obfuscated Eiffel

C is the one I've heard about, mainly because it has so MANY methods of obfuscation available to it.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 06-13-2008, 03:01 PM
Programming Expert
 
Join Date: Jul 2006
Posts: 383
Rep Power: 0
Sionofdarkness is an unknown quantity at this point
Default Re: The obfuscated Eiffel

Ha ha, the way pi is calculated is funny.
__________________
Make Money Online
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 06-14-2008, 12:32 PM
John's Avatar   
Co-Administrator
 
Join Date: Jul 2006
Age: 20
Posts: 5,305
Blog Entries: 24
Rep Power: 20
John is just really niceJohn is just really niceJohn is just really niceJohn is just really niceJohn is just really nice
Send a message via AIM to John Send a message via MSN to John
Default 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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 06-15-2008, 09:52 AM
Chinmoy's Avatar   
Programming Expert
 
Join Date: Feb 2008
Location: where heaven meets earth
Posts: 391
Rep Power: 9
Chinmoy has a spectacular aura aboutChinmoy has a spectacular aura about
Default Re: The obfuscated Eiffel

that would be excellent! I love contests!
__________________
God is real... unless declared an integer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Obfuscated code? Programming contest? BR Invertia General Programming 4 04-02-2007 11:15 AM


All times are GMT -5. The time now is 03:06 PM.

Freelance Jobs

XML/XSL: Need code for Book with Chapers using XML
Create an XML file for a book of your creation, and a basic CSS file that will format it to display ...
Earn: $40.00


C++/C: Simple firework cue sequencer
What I require is a rework of a simple cue sequencer. I have a piece of hardware (an Arduino boar...
Earn: $50.00


HTML/XHTML: Menu Rework - ASCIIBin
I'm placing this in the HTML/XHTML section of the Freelance site but you are not limited to HTML. Wh...
Earn: $20.00



CodeCall Goal

Goal #1: 1,000 Blogs
Goal #2: 1,000 Wiki Pages
Goal #3: 300,000 Posts
Goal #4: 20,000 Threads
Done: 30%, 23%, 55%, 75%

Ads