Files
ioccc/faq.html
T
Landon Curt Noll 0af0de4885 Merge branch 'xexyl-updates'
Complex merge of pull request #7:

Conflicts resolved for:

    .gitignore

A few minor trailing whitespace changes made in:

    faq.html
    2000/guidelines
2023-02-12 18:46:46 -08:00

550 lines
19 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META name="description" content="International Obfuscated C Code Contest">
<META name="keywords" content="International, Obfuscated, C, c, IOCCC,ioccc, obfuscated, Obfuscate, obfuscate, Landon Curt Noll, chongo, Leonid A. Broukhis">
<link rel="stylesheet" type="text/css" href="ioccc.css">
<TITLE>The FAQ</TITLE>
</HEAD>
<BODY TEXT="#000000">
<CENTER><IMG ALT="IOCCC" SRC="png/ioccc.png"></CENTER><BR>
<CENTER><FONT SIZE="6"><I>The International Obfuscated C Code
Contest </I></FONT></CENTER><BR>
<CENTER><P>[ <A HREF="judges.html">The judges</A> |
<A HREF="main.html">IOCCC home page</A> |
<A HREF="main.html#enter">How to enter</A> |
<B>FAQ</B> |
<A HREF="contact.html">Contacting the IOCCC</A>
<BR>
<A HREF="main.html#new">IOCCC news</A> |
<A HREF="winners.html">People who have won</A> |
<A HREF="years.html">Winning entries</A> ]</P></CENTER>
<BR>
<HR>
<H2>The IOCCC FAQ</H2>
<P>
<BLOCKQUOTE><FONT SIZE=+1>Q:</FONT> How many entries do you receive each
year?
<BR><FONT SIZE=+1>A:</FONT> By tradition, we do not say.
<P><FONT SIZE=+1>Q:</FONT> How many judging rounds do you have?
<BR><FONT SIZE=+1>A:</FONT> Are you trying to trick us? We will not say
that either.
<P><FONT SIZE=+1>Q:</FONT> I cannot get entry xyzzy from year 19xx to compile!
<BR><FONT SIZE=+1>A:</FONT> Some winners, particularly winners from long
ago, no longer compile on more modern systems because the C language has
evolved (i.e. the modern C compilers are much more strict in what they
accept as a valid program), or the entry depended on operation system
and library features that where common back then but are different/missing
today.
<BR>E.g. it is highly unlikely that you'll be able to execute <A HREF="years.html#1984/mullender">1984/mullender</A> on a computer you're using to read this FAQ.
<P><FONT SIZE=+1>Q:</FONT> I found a bug in a previous winner, what should
I do?
<BR><FONT SIZE=+1>A:</FONT> We do not ``maintain'' the contest winners.
The code is made available on an ``AS IS'' basis. If you have a FIX for
a entry, we suggest that you try and email it to the authors and to CC:
us using the instructions on the <A HREF="contact.html">contacting the IOCCC
Judges</A> page.
<BR>IF you have a FIX, and IF the author does not object, and IF your fix
looks reasonable, we will add a web link to a copy of your email
for others to see.
<P><FONT SIZE=+1>Q:</FONT> Are there types of entries that are submitted
so frequently that the judges get tired of them?
<BR><FONT SIZE=+1>A:</FONT> Yes, there are types of entries that show up
over and over again.
<BR>The <A HREF="guidelines.html">guidelines</A> say:
<BLOCKQUOTE><I>We tend to dislike programs that:</I>
<LI><I>are similar to previous winners</I></LI>
</BLOCKQUOTE>
We like variety. However too often we see (please look at the winning examples
given to be aware of the level of the competition):
<UL>
<LI>
<FONT SIZE=+1>maze generator</FONT>
<UL>
<LI>
<A HREF="years.html#1985_shapiro">1985/shapiro</A></LI>
<LI>
<A HREF="years.html#1991_buzzard">1991/buzzard</A></LI>
<LI>
<A HREF="years.html#1995_cdua">1995/cdua</A></LI>
<LI>
<A HREF="years.html#1995_dodsond2">1995/dodsond2</A></LI>
<LI>
<A HREF="years.html#1998_bas1">1998/bas1</A></LI>
</UL>
<P><LI>
<FONT SIZE=+1>tic-tac-toe game</FONT>
<UL>
<LI>
<A HREF="years.html#1991_westley">1991/westley</A></LI>
<LI>
<A HREF="years.html#1996_jonth">1996/jonth</A></LI>
<LI>
<A HREF="years.html#2020_carlini">2020/carlini</A></LI>
</UL>
<P><LI>
<FONT SIZE=+1>solitaire/Othello game</FONT>
<UL>
<LI>
<A HREF="years.html#1987_lievaart">1987/lievaart</A></LI>
<LI>
<A HREF="years.html#1994_dodsond1">1994/dodsond1</A></LI>
</UL>
<P><LI>
<FONT SIZE=+1>generating small primes </FONT>(below is the list of all
prime related winners)
<UL>
<LI>
<A HREF="years.html#1985_august">1985/august</A></LI>
<LI>
<A HREF="years.html#1988_applin">1988/applin</A></LI>
<LI>
<A HREF="years.html#1994_weisberg">1994/weisberg</A></LI>
<LI>
<A HREF="years.html#1995_makarios">1995/makarios</A></LI>
<LI>
<A HREF="years.html#1996_dalbec">1996/dalbec</A></LI>
<LI>
<A HREF="years.html#2000_bellard">2000/bellard</A></LI>
</UL>
<B><I>As you can see, just a list of primes (let alone small primes) does
not cut it anymore.</I></B>
<P><LI>
<FONT SIZE=+1>self reproducing program</FONT>
<UL>
<LI>
<A HREF="years.html#1990_scjones">1990/scjones</A></LI>
<LI>
<A HREF="years.html#1994_smr">1994/smr</A> - <I>do not claim your program
is the smallest one without seeing it</I></LI>
<LI>
<A HREF="years.html#2000_dhyang">2000/dhyang</A> - <I>unless you beat this
one, your chances are slim</I></LI>
</UL>
<P><LI>
<FONT SIZE=+1>entries that just print "Hello, world!"</FONT>
<UL>
<LI>
<A HREF="years.html#1984_anonymous">1984/anonymous</A></LI>
<LI>
<A HREF="years.html#1985_applin">1985/applin</A></LI>
<LI>
<A HREF="years.html#1986_applin">1986/applin</A></LI>
<LI>
<A HREF="years.html#1986_holloway">1986/holloway</A></LI>
<LI>
<A HREF="years.html#1989_jar.1">1989/jar.1</A></LI>
<LI>
<A HREF="years.html#1992_lush">1992/lush</A></LI>
<LI>
<A HREF="years.html#2000_tomx">2000/tomx</A></LI>
</UL>
<B><I>It's so 20th century...</I></B>
<P><LI>
<FONT SIZE=+1>entries that use some complex state machine/table to print
something</FONT>
<UL>
<LI>
<A HREF="years.html#1988_isaak">1988/isaak</A></LI>
<LI>
<A HREF="years.html#1988_phillipps">1988/phillipps</A></LI>
</UL>
<B><I>Unbeaten for 12 years and counting...</I></B>
<P><LI>
<FONT SIZE=+1>rot13</FONT></LI>
<UL>
<LI>
<A HREF="years.html#1985_sicherman">1985/sicherman</A></LI>
<LI>
<A HREF="years.html#1989_westley">1989/westley</A></LI>
<LI>
<A HREF="years.html#1990_dg">1990/dg</A></LI>
<LI>
<A HREF="years.html#1991_fine">1991/fine</A></LI>
</UL>
<P><LI>
<FONT SIZE=+1><B>pi</B> or <B>e</B> computation</FONT>
<UL>
<LI>
<A HREF="years.html#1986_august">1986/august</A></LI>
<LI>
<A HREF="years.html#1988_robison">1988/robison</A></LI>
<LI>
<A HREF="years.html#1988_westley">1988/westley</A></LI>
<LI>
<A HREF="years.html#1989_roemer">1989/roemer</A></LI>
</UL>
</UL>
<P>HINT: It is not fatal to send in those types of entries, it is just MUCH
HARDER to win. Such an entry would have to do something really unique and
interesting to even make it into the final judging rounds. Entries that
re-use these 'worn out' themes frequently lose to other entries that do
something different.
<P>HINT: If you really MUST send in an entry based on an 'over-used theme',
be sure that it is obfuscated in several new and novel ways. Be sure to clearly
explain near the beginning of your remarks why you are submitting a entry
based on an 'over-used theme' and why the judges should not simply toss
it out as being boring.
<P><FONT SIZE=+1>Q:</FONT> What should I write in the 'remark' section
of my entry, if anything at all?
<BR><FONT SIZE=+1>A:</FONT> As much or as little as you wish.
<P>What helps:
<UL>
<LI>
explaining what your entry does</LI>
<LI>
how to entice it to do what it is suppoosed to do</LI>
<LI>
what obfuscations are used</LI>
<LI>
what are the limitations of your entry in respect of portability and/or input
data</LI>
<LI>
how it works (if you are really condescending)</LI>
</UL>
<P>What does not help:
<UL>
<LI>
admitting that your entry is not very obfuscated (you see, the contest
is called <B>IOCCC</B>, not <B>INVOCCC</B>); but even if you do not admit it,
not very obfuscated entries have a minuscule chance to win
(although <A HREF="years.html#2000_tomx">2000/tomx</A> is a notable counterexample)</LI>
<LI>
mentioning your name or any identifying information in the remark section
(or in the C code for that matter) - we like to be unbiased during the
judging rounds; we look at the author name only if an entry wins</LI>
<LI>
leaving the remark section empty</LI>
</UL>
<P><FONT SIZE=+1>Q:</FONT> I am confused: what should I put to the 'build'
section?
<BR><FONT SIZE=+1>A:</FONT> The 'build' section must contain UNIX shell-style
commands to compile your C language entry <B>in a file named prog.c</B>
and produce an executable file. More than one command is allowed,
as far as the size rule is followed.
Usually one (or more) of these commands will be an invocation of
a C compiler (use <B>cc</B> or <B>gcc</B>), but there may be exceptions
(or not anymore, see <A HREF="years.html#2000_tomx">2000/tomx</A>).
<BR>If your entry depends on a particular source file name during
compilation or execution, you will have to put a line
<PRE>cp prog.c desired_name.c</PRE> before the compiler invocation line.
<BR>If in doubt, put
<PRE>cc -o prog prog.c</PRE> in the 'build' section.
<P><FONT SIZE=+1>Q:</FONT> What happened to the winners for 1997, 1999
and 2002?
<BR><FONT SIZE=+1>A:</FONT> There are none. There was no IOCCC in those
years.
<P><FONT SIZE=+1>Q:</FONT> Why don't you publish non-winners?
<BR><FONT SIZE=+1>A:</FONT> Because the publication on the IOCCC site <B><I>IS</I></B>
the award! Anyone is free to put their IOCCC hopefuls, lookalikes and/or
non-winners on their web page for everyone to see.
<P><FONT SIZE=+1>Q:</FONT> How much time does it take to judge the contest?
<BR><FONT SIZE=+1>A:</FONT> It takes a fair amount of time to setup, run,
answer email, process (note that we do not contact the author if an entry
does not compile or does not work as advertised, we might attempt to fix
obvious compilation problems or incompatibilities, but no more than that
- so be sure that your entry does work on at least a couple different platforms,
at least one of them being UNIX or POSIX-conforming) entries, review entries,
trim down the set entries to a set of winners, doing the write-up of the
winners, announcing the winners, reviewing final edits of the winning entry
set, posting the winners, being flamed :-), tell folks who send in late
entries to wait until the next contest, etc... It takes a few weekends
and a number nights of study and work ... which is hard given that we are busy
with many other activities as well.
<P><FONT SIZE=+1>Q:</FONT> What platform should I assume for my entry?
<BR><FONT SIZE=+1>A:</FONT> Your entry must compile with GCC and run under
at least one flavor of UNIX (e.g. Linux or Solaris). To improve chances
to win, it should work under both BSD and SysV style UNIX (think <B>stty
cbreak</B>), and should not depend on endianness. If it can compile and
run on Windows and/or Mac (see <A HREF="/years.html#2000_thadgavin">2000/thadgavin</A>),
even better.
<P><FONT SIZE=+1>Q:</FONT> I would like to mirror the IOCCC web site. May
I do so?
<BR><FONT SIZE=+1>A:We are not accepting mirror requests at this time, sorry.
<P><FONT SIZE=+1>Q:</FONT> I want to publish some parts of the IOCCC in
an article, or book, or newsletter, or use then in class/instructional
notes, or quote from the IOCCC. May I do so?
<BR><FONT SIZE=+1>A:</FONT> Please ask the IOCCC judges first. Please send
your request using the instructions on the <A HREF="contact.html">contacting
the IOCCC Judges</A> page.
<P><FONT SIZE=+1>Q:</FONT> What are the grand prize / Best of Show winners?
<BR><FONT SIZE=+1>A:</FONT> In 1984-1987, the grand prize winners are:
<UL>
<LI>
<A HREF="years.html#1984_mullender">1984/mullender</A></LI>
<LI>
<A HREF="years.html#1985_shapiro">1985/shapiro</A></LI>
<LI>
<A HREF="years.html#1986_wall">1986/wall</A></LI>
<LI>
<A HREF="years.html#1987_lievaart">1987/lievaart</A></LI>
</UL>
<BR>Starting from 1988, the entry we liked the most in that year is called
"Best of Show". Here are the "Best of Show" entries:
<UL>
<LI>
<A HREF="years.html#1988_applin">1988/applin</A></LI>
<LI>
<A HREF="years.html#1989_jar.2">1989/jar.2</A></LI>
<LI>
<A HREF="years.html#1990_theorem">1990/theorem</A></LI>
<LI>
<A HREF="years.html#1991_brnstnd">1991/brnstnd</A></LI>
<LI>
<A HREF="years.html#1992_vern">1992/vern</A></LI>
<LI>
<A HREF="years.html#1996_august">1996/august</A></LI>
<LI>
<A HREF="years.html#1998_banks">1998/banks</A></LI>
<LI>
<A HREF="years.html#2000_jarijyrki">2000/jarijyrki</A></LI>
</UL>
<BR>In 1993, 1994 and 1995 the judges were unable to select a clear overall
winner. So to give a nod to the entry that had the highest approval ranking
from the judges, they used the following awards:
<UL>
<LI>
<A HREF="years.html#1993_rince">1993/rince</A> - Most Well Rounded</LI>
<LI>
<A HREF="years.html#1994_shapiro">1994/shapiro</A> - Most Well Rounded</LI>
<LI>
<A HREF="years.html#1995_leo">1995/leo</A> - Best Use of Obfuscation</LI>
</UL>
These could be considered the 'better entry' for those years with 1 or
more other entries that came in close behind.
<P><FONT SIZE=+1>Q:</FONT> I managed to get entry xyzzy from year 19xx to compile; now it fails to run!
<BR><FONT SIZE=+1>A:</FONT> switch(19xx/xyzzy) { <UL>
<LI>case <A HREF="years.html#1984_mullender">1984/mullender</A>: try
<PRE>main(){int i=512;do write(1," :-)\b\b\b\b",9),usleep(i);while(--i);}</PRE>
instead.<BR>Enable reverse wraparound in your xterm window for best results.
<BR>break;
</LI>
<P><LI>case <A HREF="years.html#1991_davidguy">1991/davidguy</A>: disable access
control of your X server (<B>xhost +</B>). If it does not help (or if you
see black screen), restart the X server without access control and with visual
depth of 8 bits or less.
<BR>break;
</LI>
<P><LI>default: Try enabling <TT>-fwritable-strings</TT> for GCC
or its equivalent for other compilers.
</LI></UL>
}
<P><FONT SIZE=+1>Q:</FONT> How
did the IOCCC get started?
<BR><FONT SIZE=+1>A:</FONT>
One day (23 March 1984 to be exact), back Larry Bassel and I (Landon Curt
Noll) were working for National Semiconductor's Genix porting group, we
were both in our offices trying to fix some very broken code.
Larry had
been trying to fix a bug in the classic Bourne shell (C code #defined
to death to sort of look like Algol) and I had been working on the
finger program from early BSD (a bug ridden finger implementation to be
sure).
We happened to both wander (at the same time) out to the hallway
in Building 7C to clear our heads.
<P>
We began to compare notes: ''<I>You won't believe the code I am trying to
fix</I>''.
And: ''<I>Well you cannot imagine the brain damage level of the code
I'm trying to fix''</I>.
As well as: ''<I>It more than bad code, the author really
had to try to make it this bad!</I>''.
<P>
After a few minutes we wandered back into my office where I posted a
<A HREF="http://groups.google.com/groups?q=Obfuscated&hl=en&lr=&ie=UTF-8&as_drrb=b&as_mind=1&as_minm=1&as_miny=1983&as_maxd=18&as_maxm=4&as_maxy=1984&selm=789%40nsc.UUCP&rnum=3&filter=0">flame
to net.lang.c</A>
inviting people to try and out obfuscate the
UN*X source code we had just been working on.
<BLOCKQUOTE>
BTW:
I (Landon Curt Noll)
had to post this
<A HREF="http://groups.google.com/groups?q=Obfuscated&hl=en&lr=&ie=UTF-8&as_drrb=b&as_mind=1&as_minm=1&as_miny=1983&as_maxd=18&as_maxm=4&as_maxy=1984&selm=795%40nsc.UUCP&rnum=10&filter=0">typo
correction</A>.
Thus began the tradition of putting typos in the contest rules and
guidelines ... to make them more obfuscated of course! :-)
<P>
BTW:
This posting was made back in the days when AT&amp;T was the evil giant.
Now, Microsoft makes AT&amp;T look mild and kind in comparison. :-( (IMHO) ).
<P>
BTW:
See the story about the ''
<A
HREF="/1993/cmills/cmills.hint">Bill
Gates</A>'' award. :-)
</BLOCKQUOTE>
<P>
OK, back to the story.
We (Larry and I) received a number of entries by email.
When we began to receive messages from outside of the US, Larry and I
decided to include International in the name.
The
<A HREF="http://groups.google.com/groups?q=Obfuscated&hl=en&lr=&ie=UTF-8&as_drrb=b&as_mind=1&as_minm=1&as_miny=1983&as_maxd=18&as_maxm=4&as_maxy=1984&selm=837%40nsc.UUCP&rnum=2&filter=0">1st IOCCC winners</A>
were posted on 17 April 1984.
<BLOCKQUOTE>
There were 4 winners in 1984:
<OL>
<LI> <A
HREF="http://groups.google.com/groups?q=Obfuscated&hl=en&lr=&ie=UTF-8&as_drrb=b&as_mind=1&as_minm=1&as_miny=1983&as_maxd=18&as_maxm=4&as_maxy=1984&selm=842%40nsc.UUCP&rnum=8&filter=0">&lt;dis&gt;honorable
mention</A>
<LI> <A
HREF="http://groups.google.com/groups?q=Obfuscated&hl=en&lr=&ie=UTF-8&as_drrb=b&as_mind=1&as_minm=1&as_miny=1983&as_maxd=18&as_maxm=4&as_maxy=1984&selm=843%40nsc.UUCP&rnum=7&filter=0">3rd
place</A>
<LI> <A
HREF="http://groups.google.com/groups?q=Obfuscated&hl=en&lr=&ie=UTF-8&as_drrb=b&as_mind=1&as_minm=1&as_miny=1983&as_maxd=18&as_maxm=4&as_maxy=1984&selm=844%40nsc.UUCP&rnum=6&filter=0">2nd
place</A>
<LI> <A
HREF="http://groups.google.com/groups?q=Obfuscated&hl=en&lr=&ie=UTF-8&as_drrb=b&as_mind=1&as_minm=1&as_miny=1983&as_maxd=18&as_maxm=4&as_maxy=1984&selm=845%40nsc.UUCP&rnum=5&filter=0">1st
place</A>
</OL>
BTW:
The &lt;dis&gt;honorable
mention wished to remain anonymous.
While many have asked who it was, we have continued to follow the
author's wish to remain anonymous.
A few years ago, we asked the author if they still wanted to remain anonymous.
They said: ''<I>Yes, I want to keep my anonymity.
But you can tell them that I am a well known for my connection to the
C language"</I>''.
It was not until 2001 that another
<A HREF="/years.html#2001_anonymous">anonymous
entry</A> received an award.
<P>
BTW:
The
<A HREF="/years.html#1984_mullender">1984 winner</A>
remains one of my (Landon Curt Noll) all time favorites.
</BLOCKQUOTE>
The name used in the posting of the
<A HREF="http://groups.google.com/groups?q=Obfuscated&hl=en&lr=&ie=UTF-8&as_drrb=b&as_mind=1&as_minm=1&as_miny=1983&as_maxd=18&as_maxm=4&as_maxy=1984&selm=837%40nsc.UUCP&rnum=2&filter=0">1st
IOCCC winner</A>
posting was <B>I</B>nternational <B>O</B>bfuscated <B>C</B> <B>C</B>ode
<B>C</B>ontest or <B>IOCCC</B> for short.
<P>
The posting said ''<I>1st annual</I>'',
so in 1985 we held the
<A HREF="/years.html#1985">2nd IOCCC contest</A>
and the tradition continues as the longest running contest
on the Internet.
<P>
P.S. Part of the inspiration for making the IOCCC a contest goes to the
<A HREF="http://www.bulwer-lytton.com/">Bulwer-Lytton fiction contest</A>.
<P>
P^2.S. See the
<A HREF="/all/README">overall README</A>
for more details.
</BLOCKQUOTE>
<HR>
<!-- Authored by: <A HREF="http://www.sfik.com">sc</A> -->
<TABLE><TR>
<TD><a rel="license" href="https://creativecommons.org/licenses/by-sa/3.0/"><img alt="Creative Commons License" style="border-width:0" src="/png/by-sa-3.0-88x31.png" /></a></TD>
<TD><P>&copy; Copyright 1984-2020,
<A HREF="/judges.html">Leo Broukhis, Landon Curt Noll</A>
- All rights reserved<BR>
This work is licensed under a <a rel="license" href="https://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>.</P></TD>
<TD>&nbsp;<!--<a href="https://validator.w3.org/check?uri=referer"><img src="https://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01 Transitional" height="31" width="88"></a>--></TD>
</TR></TABLE>
</BODY>
</HTML>