LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-23-2006, 10:24 AM   #1
orgcandman
Member
 
Registered: May 2002
Location: new hampshire
Distribution: Fedora, RHEL
Posts: 600

Rep: Reputation: 109Reputation: 109
LQ Obfuscated C challenge


Ok, I'd like to just see what creative minds we have here. Basically, you write a program which must be able to follow the posted guidelines, and the users judge the most creative/funny/awesome program.

Proposed Guidelines (basically, stolen from the IOCCC):

Code:
1. Your program must be written in ANSI C
2. Your program must be able to compile and run on any platform.
3. Your program cannot be larger than 2048 bytes of code, and 1024 bytes of whitespace combined.
4. All work must be original.
5. The challenge will be held monthly. 
6. Entries are due no later than the 15th of the month.
7. Entries recieved after the 15th of the month will be rejected. They can be resubmitted on the 1st of the following month.
8. Entries can be judged by any user except the entrant.
9. Entries will be scored on a scale from 1 to 10. (1 being the worst score, and 10 being the best)
10. Winners will be announced on the last day of the month.
11. Winners don't really win anything except the respect of their peers for most awesome obfuscated code.
Entry Guidelines
Code:
1. All entries should be made via post to this thread.
2. All entries should be submitted during the submission period.
3. All entries immediately fall into the public domain. You retain credit for your work.
4. If your entry is "underhanded" clearly mark it as such, and what the behavior is that you are masking.
5. If your entry is "overhanded" clearly mark it as such, and detail what the program does.
In the interest of saving people from running malicious obfuscated code, I have a few spare machines which can be utilized to run these programs without harm to anyones data.

What are the thoughts/suggestions/comments? I'd like to get this started so that we can begin on the 1st of november, if people are interested.

@Mods, if you feel this is inappropriate, or not the correct forum, please go ahead and lock/close. However, could you also PM me and perhaps we can discuss a good way of implementing something like this?

-Aaron

Last edited by orgcandman; 10-24-2006 at 09:54 AM.
 
Old 10-23-2006, 11:02 AM   #2
dmail
Member
 
Registered: Oct 2005
Posts: 970

Rep: Reputation: Disabled
Quote:
thoughts/suggestions/comments?
Erm I go out of my way not to write code like this and personally don't see the value of such an challange.
Quote:
9. Entries will be scored on a scale from 1 to 10. (1 being the worst score, and 10 being the best)
How do you score obfuscated code?
 
Old 10-23-2006, 11:12 AM   #3
orgcandman
Member
 
Registered: May 2002
Location: new hampshire
Distribution: Fedora, RHEL
Posts: 600

Original Poster
Rep: Reputation: 109Reputation: 109
Quote:
Originally Posted by dmail
Erm I go out of my way not to write code like this and personally don't see the value of such an challange.
Well, my own thought is the the value is in the creativity. It's actually surprisingly difficult to write truly breathtaking obfuscated code. (See some of the IOCCC entries).

Quote:
Originally Posted by dmail
How do you score obfuscated code?
Well, some people would obviously score code based on different criteria. Personally, I look at how interesting the code is, as well as how obfuscated it is. Then I judge how well it does the intended task.
 
Old 10-23-2006, 11:30 AM   #4
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
I remeber a similar thing about self repicateing C code that could print the source. Was rather intresting.
 
Old 10-23-2006, 12:12 PM   #5
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
Obfuscated code is easy and already well done by the IOCCC. Underhanded C is where its at. http://www.brainhz.com/underhanded/
 
Old 10-23-2006, 12:30 PM   #6
dmail
Member
 
Registered: Oct 2005
Posts: 970

Rep: Reputation: Disabled
@tuxdev thanks for the link, now that does seem like fun.
 
Old 10-23-2006, 01:30 PM   #7
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
Quote:
Originally Posted by tuxdev
Obfuscated code is easy and already well done by the IOCCC. Underhanded C is where its at. http://www.brainhz.com/underhanded/
hmm. nice link.. i cant wait to test all of the contest code from there..
 
Old 10-23-2006, 02:58 PM   #8
Jaqui
Member
 
Registered: Jan 2006
Location: Vancouver BC
Distribution: LFS, SLak, Gentoo, Debian
Posts: 291

Rep: Reputation: 36
I agree with dmail, the second idea is far more interesting than the first.
I detest Obfuscated code and would never participate.
 
Old 10-24-2006, 09:51 AM   #9
orgcandman
Member
 
Registered: May 2002
Location: new hampshire
Distribution: Fedora, RHEL
Posts: 600

Original Poster
Rep: Reputation: 109Reputation: 109
"underhanded" code is still a form of obfuscated code. Instead of obfuscating correct behavior, you're obfuscating incorrect behavior. I'd be fine with either, since they both take a lot of thought, and really exercise the minds of the readers.

Other questions, comments? I can revise so that we have a clear definition of obfuscation being that you are hiding some type of behavior, and should indicate that with your entry.
 
Old 11-02-2006, 09:37 AM   #10
orgcandman
Member
 
Registered: May 2002
Location: new hampshire
Distribution: Fedora, RHEL
Posts: 600

Original Poster
Rep: Reputation: 109Reputation: 109
Since I haven't heard any objections, let the games begin.

Deadline is 15th of Nov.

PS: I'll write some underhanded code today for this.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
new challenge thebiggiantmouse Linux - Newbie 16 07-24-2006 09:03 AM
Want a challenge? TruckStuff Linux - Security 2 05-13-2005 01:39 AM
a challenge for you derfaust Programming 3 03-12-2004 12:23 AM
Fifth Annual Obfuscated Perl Contest Winners Announced jeremy Programming 0 11-16-2000 02:57 PM
5th Annual Obfuscated Perl Contest jeremy Programming 2 08-11-2000 07:04 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration