16th IOCCC Winners Announced
chongo writes: "The winners of the 16th International Obfuscated C Code Contest (IOCCC) have been selected.
The judges are in the process of notifying the winners by EMail. We expect to release the source code around mid April 2002 after the winners have had a chance to review our writeup of their entries."
Write a program in one language, but make it appear to be in a different programming language. For example make a perl program look like a java program.
I think you just notified them via Slashdot.
The Shadow Government Knows
tcd004
> We expect to release the source code
> around mid April 2002
Will we also get a translation in assembler to help clarify the soure code?
These may be very good test cases for the site.
Karma? Karma? I don't need no stinkin' karma.
We have already had one anonymous winner request to become non-anonymous.
chongo (was here)
As I said, I'm not much of a programmer, but it seems that enough people generate obfuscated code unintentionally that having a contest to encourage this sort of thing is silly and counterproductive to the advancement of programming techniques. I just hope the people who enter this contest are a bit cleaner coders when they have real work to do!
--
I'm wasted and I can't find my way home...
The winning descriptions sound pretty ho hum again this year. Although the X program and the interactive games are usually somewhat interesting since they waste a lot of your allotted bytes to get them started. Still haven't seen a really slick X program since the julia/mandelbrot viewer from the early 90's. And I'm definitely going to still be waiting for someone to top theorem from 1990.
Try again when there's something to *see*.
i guess my obfuscated version of Hello World didnt win again!
Looks like this site is now the winner of todays International Obfuscated Website Contest due to the /. effect.
.
Quidquid latine dictum sit altum viditur
GPL ABUSER has WON the IOCCC CODE CONTEST!
In that one the goal is to unobfuscate any code, I mean any at all that has ever been made in the last 40 years.
Is there a secret society of Grand Master programmers that use the results of this contest to test new initiates? Using only a ball of twine, a gumdrop, and a used stamp, with ten minutes on the clock, they are asked what the source code would do. Correct answers gain entry, will failed responses fate the initiate to forever program in JavaScript (or maybe VB).
Because everyone knows, grand master programmers don't need comments.
I just wish I didn't work with grand master wannabes.
There was the Bill Gates award that was given out back in 1993.
On a slightly related topic, one can use the Best Utility from 1998 to pootify Microsoft's web site for better reading. :-)
chongo (was here)
... without just appearing to be in another language, but actually being so. Take a look here . Genius or travesty?
?-|||-----x<*))))><
The winner on this years contest is Microsoft for their submission of
Microsoft Corporation End User Agreement
Contributed by an anonymous user.
Since this code is obfuscated I guess the GPL does not apply to it?
When I say I'm not much of a programmer, I mean that I'm not a programmer at all :-) I don't use gcc, but if this contest has helped to improve it, then maybe I was wrong about it. Thanks for pointing that out to me!
--
I'm wasted and I can't find my way home...
We expect to release the source code around mid April 2002
To quote Homer: 40 seconds? But I want it NOW!
Any of the winners care to link to their source? (Obviously nothing would get past the lameness filter ;-)
Free Java games for your phone: Tontie, Sokoban
Every time I hear about the IOCCC I'm reminded of this old anecdote:
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."
(source)
"There are already a million monkeys on a million typewriters, and Usenet is NOTHING like Shakespeare." - Blair Houghton
I hear this word doled out by folks on Slashdot a lot, but it must be some special geek code word because I have no idea what it means (beyond those little brown things with the foofy hair I used to collect as a kid :-) Would you care to explain it to me? Anyway, thanks for the, er, compliment (I think).
--
I'm wasted and I can't find my way home...
#include <stdio.h> ,m ),A(n ,i))() {B (A(h,c ),A(r ,a ))*p=x ;B(A( n, i),t)t ,A(r, o )) (;*p;Q( p)++){C( B( A(c,t) ,h),B(A( ,s ++)Z( 1,t+= 8 ;,s++ )Z ,putchar(t-73);t=s=0)}}})
#define S(s)char x[]=#s;s
#define Q(x)x
#define A(x,y)y##x
#define B(x,y)A(y,x)
#define C(x,y)B(y,x)
#define Z(s,t,u)case s:if(*p!=32){t;}else{u;}break;
S(B( A( a
=0;B(A(n , i),t)s =0;B( f
w, s),i))( s){ Z( 0,t+=8 *8-00
( 2, t++
Best Abuse of User: Edward Rosten (England) - Greasy mouse
also qualifies for the Iron Chef competition. Or am I alone in thinking that Greasy Mouse sounds like some sort of England variant on Chinese/Indian cookery? *grin* (I can't wait to see this entry. I love the Abuse of User programs...)
This flies in the face of science.
The contributors, winners, judges and just about
anyone who has anything to do with IOCCC, should
be in your "not to hire" black-list.
Unless you want your project to be implemented as
a self-printing pelindromic asciiz, that has a built in tetris.
--
Keep up the good work! Change is right around the corner, just a few more of these posts and we'll achieve victory!
You can make python have curly brackets for sections of code, just comment them out:
if x==z: # {
print y
x+=z
# }
(I can't get it to indent properly, everytime I hit tab IE goes to another part of the form)
- Worst driver
Anonymous 4 (USA) - A driver gameHey, I didn't know Anonymous 4 did programming too?
Har har. Anyway, compared to today's high-level languages, C is boring. Let's see some obfuscated Ruby programs.
And when you do so... turn on your webcam and effectv. GPLed Mescalin it is!:>
0x or or snor perron?!
I bet the guy is afraid to get fired for not working on the job ;-)
It takes real skill to build good intentionally obfuscated C, and the folks who can do so effectively can generally write very clean C as well. The people who unintentionally create code that looks like a potential entry... now, they're to be watched for.
The winners will be notified by Obsfucated Email guised as spam.
Linux - Because Mommy taught me to Share.
...but I do not think that perl is the "Write Once, Read Nowhere" langue you make it out to be ^_^ Just for a little fun, I thought I'd try out my rusting perl tricks and unroll your silly script.
.. ('z' x $i)) {
:-) $_ is not used yet and thus is 0, and ++0 is of course 1. 1<<3
.. ('z' x $i)) {
:-)
$crypt = "plfeY04jaJnYI";
$salt = substr $crypt, 0, 2;
for($i = 1; $i <= 8; ++$i) {
foreach(('a' x $i)
if($crypt eq crypt($_, $salt)) {
print "key $_, salt $salt\n"; exit 0;
}
}
}
Not very difficile, Mister shiny@rfl.pl, but I shall compliment you for at least trying to obfuscate with the silly "q//" perl operateur ^_^ For those who are onlooking, here is a short explanation of how his original code works:
$x=substr$q,q,0,,q,2,if$q=q,plfeY04jaJnYI,;
Firstly, one must recall that the q// operateur works with any delimiteurs, including the virgule (,). One need only replace q,<x>, with 'x' to see that the code becomes:
$x = substr $q, '0', '2', if $q = 'plfeY04jaJnYI';
Since perl automatically changes the strings into numbres, it is really substr $q, 0, 2 which extracts the salt from the crypt hash. The last virgule between the 2 and the if is just a ruse, since substr only uses three arguments ^_^
The "if" statement is another ruse; suffixed "if" is in fact called before the condition of the "if" statement, and he uses this to initialise $q apparently after it's been first used. The above code is in fact equal to this:
$q = 'plfeY04jaJnYI';
$x = substr $q, 0, 2;
And it makes itself apparent that $q is the crypt hash (henceforth called $crypt) and $x is the salt ($salt).
for (++$_..$_<<3){...}
Now you are just being silly
is 8. So the above is just a simple for loop:
for($i = 1; $i <= 8; ++$i) {...}
Which not only looks simpler, but runs faster too ^_^
qq,$q,eq crypt$_,$x and die
qq,$_.$x,for q,a,x$_..q,z,x$_
This one's a bit tricker, but still not very difficile. One must simple look at the end where there is another "for" loop, once again overusing the q// operateur. This causes the $_ within the loop to be local and of a different value than the $_ outside of the loop (which we have renamed to $i for clairitie). Hence the loop morphoses itself to (with parentheses added for easier reading):
foreach(('a' x $i)
$crypt eq crypt($_, $salt) and die "$_.$salt";
}
The "and die" bit just is taking advantage of the short-circuit boolean operateur système. The "die" only is executing when $crypt (the origin hash) and the encrypted form of the current guess are equal, in which case the key has been found and we quit ^_^ I changed it to a nicer looking "print" statement for further clairitie.
Hopefully that wasn't too difficile to follow, my english is not perfect. Just remember, Mr. shiny@rfl.pl, no langue is completely impenetrable (except perhaps Intercal, but that's a small bit pathological
Sincerely yours,
Chloë
to not post this until source was released?
A friend of mine was bored at work one day and did something similar.
He wrote (in raw machine code) a program to uudecode a text file. If that wasn't impressive enough, he limited his op-code usage to only bytes that had a text representation (32-127), so you could simply paste some text at the begging of the uuencoded data, rename it to foo.com and run it!
He's one of the few truly amazing programmers I have met.
I live with the winner of the small program category. He does programming contests "for fun" In his own words "I dont remember how it works anymore"
Easy. The following should do the trick.
gcc foo.c -S
I can't find the post on /. that already explained this, but since I'm not a programmer...
What, again, is the point of a program that can compile itself? (see Best Abuse of the Rules winner)
Best of Show
Most likely to amaze
Best abuse of the rules (Most complete program)
Best X11 Game
Best Short Program
Best position-independent code
Best Abuse of CPP
Best Abuse of User
Best One-Liner
Best curses Game
Most eye-crossing
Most obfuscated sound
Best primal ASCII graphics
Best AI
Worst driver
chongo (was here)