diff --git a/CODE_OF_CONDUCT.html b/CODE_OF_CONDUCT.html index 536d330d5..2cce6fe4d 100644 --- a/CODE_OF_CONDUCT.html +++ b/CODE_OF_CONDUCT.html @@ -118,7 +118,7 @@ - +
All IOCCC content including this file and web page are:
Copyright © 1984-2024 by Landon Curt Noll. Some Rights Reserved.This work is licensed by Landon Curt Noll under:
diff --git a/README.html b/README.html index bb4cc21cc..bcf0765bd 100644 --- a/README.html +++ b/README.html @@ -118,7 +118,7 @@ - +All IOCCC content including this file and web page are:
Copyright © 1984-2024 by Landon Curt Noll. Some Rights Reserved.This work is licensed by Landon Curt Noll under:
diff --git a/archive/historic/index.html b/archive/historic/index.html index 92429c044..f943f6d18 100644 --- a/archive/historic/index.html +++ b/archive/historic/index.html @@ -118,7 +118,7 @@ - +All IOCCC content including this file and web page are:
Copyright © 1984-2024 by Landon Curt Noll. Some Rights Reserved.This work is licensed by Landon Curt Noll under:
diff --git a/bin/README.md b/bin/README.md index a4ac666ad..0bcdb05f8 100644 --- a/bin/README.md +++ b/bin/README.md @@ -469,7 +469,7 @@ make untar_year_tarball ``` -# How IOCCC HTML content is built +#! fourth.
bin/all-years.sh -v 3 bin/untar-year.sh -v 1
We recommend that this tool be invoked via the top level Makefile:
make untar_year_tarball
-The md2html.sh tool is the primary tool that is used to form all IOCCC related HTML pages for the official IOCCC web site.
@@ -347,7 +350,10 @@ used during the topnav HTML phase. For example:-H footer=.
will cause no HTML content to be produced during the footer HTML phase.
The following HTML phase files are used to build HTML content:
-p tool), and the ‘after tool’ (-a tool)
substituted).
See the tool readme2index.sh for an example of how HTML phases are implemented.
-getopt phase processing of the command linegetopt phase processing of the command line
+The command options are evaluated in the following getopt phases:
getopt phase 0In getopt phase 0 we parse command line options and save all arguments for the
@@ -483,7 +492,10 @@ situation will not impact MOST of the HTML content.
You may wonder why we need these files in the first place. You may wonder why we even need the tools in the bin directory when there other solutions available to form web pages.
-Here are some reasons why we are using these files and special tools to create HTML content / IOCCC web pages:
We host official IOCCC web site via GitHub @@ -497,7 +509,10 @@ pages.
We use static web pages, so use of a “back-end database” is not available to the IOCCC.
-The GitHub pages have the distributed server capacity needed to handle the huge download volume or Slashdot effect that happens when a IOCCC entries are published.
@@ -544,7 +559,10 @@ disabled.The IOCCC will NOT MANDATE USE OF JavaScript to view official IOCCC web site.
For this reason, we cannot use JavaScript include HTML content.
-The following IOCCC terms apply to tools, JSON files, and the directory structure of this repo.
authorAn individual who was an author of at least one winning IOCCC entry.
year directory.
+ year directory.
-->
All IOCCC content including this file and web page are:
Copyright © 1984-2024 by Landon Curt Noll. Some Rights Reserved.This work is licensed by Landon Curt Noll under:
diff --git a/bugs.html b/bugs.html index 9c98e17dc..a842ccf31 100644 --- a/bugs.html +++ b/bugs.html @@ -118,7 +118,7 @@ - +Of course if you’re the author you’re welcome to fix your own entry, prefer your own fix or suggest that they’re fixed!
without a newline after the \. This is not a bug.
short[] that can compile in modern systems though it’ll not work.
-There are no known bugs and (Mis)features for entries in 1985.
-This entry is known to segfault after printing its output. It was documented by the judges and shouldn’t be fixed.
-There are no known bugs and (Mis)features for entries in 1987.
-In linux it might happen that despite no error message or message about doing so, the program drops a core file into the directory even though the entry works and does not crash.
-If you want to try and fix this (mis)feature, you are welcome to try.
-There are also other cases where this can happen for instance using unsupported
operators like /. To see what operators are supported check the source code.
That’s about all I can say for how it works as other things have to be done too. Enjoy! :-)
-This is not considered a bug, however.
-. (this and maybe some other things were fixed) and
wanting to accept reading from stdin (this in particular) even with the right
options used, seemingly, it has to write to disk the tarball which seems to
defeat the purpose. This would ideally be fixed.
-The authors provided a list of features in the BUGS section in their remarks.
-theorem_bkp or fibonacci the program
will enter an infinite loop, printing 0 over and over again; another condition
where this occurred was fixed but this one should not be fixed. Thank you.
-This is a feature, not a bug.
-Please don’t try and fix it as it’s not a bug and was actually documented as a possibility. Can you find out how? There’s also a way to make it so that even when you’re cheating it ends up winning! Can you figure that out as well?
-%s specifier it wi
changed either even if it appears to be wrong. Notice too a curious thing: if
you did change it to fprintf, even if you have the right number of args, you’d
have to remove the outer () pair.
-!= 48 is also required.
condition.
The alt version does fix the problem but it is not obfuscated and not like the entry itself. Can you fix the actual entry? You are welcome to try and do so.
-ARG_MAX+1 which should be enou
theoretically) especially since the command expects redirecting a dictionary
file as part of the command line. This also makes it possible for longer strings
to be read (in case the gets(3) was not used in a loop).
-gets(3) was not used in a loop).
then ends. Yusuke Endoh pointed out that if you
click the mouse it takes it back towards the centre.
If you want to try and fix this (mis)feature, you are welcome to try.
-The entry is supposed to show warnings and then print:
Hello World.
Can you help us?
-When your own checkmate is imminent it prints "Har har" but does not exit so
it can ‘rub your nose in defeat’, as the author puts it. You will have to exit
it yourself through ctrl-c or killing it in some other fashion.
In multiple platforms, both macOS and also linux (in particular a RHEL 9.3 system), this entry just shows a blank screen.
Can you fix it? We welcome your help.
-An alternate version that will work for modern systems, however, does exist. See the index.html file for details.
-There is no end of game checking method so you will have to quit the game through ctrl-c or such.
-The unary - is an operator so decimal -46 should be entered as -d46 and
not d-46.
d-46.
before you choose where to shoot.
When you shoot it will move you to that room so if you end up shooting into a pit room you will end up dying even though you didn’t explicitly move there.
- ./schnitzi < schnitzi.c
can be compiled and the output of that new program when fed itself can also be compiled!
-EOF != -1 just as
if it checked for != EOF.
Since it works there is no need to fix this except for a challenge to yourself.
-!= EOF.
fix it without breaking something else?
You are welcome to try and fix it and open a pull request, providing that it doesn’t break something else.
-g - a is 0 then the message is
supposed to be printed again and one is supposed to press a key as at that point
it calls getchar() via the pointer m. So this is a feature not a bug.
-It is not known if this is platform specific but this was observed in macOS and it would be good if it was fixed.
-This program expects a POSITIVE number. If you specify a negative number it will not show any output, stuck in a loop.
-The authors stated that they included a version that allows people with just K&R compilers to use the program but this file is missing. Can you provide it?
We would appreciate anyone who has it or even just knows the name! Thank you.
-The link was http://www.tc3.co.uk/~gandalf/G.HTML but this no longer exists as it was instead requiring a login / password.
Do you have an updated link? We welcome your help!
-But since it does not for the time being it is advisable to just redirect
stderr to /dev/null (2>/dev/null).
As well: the link which was http://www.uio.no/~jonth is no longer valid and there’s no archive on the Internet Wayback Machine. Do you know of a proper URL? We greatly appreciate your help here!
-There was no IOCCC in 1997.
-See above entry 1998/dlowe.
-If you use the generated program and do not give enough numbers in input something funny will happen, very possibly with different results per run. This is in the index.html file as something to try and ponder.
-There was no IOCCC in 1999.
-If DISPLAY is not set the program will very likely crash, do something strange
(or if you’re very unlucky your computer might halt and catch
fire! :-) ).
Note also that if you don’t specify a file or you specify a non-32-bit ELF file this program will very likely crash or do something strange like slaughter the elves of Imladris :-(
-Also the supplementary program, which did not work at all, was fixed (by Cody) and it can be run by itself for fun in modern systems, which was not possible before the fixes there.
-This program deliberately crashes if it loses (which is what it aims to do).
-If you want to try and fix this (mis)feature, you are welcome to try.
-Although it is independent of endianness both systems need the same character set. In other words both have to be ASCII or EBCDIC - not one of each.
-The author stated that there is a cat man page for this program in case one wanted to install it as a tool but this is missing.
-The glob pattern must match the whole string. See the author’s comments for details and a workaround.
There’s also no way to escape meta characters.
-The author referred to a file card.gif but this file is missing. Do you have
it? Please provide it!
There was no IOCCC in 2002.
-There was no IOCCC in 2003.
-See known features in the index.html for things that are not bugs but documented (mis)features.
-The generated code will very likely segfault or do something not intended if not given the right args. See the index.html file for the correct syntax.
-If you specify more than three args the program might also crash or do something
strange. This might also happen if you specify excessively large board
dimensions. Try 100 100 100 for instance and see what happens!
This entry will very likely segfault or do something strange if the source code does not exist.
This entry requires that sed and make are in the path.
Basically, the [LISP][] interpreter is good for some basic math operations, and for running itself.
-stderr to
with at least computer.tofu input file:
12a13
#define gets(c) fgets((c),PI,stdin)&&(((c)[strlen((c))-1]='\0'),c!=NULL)
-The string specified must be <= 42 characters and may only consist of the
characters in the regex a-z_A-Z0-9@.-. Breaking these constraints will end up
with possibly corrupt GIF files.
Incorrect formulas will ungracefully crash the program.
-You must type in caps (except in strings) and this program is indeed case-sensitive.
-There was no IOCCC in 2007.
-There was no IOCCC in 2008.
-There was no IOCCC in 2009.
-There was no IOCCC in 2010.
-Giving any arg to the program is likely to flood your screen.
Rounding errors might cause an omission in the highest bin. There might be empty bins at the edges.
-Will crash and die horribly if it runs out of memory.
If you want to try and fix this (mis)feature, you are welcome to try.
-mprotect() function: #if
unconfirmed and it’s not known when CONFIG_DYNAMIC_CODE_SIGNING would be
defined.
Do you have a fix? We welcome it!
-2011/vik
+##
+
+2011/vik
+
STATUS: INABIAF - please DO NOT fix
Source code: 2011/vik/vik.c
Information: 2011/vik/index.html
The author stated that the program will crash if no argument is passed to the
program though we note that your computer might also halt and catch
fire :-)
-2012
-2012/blakely
+#
+
+2012
+
+##
+
+2012/blakely
+
STATUS: INABIAF - please DO NOT fix
Source code: 2012/blakely/blakely.c
Information: 2012/blakely/index.html
The author stated:
If there is a division by zero, square-root of a negative number, or similar
operation, then the results are undefined.
-2012/deckmyn
+##
+
+2012/deckmyn
+
STATUS: INABIAF - please DO NOT fix
Source code: 2012/deckmyn/deckmyn.c
Information: 2012/deckmyn/index.html
@@ -2103,7 +2400,10 @@ fire :-)
Therefore, when preparing music in a file, care should be taken that the last
musical element of a line is only 2 characters!
The manual referred to is here.
-dead.d and sprites.d).
In addition, there are some limitations (and workarounds) mentioned in Spoiler section.
–
-C2E2.
Can you figure out why?
A workaround is inserting a whitespace: C2 E2.
–
-Invalid input files will very likely crash the program.
-This program will not terminate on its own; you must kill hou (but not Qiming
Hou :-) ) yourself. This should not be fixed.
–
but since it’s documented it’s considered a feature, not a bug to fix.
-This program will very likely crash if no arg is given.
-they will properly get:
IOCCC
-–
-The program doesn’t look at the header of files so if it’s passed something hat is not compressed data it’s likely to crash.
The program depends on little endian systems.
-sizeof(typ) is 1 even for int and so on. On such systems, it will only
use 8 * sizeof(typ) bits per place. It does not work when CHAR_BIT <= 7.
–
-There was no IOCCC in 2016.
-There was no IOCCC in 2017.
-Some JSON files might cause the program to continue to run and seemingly
infinitely increase the size of the output file. This can happen if you try
fixing the syntax error in the generated ioccc.json file.
Cody notes that if you are using the saved mode you must type sync prior to
exiting the program or else the next time you run it the file will not exist (or
in the case of compiled code it won’t be executable).
48 through 57, rather than using isdigit(3). As noted above,
this program has nothing to do with a hand.
-Certain input can crash this program. The file crash.unl is an example file.
-The author pointed out that some implementations of wc(1) show different
values but his implementation matches that of macOS and FreeBSD.
The author does not it uses gets() and one will get warnings but it would be
ideal if this was not the case.
To delete them you can do:
find . -exec file '{}' \;|grep socket|cut -f 1 -d: | xargs rm -f
though one might want to check that the program is not currently running. :-)
-As a backtrace quine this entry is SUPPOSED to segfault so this should not be touched either.
-csh/tcsh shells, you c
the hard limit with limit -h stacksize and set it with
limit stacksize 65532 (replacing 65532 with the actual hard limit).
This program will not validate input so it might fail or get stuck if invoked erroneously.
Also, the maximum file size is 1GB.
-The author also stated that ‘if input contains CR-LF end of line sequences,
those CRs are silently dropped. In fact, most control codes are silently
ignored except line feeds (preserved) and tabs (expanded to 8 spaces).’
It will also show funny output with more than one arg. This should not be fixed either. But can you figure out why this happens?
-If a player tries to play a move they already played they will forfeit their move.
If you have audible bells enabled the program will beep at every turn.
-The author noted that the program only supports WAV files that have exactly 16 bits per sample, but it allows any sample rate and any number of audio channels.
-See also the Program error codes written by the author which lists some other conditions which should be considered features, not bugs.
-There was no IOCCC in 2021.
-There was no IOCCC in 2022.
-There was no IOCCC in 2023.
-We hope to run the IOCCCMOCK this year, 2024, and hopefully the next IOCCC, but for now we wish everyone a happy new year!
All IOCCC content including this file and web page are:
Copyright © 1984-2024 by Landon Curt Noll. Some Rights Reserved.This work is licensed by Landon Curt Noll under:
diff --git a/bugs.md b/bugs.md index 318c76729..253d769b8 100644 --- a/bugs.md +++ b/bugs.md @@ -409,10 +409,10 @@ own fix or suggest that they're fixed! # List of entries by year, sorted in alphabetical order per year -# 1984 +#Those FAQ entries will help guide you on how to make public comments and suggestion in the relevant places.
See the above FAQ entries for more details.
-You may wish to follow us IOCCC on Mastodon as we use that platform to announce things such as the opening of a new IOCCC as well as winning entries of the IOCCC.
@@ -194,6 +197,8 @@ And while using Mastodon is free, the IOCCC judges +All IOCCC content including this file and web page are:
Copyright © 1984-2024 by Landon Curt Noll. Some Rights Reserved.This work is licensed by Landon Curt Noll under:
diff --git a/contact.md b/contact.md index 368d9724f..20f923a98 100644 --- a/contact.md +++ b/contact.md @@ -36,7 +36,7 @@ and suggestion in the relevant places. See the above FAQ entries for more details. -# Try mastodon +#To submit your code to the IOCCC, you MUST follow these steps:
Verify that the IOCCC is open for submissions
@@ -269,7 +277,10 @@ on how upload your entry to the IOCCC submit server. Once with the proper instructions. Watch the IOCCC news for an annoucement of the availability of the IOCCC submit server.There are types of entries that show up over and over again. The IOCCC judges, and we suspect the public that enjoy viewing the results of the IOCCC, like variety.
@@ -360,7 +371,10 @@ 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 ‘overused theme’ and why the judges should not simply toss it out as being boring. -We recommend starting with the sample
Makefile
as found in the mkiocccentry GitHub repo,
@@ -380,7 +394,10 @@ your Makefile should copy prog.c into the desired file
For the make(1) connoisseur: As of 2023, IOCCC judges use GNU
make compatible make(1)
command that is compatible with GNU Make version 3.81.
While your entry’s source filename, as submitted, must be prog.c, your entry’s Makefile
may copy prog.c to a different filename as part of the compiling/building process. For example:
all: desired_name
@@ -401,7 +418,10 @@ For example:
different_name: prog
rm -f $@
cp -f prog $@
-FAQ 0.4: What platform should I assume for my entry?
+###
+
+FAQ 0.4: What platform should I assume for my entry?
+
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 stty cbreak), and should not depend on “Endianness”.
@@ -409,7 +429,12 @@ If it can compile and run on Windows and/or Mac (see
2000/thadgavin for one example, amongst others),
even better. Being able to compile with other compilers like clang is also a
good thing.
-FAQ 0.5: How may I comment or make a suggestion on IOCCC rules, guidelines and tools?
+###
+
+
+FAQ 0.5: How may I comment or make a suggestion on IOCCC rules, guidelines and tools?
+
+
The IOCCC judges to welcome feedback on the IOCCC
rules, IOCCC guidelines
and on the IOCCC mkiocccentry tools.
@@ -429,8 +454,16 @@ discussion.
As a very last resort and/or if you feel the need to engage in a private
discussion with the IOCCC judges, then see
How to contact the IOCCC.
-Section 1: History of the IOCCC
-FAQ 1.0: How did the IOCCC get started?
+##
+
+Section 1: History of the IOCCC
+
+###
+
+
+FAQ 1.0: How did the IOCCC get started?
+
+
One day (1984 March 23 to be exact), 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.
@@ -486,13 +519,19 @@ and the tradition continues as the longest running contest on the Internet.
P.S. Part of the inspiration for making the IOCCC a contest goes to the
Bulwer-Lytton fiction contest.
P^2.S. See the overall README for more details.
-FAQ 1.1: Why are some years missing IOCCC entries?
+###
+
+FAQ 1.1: Why are some years missing IOCCC entries?
+
Some years, such as 1997, 1999, 2002-2003, 2007-2010, 2016-2017, 2021-2023, no IOCCC was held.
While we try to hold the IOCCC every year, sometime the other demands on the IOCCC judges
so not permit us to hold a new IOCCC.
The pause during the 2021-2023 period was due to the IOCCC judges developing tools to
make is much more likely for the IOCCC to be held in a yearly basis later on.
-FAQ 1.2: What is the history of the IOCCC web site?
+###
+
+FAQ 1.2: What is the history of the IOCCC web site?
+
In the beginning of www.ioccc.org
The long history of the official IOCCC web site can be
viewed at the Internet Wayback Machine Wayback Machine.
@@ -645,7 +684,12 @@ of the IOCCC winner repo.
On 202y mm dd, the temporary repo was merged back into the IOCCC winner
repo resulting in many, many substantial improvements
to the official IOCCC web site.
-FAQ 1.3: How has the IOCCC size limit rule changed over the years?
+###
+
+
+FAQ 1.3: How has the IOCCC size limit rule changed over the years?
+
+
The IOCCC size rule has changed over the years.
In later years, Rule 2 was split into two parts. These two parts of Rule 2 are:
@@ -690,10 +734,19 @@ to the official IOCCC web site.
- Rule 2a: 4993
- Rule 2b: 2503
-Section 2: IOCCC Judging process
-FAQ 2.0: How many entries do the judges receive for a given IOCCC?
+##
+
+Section 2: IOCCC Judging process
+
+###
+
+FAQ 2.0: How many entries do the judges receive for a given IOCCC?
+
By tradition, we do not say.
-FAQ 2.1: What should I put in the remarks.md file of my entry?
+###
+
+FAQ 2.1: What should I put in the remarks.md file of my entry?
+
While you may put in as much or as little as you wish into your entry’s
remarks.md file, we do have few important suggestions:
We recommend that you explain how to use your entry. Explain the
@@ -727,11 +780,17 @@ rounds; we look at the author name only if an entry wins. See the guidelines if
this is not clear!
leaving the remark section empty.
-FAQ 2.2: Why don’t you publish entries that do not win?
+###
+
+FAQ 2.2: Why don’t you publish entries that do not win?
+
Because the publication on the IOCCC site IS the award!
Anyone is free to put their IOCCC hopefuls, lookalikes and/or
entries that do not win on their web page for everyone to see.
-FAQ 2.3: How much time does it take to judge the contest?
+###
+
+FAQ 2.3: How much time does it take to judge the contest?
+
It takes a fair amount of time to setup, run, answer email, process entries,
review entries, trim down the set entries to a set of winning entries, doing the
write-up of the entries, announcing the entries, reviewing final edits of the
@@ -744,13 +803,19 @@ 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.
-FAQ 2.4: How many judging rounds do you have?
+###
+
+FAQ 2.4: How many judging rounds do you have?
+
Are you trying to trick us? :-)
By tradition, we do not say how many judging rounds we have in a given IOCCC.
We often report when the IOCCC judges start the 1st round, and
when usually report when the IOCCC judges start near final judging rounds, and
sometimes we also report when we enter what we believe is the final judging round, so you may guess that we have at least 3 rounds. :-) The actual number of rounds is certainly more than 3.
-FAQ 2.5: Why do some IOCCC entries receive the Grand Prize or Best of Show award?
+###
+
+FAQ 2.5: Why do some IOCCC entries receive the Grand Prize or Best of Show award?
+
In some years, the IOCCC judges discover a truly amazing IOCCC entry that
stands out among all of the other IOCCC entries received that year.
For such an IOCCC entry, the IOCCC judges award a “Grand Prize”
@@ -785,7 +850,10 @@ from the judges, they used the following awards:
These could be considered the ‘best entry’ for those years with 1 or
more other entries that came in close behind.
-FAQ 2.6: How are IOCCC entries announced?
+###
+
+FAQ 2.6: How are IOCCC entries announced?
+
Once the IOCCC closes, the judges will:
Select the winning entries announce them on the @IOCCC
@@ -800,8 +868,14 @@ display this year’s winning IOCCC entries at the top of the IOCCC news page.
-Section 3: Compiling and running IOCCC entries
-FAQ 3.0: What Makefile rules are available to build or clean up IOCCC entries?
+##
+
+Section 3: Compiling and running IOCCC entries
+
+###
+
+FAQ 3.0: What Makefile rules are available to build or clean up IOCCC entries?
+
In general the best way to compile everything in an entry directory is to run:
make clobber all
If you wish to compile every entry for every year you should go to the top level
@@ -831,7 +905,10 @@ gcc-based compiler, or a clang-based compiler, or some other compiler. Only by
forcing CC=clang or CC=gcc will one invoke a specific compiler to, say,
enable or disable additional warnings or flags. Even so different versions or
compilers might do different things, have different defects or other issues.
-FAQ 3.1: Why doesn’t this IOCCC entry compile?
+###
+
+FAQ 3.1: Why doesn’t this IOCCC entry compile?
+
Some entries that won the IOCCC, particularly entries 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
@@ -850,7 +927,10 @@ request for more information about pull requests.
that works for modern systems but one can view the original code in the
.orig.c files (sometimes the original code is also in the directory as a
dirname.alt.c or prog.alt.c).
-FAQ 3.2: Why does a IOCCC entry fail on my 64-bit system?
+###
+
+FAQ 3.2: Why does a IOCCC entry fail on my 64-bit system?
+
Unfortunately some older entries are non-portable and require 32-bit support or
32-bit binaries. A problem system here is macOS Catalina (10.15) as as of that
version macOS no longer supports 32-bit binaries. If the entry acts on a certain
@@ -876,7 +956,10 @@ the spirit of the original code are very welcome! Please see FAQ 6.10 How does someone make a change to
a file and submit that change as a GitHub pull request
for more information about pull requests.
-FAQ 3.3: Why do some IOCCC entries fail to compile under macOS?
+###
+
+FAQ 3.3: Why do some IOCCC entries fail to compile under macOS?
+
If the entry requires gcc and you did not explicitly install gcc in macOS you
will not be able to run or use these entries. This is because macOS gcc is
actually clang, even /usr/bin/gcc.
@@ -886,9 +969,12 @@ others will be looked at, when found.
with an entry. Should you manage to port the entry, and assuming your changes
also attempt to preserve the original intent of the IOCCC entry, we would
encourage you to submit a pull request with your ported code.
-Please see FAQ 5.2 “How may I submit a fix to an IOCCC
-entry” for details.
-FAQ 3.4: Why does clang or gcc fail to compile an IOCCC entry?
+Please see FAQ 5.2 How may I submit a fix to an IOCCC entry
+for details.
+###
+
+FAQ 3.4: Why does clang or gcc fail to compile an IOCCC entry?
+
Although we have fixed numerous entries to work with clang (sometimes in an alt
version but usually in the program itself) there are some that simply cannot be
fixed or if they are fixable they have not yet been fixed (we are working on
@@ -907,18 +993,34 @@ form of a pull request. Please see FAQ 5.2 How may I sub
entry. See also the FAQ 6.10 How does someone
make a change to a file and submit that change as a GitHub pull
request for more information about pull requests.
-FAQ 3.5: What is this cb tool that is mentioned in the IOCCC?
+###
+
+FAQ 3.5: What is this cb tool that is mentioned in the IOCCC?
+
This was a C beautifier for Unix, both AT&T and Berkeley, but it seems to no
longer be available, code wise, except for Plan 9, but Plan 9 was never used for
judging the IOCCC. A Unix man page for cb
still exists.
-FAQ 3.6: An IOCCC entry messed up my terminal application, how do I fix this?
+###
+
+FAQ 3.6: An IOCCC entry messed up my terminal application, how do I fix this?
+
The simplest way to do this is to type reset. If echo was disabled you can get
usually away with stty echo. Sometimes you can also get away with stty sane.
reset does the most but note that it will clear the screen (obviously clear
will too but it won’t reset the terminal).
-FAQ 3.7: How do I run an IOCCC entry that requires X11?
-Generally, to compile and run an IOCCC entry that requires X11:
+###
+
+
+
+FAQ 3.7: How do I run an IOCCC entry that requires X11?
+
+
+
+####
+
+Generally, to compile and run an IOCCC entry that requires X11:
+
You must have the X11 related include files and X11 libraries in order to
compile the IOCCC entry. In order to do this you will need to install Xorg and
related packages including development related packages. If you have macOS see
@@ -938,7 +1040,10 @@ further down for different instructions. Otherwise: in particular you must:
xterm() terminal application
See below for various system related hints that may be of help.
-X.org server has been deprecated
+####
+
+X.org server has been deprecated
+
The Red Hat RHEL9.0 release notes state that X.org Server is now
deprecated.
According to this Linux for Devices tutorial on
@@ -1039,7 +1144,12 @@ See the above note for details.
See the X.org foundation web site.
IMPORTANT NOTE: The X.org server has been deprecated.
See the above note for details.
-FAQ 3.8: How do I compile an IOCCC entry that requires SDL1 or SDL2?
+###
+
+
+FAQ 3.8: How do I compile an IOCCC entry that requires SDL1 or SDL2?
+
+
This depends on your operating system but below are instructions for Linux and
macOS with alternative methods for macOS and different package managers with Linux.
Red Hat based Linux
@@ -1094,7 +1204,12 @@ details. If something is not noted you’re welcome to report it as an issue or
fix it and make a new pull request.
See the FAQ 6.10 How does someone make a change to a file and submit that change
as a GitHub pull request for more information about pull requests.
-FAQ 3.9: How do I compile an IOCCC entry that requires (n)curses?
+###
+
+
+FAQ 3.9: How do I compile an IOCCC entry that requires (n)curses?
+
+
This depends on your operating system but below are instructions for Linux and
macOS with alternative methods for macOS and different package managers with Linux.
Red Hat based Linux
@@ -1121,7 +1236,12 @@ packages: one for compiling and one for linking / running.
Go to the ncurses website and follow their instructions
for downloading, installing and using ncurses.
We recommend trying a method suitable for your environment first, if possible.
-FAQ 3.10: How do I compile and use an IOCCC entry that requires sound?
+###
+
+
+FAQ 3.10: How do I compile and use an IOCCC entry that requires sound?
+
+
This might depend on the entry but most likely the Swiss Army Knife of sound
processing programs, SoX, will work. How to
install depends on your OS.
@@ -1147,7 +1267,10 @@ include this here, at least for now.
Other Linux distributions
Usually the index.html file will explain how to use it under Linux so we do not
include this here, at least for now.
-FAQ 3.11: Why do Makefiles use -Weverything with clang?
+###
+
+FAQ 3.11: Why do Makefiles use -Weverything with clang?
+
While we know that use of -Weverything is generally not recommended
by clang C compiler developers, we do use the -Weverything
option in a certain case in IOCCC entry Makefiles.
@@ -1216,7 +1339,10 @@ differences, try from 1989/westley:
As you can see, using clang has some additional problems to work out but if
you can get your entry to work well in clang it might very well be considered
better than other entries.
-FAQ 3.12: How do I find out how to send interrupt/EOF etc. for entries that require it?
+###
+
+FAQ 3.12: How do I find out how to send interrupt/EOF etc. for entries that require it?
+
For some entries one needs to send interrupt or EOF or some other signal/other
special characters. There are typical defaults like (where ^ = ctrl):
@@ -1237,7 +1363,12 @@ to find what the intr is set to:
… assuming of course that it’s a ctrl combination :-) If for some strange
reason it’s not you might have to do something else including just piping it to
just grep intr or whatever.
-FAQ 3.13: Why does an IOCCC entry fail to compile or or fail run?
+###
+
+
+FAQ 3.13: Why does an IOCCC entry fail to compile or or fail run?
+
+
What may have worked years ago may not work well or work at all today.
Please note that the IOCCC judges do NOT support IOCCC entries.
Nevertheless, there may be a number of reasons why an IOCCC entry
@@ -1266,7 +1397,12 @@ entry. If so, you are invited to try an fix the IOCCC entry and
submit that fix by way of a GitHub pull
request.
Please see FAQ 5.2 for how to submit a fix to an IOCCC entry.
-FAQ 3.14 - How do I compile and install tcpserver for entries that require it?
+###
+
+
+FAQ 3.14 - How do I compile and install tcpserver for entries that require it?
+
+
If your OS package manager does not have the package tcpserver you can
download, making sure you’re in a temporary directory, and compile the source
like:
@@ -1278,7 +1414,12 @@ like:
make setup check
That will install it to /usr/local/bin. Now you should be able to use the
entry in question.
-3.15 - How do I compile and install netpbm for entries that require it?
+###
+
+
+3.15 - How do I compile and install netpbm for entries that require it?
+
+
This depends on your operating system for which we describe a couple below.
Red Hat based Linux
Execute the following as root or via sudo:
@@ -1312,7 +1453,12 @@ packages: one for compiling and one for linking / running.
Go to the netpbm website and follow their instructions
for downloading, installing and using netpbm.
We recommend trying a method suitable for your environment first, if possible.
-3.16 - How do I compile and install libjpeg-turbo for entries that require it?
+###
+
+
+3.16 - How do I compile and install libjpeg-turbo for entries that require it?
+
+
This depends on your operating system for which we describe a couple below.
Red Hat based Linux
Execute the following as root or via sudo:
@@ -1346,7 +1492,12 @@ packages: one for compiling and one for linking / running.
Go to the libjpeg-turbo website and follow their instructions
for downloading, installing and using libjpeg-turbo.
We recommend trying a method suitable for your environment first, if possible.
-3.17 - How do I compile and install ImageMagick for entries that require it?
+###
+
+
+3.17 - How do I compile and install ImageMagick for entries that require it?
+
+
This depends on your operating system for which we describe a couple below.
Red Hat based Linux
Execute the following as root or via sudo:
@@ -1380,7 +1531,12 @@ packages: one for compiling and one for linking / running.
Go to the ImageMagick website and follow their instructions
for downloading, installing and using ImageMagick.
We recommend trying a method suitable for your environment first, if possible.
-3.18 - How do I compile and install OpenGL for entries that require it?
+###
+
+
+3.18 - How do I compile and install OpenGL for entries that require it?
+
+
This depends on your operating system for which we describe a couple below.
In general OpenGL needs X11 to be installed and the X Window Server to be running.
See FAQ 3.7: How do I run an IOCCC entry that requires X11? for
@@ -1416,7 +1572,12 @@ packages: one for compiling and one for linking / running.
Go to the Vulkan website and follow their instructions
for downloading, installing and using OpenGL.
We recommend trying a method suitable for your environment first, if possible.
-3.19 - What kind of make(1) compatibility does the IOCCC support and will it support other kinds?
+###
+
+
+3.19 - What kind of make(1) compatibility does the IOCCC support and will it support other kinds?
+
+
For the IOCCC mkiocccentry submission
toolkit and the winning IOCCC
entries we support ONLY GNU Makefile syntax. This means that if
@@ -1434,8 +1595,14 @@ to the top level directory of the winner repo you can do:
it like:
gmake MAKE=gmake
though of course for both you may specify a rule or rules to run.
-Section 4: Changes made to IOCCC entries
-FAQ 4.0: Why are some winning entry remarks incongruent with the winning IOCCC code?
+##
+
+Section 4: Changes made to IOCCC entries
+
+###
+
+FAQ 4.0: Why are some winning entry remarks incongruent with the winning IOCCC code?
+
It is very likely in this case that the code was fixed to work for modern
systems as part of the reworking of the website. If you have this problem in
some entries you should look at the original code as in dirname.orig.c or
@@ -1444,7 +1611,12 @@ favourite entries of all time is 1984/mullen
the entry’s dirname there would be mullender. Sometimes the original is in an alt
version like dirname.alt.c or prog.alt.c. In fact it is advisable to look at
the original code when reading the author’s (and sometimes authors’) remarks.
-FAQ 4.1: Why were some calls to the libc function gets(3) changed to use fgets(3)?
+###
+
+
+FAQ 4.1: Why were some calls to the libc function gets(3) changed to use fgets(3)?
+
+
Some may wonder: “Doesn’t this tamper with the entry too much?”
A fine line indeed has to be drawn here but it was decided that it is worth it
because of alarming warnings that can be displayed, in some systems at runtime
@@ -1476,7 +1648,12 @@ newline and gets() does not. As the Unix version 7 man page used to
We’re not sure how this is compatibility but either way it can cause a
problem and it is this that has complicated most of the fixes though again some
can look almost identical.
-FAQ 4.2: What was changed in an IOCCC entry source code?
+###
+
+
+FAQ 4.2: What was changed in an IOCCC entry source code?
+
+
We have set up make rules to easily do see what was changed in the winning IOCCC
entry source. Using the Makefile in the entry directory, use
one of the following make(1) rules:
@@ -1554,7 +1731,10 @@ just do:
make DIFF=colordiff diff_alt_prog # for alt to prog diff
Obviously if you want to view the alt code or the orig code you can just open the files as described above.
-If the entry has been fixed for modern systems and this fix required
modification to the code then invariably there will be entries where the remarks
of the author or authors are inconsistent with the original code, the size of
@@ -1570,12 +1750,23 @@ some cases, such as 1984/mullender, the original code is the same a
as no changes were made (there is an alt version for systems that are not
VAX-11/PDP-11, however).
See also FAQ 4.2: What was changed in an IOCCC entry source code?
-Due to the fact that the original code has sometimes had to change these files are the original winning entry or as close to as possible to the original that we can find.
-The known bugs file, order by IOCCC years, contains a list of known bugs & (mis)features. If you are looking for an IOCCC entry @@ -1588,7 +1779,12 @@ while a (mis)feature is not considered a bug and should not be fixedknown bugs file section may offer you important fixing clues.
We do not ‘maintain’ the contest entries as such. The code is made available on an ‘AS IS’ basis. If you have a FIX for an entry, we suggest that you submit your fixes in a GitHub pull request as we welcome pull requests that have a @@ -1605,7 +1801,12 @@ entry for information on how to submit a fix to an IOCCC entry. See also the FAQ 6.10 How does someone make a change to a file and submit that change as a GitHub pull request for more information about pull requests.
-If you see a problem with an IOCCC entry, first check the known bugs file. In some cases what you might think of as a bug is instead a known feature. In some cases the bug is known, but no fix has ever been submitted. @@ -1638,7 +1839,12 @@ make a change to a file and submit that change as a GitHub pull request for more information about pull requests.
Note that we’re much more inclined to accept an author’s fixes but the judges have the final say in the matter.
-If you discover a problem with the IOCCC web site that is related to a particular IOCCC entry, please see FAQ 5.1 for information about reporting a bug in an IOCCC entry, and see FAQ @@ -1655,7 +1861,12 @@ if the problem has already been reported. If it has been reported, feel free to add a comment to the issue. If you do not find an it has been reported, then fee free to open a new IOCCC issue.
-For IOCCC web site problems that relate to a particular IOCCC entry, please see FAQ 5.2 for information on how submit a fix to an IOCCC entry.
You may open a GitHub pull request @@ -1704,7 +1915,12 @@ markdown file, you will read:
modify JSON files and/or change a bin directory tool.If this happens, consider opening up an IOCCC issue and ask for help. See FAQ 5.3 for information on opening up an IOCCC issue.
-Authors of IOCCC winning entries are kept in JSON files of the form:
author/author_handle.json
where author_handle is an author handle. See FAQ 6.5 for more @@ -1720,7 +1936,12 @@ of the ioccc-src/winner repo.< entry. See also the FAQ 6.10 How does someone make a change to a file and submit that change as a GitHub pull request for more information about pull requests.
-We would appreciate if you try to fix the broken (the link goes nowhere) or wrong
(the link goes to something that clearly is not the original intent) web link.
If wish to fix such links, you may open a GitHub pull request as described in
@@ -1754,8 +1975,14 @@ if the text in some index.html file was:
See the **author's description of the program** (sorry the content is no longer available) for more information.
If you just wish to report the bad link issue, see FAQ 5.3.
-As entries have been fixed it is entirely possible that some of the entries no longer fit within the year’s size restrictions. Invariably the length of columns and/or number of rows have also changed.
@@ -1766,15 +1993,24 @@ original winning entries as compressed tar files for a given year.In some cases the entry may have abused rule 2 and declared an “abuse of the rules” (although now blatant abuse of the rules to get around rule 2 size limits is discouraged).
-Yes! Please see bugs.html for a list of known bugs and/or issues of a variety of kinds.
Note that just because an entry is not in the bugs file does not mean there is not an issue and note that some issues are simply missing files, dead URL(s) or something like that.
-We are not accepting mirror requests at this time, sorry. However you are free to fork the IOCCC winner repo. We do ask that your fork keep up to date with the latest changes when possible.
-While IOCCC judges look favorably on most requests to use IOCCC material, we request that you ask the IOCCC judges first.
Please send your request using the instructions on the contacting @@ -1783,7 +2019,10 @@ the IOCCC Judges page.
the CC BY-SA 4.0 License.See FAQ 6.11 for additional information on the Copyright and CC BY-SA 4.0 License.
-As a precedent for first person plural, we may sight Two-, Three-, and Four-Atom Exchange Effects in bcc in @@ -1813,7 +2052,12 @@ may still be in effect and the 1982 F D C Willard
-An author_handle is string that refers to a given author and is unique to the
IOCCC. Each author has exactly one author_handle.
For each author_handle, there will be a JSON file of the form:
Anonymous_[0-9][0-9][0-9][0-9][.0-9]*$
See FAQ 5.5 for information about how to update and/or correct IOCCC author information.
-TL:DR: The contents of these JSON files contain the best known information about authors of IOCCC entries and is used to help form HTML files as well to contact an author.
@@ -2120,7 +2369,12 @@ is a valid entry ID.See FAQ 6.7 for information about entry ids.
See FAQ 5.5 for information about how to update and/or correct IOCCC author information.
-A entry_id is a string that identifies a winning entry of the IOCCC.
A entry_id is a 4-digit year, followed by an underscore, followed by a directory name.
For example, the entry_id associated with Cody Boone Ferguson’s 2nd winning IOCCC entry
@@ -2128,7 +2382,10 @@ of 2020 is found under the following directory:
2020/ferguson2
The entry_id for that winning entry is:
2020_ferguson2
-The .top file resides at the top directory. This file contains the complete list of IOCCC years.
Under each IOCCC year. one will find a .year file. These files contain directory paths from the top directory,
@@ -2138,7 +2395,12 @@ These files contain the directory path from the top directory.
For example see 1984/anonymous/.path.
The .top, .year and .path files are generated from the top level Makefile, by:
make genpath
-The IOCCC is now attempting to use the following terms:
First, if you do not already have a GitHub account or you have not installed an ssh key to your account you must do so. For this we will assume you do not have a GitHub account. For the steps following creating a GitHub account you will @@ -2344,7 +2611,12 @@ has the merge. To do this from the command line, assuming the fork in the above example, you would type:
git checkout master && git pull https://github.com/ioccc-src/temp-test-ioccc.git master && git push origin master
This will merge your pull request to your fork.
-Disclaimer: This FAQ is not a license, has no legal value, and only highlights some of the key features and terms of the actual CC BY-SA 4.0 @@ -2384,6 +2656,8 @@ to help ensure that everyone may enjoy the IOCCC.
+All IOCCC content including this file and web page are:
Copyright © 1984-2024 by Landon Curt Noll. Some Rights Reserved.This work is licensed by Landon Curt Noll under:
diff --git a/faq.md b/faq.md index 50e1f1b1f..175912cca 100644 --- a/faq.md +++ b/faq.md @@ -87,10 +87,10 @@ other inconsistencies with the original entry?](#faq4_3) # The IOCCC FAQ -## Section 0: Submitting entries to a new IOCCC +##All IOCCC content including this file and web page are:
Copyright © 1984-2024 by Landon Curt Noll. Some Rights Reserved.This work is licensed by Landon Curt Noll under:
diff --git a/inc/index.html b/inc/index.html index 6b2bc94e0..4aa968ba1 100644 --- a/inc/index.html +++ b/inc/index.html @@ -118,7 +118,7 @@ - +All IOCCC content including this file and web page are:
Copyright © 1984-2024 by Landon Curt Noll. Some Rights Reserved.This work is licensed by Landon Curt Noll under:
diff --git a/index.html b/index.html index 1cfc6f921..7cf0c1875 100644 --- a/index.html +++ b/index.html @@ -117,7 +117,7 @@ - +All IOCCC content including this file and web page are:
Copyright © 1984-2024 by Landon Curt Noll. Some Rights Reserved.This work is licensed by Landon Curt Noll under:
diff --git a/judges.html b/judges.html index 95f026a9a..06dc28f32 100644 --- a/judges.html +++ b/judges.html @@ -118,7 +118,7 @@ - +All IOCCC content including this file and web page are:
Copyright © 1984-2024 by Landon Curt Noll. Some Rights Reserved.This work is licensed by Landon Curt Noll under:
diff --git a/license.html b/license.html index c1d4d088e..a6954a4d5 100644 --- a/license.html +++ b/license.html @@ -118,7 +118,7 @@ - +All IOCCC content including this file and web page are:
Copyright © 1984-2024 by Landon Curt Noll. Some Rights Reserved.This work is licensed by Landon Curt Noll under:
diff --git a/news.html b/news.html index a7d96b4d2..e0f9e3e02 100644 --- a/news.html +++ b/news.html @@ -118,7 +118,7 @@ - +All IOCCC content including this file and web page are:
Copyright © 1984-2024 by Landon Curt Noll. Some Rights Reserved.This work is licensed by Landon Curt Noll under:
diff --git a/next/guidelines.html b/next/guidelines.html index 7d5745927..4d69c840d 100644 --- a/next/guidelines.html +++ b/next/guidelines.html @@ -118,7 +118,7 @@ - +All IOCCC content including this file and web page are:
Copyright © 1984-2024 by Landon Curt Noll. Some Rights Reserved.This work is licensed by Landon Curt Noll under:
diff --git a/next/index.html b/next/index.html index 94730f2ca..5ebbd8d33 100644 --- a/next/index.html +++ b/next/index.html @@ -118,7 +118,7 @@ - +All IOCCC content including this file and web page are:
Copyright © 1984-2024 by Landon Curt Noll. Some Rights Reserved.This work is licensed by Landon Curt Noll under:
diff --git a/next/rules.html b/next/rules.html index c57932b24..337930066 100644 --- a/next/rules.html +++ b/next/rules.html @@ -118,7 +118,7 @@ - +/\cc/\
+ /\cc/\
-->
All IOCCC content including this file and web page are:
Copyright © 1984-2024 by Landon Curt Noll. Some Rights Reserved.This work is licensed by Landon Curt Noll under:
diff --git a/thanks-for-help.html b/thanks-for-help.html index 466124977..09d4ad4e4 100644 --- a/thanks-for-help.html +++ b/thanks-for-help.html @@ -118,7 +118,7 @@ - +Cody fixed this to work for macOS.
The problem was to do with the way that the read(2) function was redefined.
With macOS the second arg needs to be a void * and this also necessitated some
@@ -165,7 +171,10 @@ the famous tattoo which we also include here:
…which was done in 2005 by Thomas Scovell.
-Cody fixed this to not require -traditional-cpp which some compilers like
clang do not support. Fixing -traditional-cpp is, as noted later on, very
complicated, but we encourage you to look at the alternate code (which is the
@@ -212,13 +221,19 @@ seem possible) it is easy to fix but it is hoped that this won’t happen.
To see the difference from start to fixed:
cd 1984/decot ; make diff_orig_prog
-Cody also fixed this to not crash when no arg is specified. Note that if the arg is not a positive number it will not do anything useful or anything at all. This was fixed on 30 October 2023 after the bug status was changed from INABIAF (it’s not a bug it’s a feature) to bug.
-Cody provided an alternate version,
an improved version of the judges, so that everyone can enjoy it with systems
that are not VAX/PDP. It moves at approximately the same speed as the original
@@ -236,8 +251,14 @@ header file a.out.h that is not available in all modern systems, Co
copy of it as to what it should have been at the time, in the fabulous Unix
History
Repo.
Both Cody and Yusuke fixed this; Yusuke got this to not crash and Cody fixed it to work with macOS.
The crash was because it destructively rewrites string literals. However with @@ -254,7 +275,10 @@ Ironically this fix was discovered through Linux!
shell, after the output (despite having\n in the string - can you figure out
why?) but to make it more friendly to users Cody made it print a \n prior to
returning to the shell. The original code does not have this change.
-Cody, out of abundance of caution, added a second arg to main() because some
versions of clang object to the number of args of main(), saying that it must
be 0, 2 or 3. The version this has been observed in does not actually object to
@@ -268,7 +292,10 @@ way.
Cody also added the try.sh script (which calls primes.sh
whether primes(6) is installed or not, but it only does it once with the
default value).
Cody fixed this to compile with modern compilers. In the past one could get away
with defining some macro to Yusuke provided some useful information that amounts to an alternate version
that Cody added. See the index.html for details. Cody also provided the try.alt.sh script. Cody added the alt code which allows one to resize the maze and he also added
the try.alt.sh script that randomly selects sizes
(five times) and compiles and runs it. After the five runs it prompts you to
enter a number, in an infinite loop, exiting if any non-digits are in input
(this includes negative numbers which in the code actually sets it back to 39,
the default). Cody fixed this very twisted entry to not require Cody also added the try.sh and
try.alt.sh scripts. Cody made the C file executable so one does not have to do Cody made this use Cody also added the try.sh script which also feeds to the
program the added Cody fixed this to compile and work with clang (it already worked with gcc).
The problem was that clang is more strict about the type of second arg to
Cody got this to compile and work with clang and gcc. He noted that he tried to
keep the ASCII art as close to the original as possible. The line lengths are
the same but some spaces had to be changed to non-spaces.#define and then use #foo to have the same
effect as using #define but this does not work in modern systems so Cody
@@ -276,14 +303,20 @@ changed the #o lines to #define. Also unistd.h
1985/shapiro (index.html)
+##
+1985/sicherman (index.html)
+##
+-traditional-cpp. Fixing
-traditional-cpp is, as noted later on, very complicated, but Cody would like
to refer you to the original file
@@ -369,23 +402,41 @@ fails to compile it will be built as sicherman as part of the
1986
-1986/applin (index.html)
+#
+sh ./applin.c or ./applin; they can do either ./applin.c or ./applin.1986/bright (index.html)
+##
+1986/hague (index.html)
+##
+fgets().input.txt file.1986/holloway (index.html)
+##
+main(). However simply changing it to a char ** and updating the*sto **s
caused a segfault. By adding a new variable, char *t, initialising it to s
and then using t instead of s it compiles and runs successfully under clang
and gcc.1986/marshall (index.html)
+##
+
which can be disabled. It results in the same behaviour but this way no warnings are produced.
-Cody noticed and fixed a funny mistake in the Makefile where a
-Wno-strict-prototypes was in the wrong location, suggesting that there is a
-D needed to compile the entry.
Cody restored the original entry which was a single line. The code being longer (in 1986 a one liner could be longer) was split to three lines to avoid problems with news and mail but as it was the ‘Best one liner’ it is now one line.
Cody also added the stein.sh script which runs the two commands that we suggest in order to get it to show clean output.
-Cody fixed this so that it does not require -traditional-cpp. This took a fair
bit of tinkering as this entry very twisted; fixing -traditional-cpp is, as
noted earlier, very complicated, but we encourage you to look at original
@@ -495,10 +555,19 @@ work with gcc but it still required -traditional-cpp.
strdup()d.There might have been other changes as well.
-Cody made this look more like the original entry by restoring the #define of
define. It’s not used but it now looks closer to the original.
Cody also added the try.sh script which shows how the @@ -507,12 +576,18 @@ program works but also how the folded code can recreate the original.
ofstrings.h and because it’s identical in use to strchr(3) (and we noted
that for System V we had to do this) Cody added to the Makefile
-Dindex=strchr.
-Cody added the try.sh script and the C file goto.c and the text file goto.txt for demonstration purposes. Notice that the program is case sensitive which running the program on the text file demonstrates.
-Cody added back the documented checks for invalid input which no longer worked and instead resulted in either accepting the level, whether or not it was a number or out of range (see below on range). For the move it entered an infinite @@ -547,10 +622,16 @@ immediately goes back to the prompting of the level.
#define D define even though it’s unused. This was done for both versions as
well (the one with the board and the one without, the entry itself with the
size constraints of the contest).
-Cody made this use fgets(3).
Cody also added the try.sh script.
-Cody fixed this for modern systems. The problem was 'assignment to cast is illegal, lvalue casts are not supported'. For the original file see the
index.html file. Unfortunately this ruins some symmetry. To try and resolve this
as much as possible at first code was commented out but later on the commented
@@ -560,8 +641,14 @@ commented out it’s probably not a big deal to have it removed instead as it do
look more symmetrical now.
Cody also added to the Makefile -include stdio.h in the nowadays very
unlikely(?) but nevertheless suggested case that putchar() is not available.
Cody fixed this twisted entry (as we called it :-) ) for modern compilers,
including making it no longer require -traditional-cpp. Fixing
-traditional-cpp is, as noted later on, very complicated, but we encourage you
@@ -614,15 +701,24 @@ macro in place it’s just no longer used.
See the index.html file for details on the original code, provided as an alt
version in case you have an older compiler or wish to try -traditional-cpp.
Cody also provided the try.sh script.
-Cody fixed this to work for modern systems. The problem was that the important
function, a redefinition of exit(), was not being called in main(). The
original version is in 1988/isaak/isaak.alt.c. See the
index.html file for more details.
Cody added the alt code which is code that we suggested at the time of publication, in the remarks, to help understand the entry, and for fun.
-Cody fixed this for modern systems. It did not compile with clang because it
requires the second and third args of main() to be `char ** but even before
that with gcc it printed garbage and then crashed.
pain() is exactly like how main() was as it’s the
same code. Additionally, main() returns !pain(...) like main() used to do
to itself and pain() does now.
-Cody made this use fgets(3).
Cody provided an alternate version so that this will work with compilers like clang. An alternate version had to be provided because not doing so would be tampering with the entry too much. It @@ -649,7 +751,10 @@ original. See the index.html file for details on the alternate code.
Meanwhile Cody was twisted enough to point out (though to be fair he felt sick doing this) that with a slight modification this entry can be C++ instead. We don’t thank him for this ghastly point! :-)
-The original version, provided as alternate code, was fixed by Misha Dynin, based on the judges’ remarks, so that this would work with modern C compilers. We encourage you to try the alternate version to see @@ -658,8 +763,14 @@ what happens with current compilers! See the index.html files for details.
entry as seeing the code with the result at once is far more beautiful.Cody also changed the ints to be float as that’s what they are printed as:
not strictly necessary but nonetheless more correct, even if not warned against.
Cody got this to work with modern systems. The main issues were that an
#include had to be added along with fixing the path (due to . not being in
$PATH) to files referred to in the code. The path problem was also fixed in
@@ -684,7 +795,10 @@ might end up failing to work even after changing it back. This was resolved by:<
Cody also ‘modernised’ the script to use bash and fixed for ShellCheck. The
if [ .. ] was changed in the C code as well as the script.
Cody also added the try.sh script.
-To prevent annoying output to /dev/tty we changed the code to simulate the
output via strings(1) but Cody removed the ill-famed useless use of cat to
shut ShellCheck up.
@@ -697,7 +811,10 @@ most certainly do have a personality and they can be very sociable.
Cody fixed this to work with modern compilers. Modern compilers do not allow code like:
#define D define
@@ -722,7 +839,10 @@ result in:
shell returned 2
because the alt rule had what normally is in the ${PROG}.alt rule.
Cody fixed an infinite loop where the program would print the same thing over
and over again, flooding the screen. The problem is that there was a for loop
that by necessity had to not have an increment stage but the pointer only got
@@ -737,20 +857,29 @@ the author’s remarks and the try.alt.sh
uses the alt code, allowing one to configure the alt build. See the index.html
for details. The fix described above was fixed in this version too, after it was
discovered and fixed.
Cody fixed a segfault under macOS that prevented it from working. The problem
was that the int (from #define f) should be a long. This became apparent when
he was using lldb and saw that the type of a pointer was too long :-)
Cody also provided the alternate version which has the trace function that the author included but commented out. See the index.html for details.
-Yusuke Endoh fixed this to compile under modern systems. To see the changes made, try:
cd 1989/robison ; make diff_orig_prog
(It adds the C token pasting operator ## instead of /**/.)
Cody also added the try.sh script.
-Cody and Yusuke fixed this entry: Yusuke fixed this to compile with gcc and Cody fixed it for clang and made some other fixes as well.
To get it to work with clang the variable a had to not be the third argument
@@ -771,9 +900,15 @@ various other things, so that now the alt version, which is better, can be used.
Although we appreciate the help here, he cynically noted that he had to have an IOCCC Tetris working (this of course was not his only reason :-) )
-Cody fixed this for clang, except that two versions generated by the program cannot be compiled by clang due to inherent defects in the compiler and how the entry works. This is an incredibly hard one to fix for clang whilst still @@ -824,8 +959,14 @@ will work for compilers like gcc and one can then use the try.sh script to see example input and output.
The compile.sh script allows one to specify the compiler with the CC
environmental variable; see the index.html for details.
Cody also added an alternate version which allows Turbo-C and MSC to compile this code, based on the authors’ remarks, except that Cody @@ -839,11 +980,17 @@ question (i.e. it was only tested in the original entry). YMMV.
Cody also made the code look more like the original, removing the int from
the variables, adding instead -Wno-implicit-int. The newline added by the
judges was retained.
Yusuke got this to work in modern systems (it previously resulted in a bus error).
Cody made this use fgets(3).
Yusuke and Cody in conjunction fixed this for modern systems (both fixed a different compiler error but more fixes were also made).
Yusuke added the comma operator for a binary expression with free(3) which is
@@ -853,7 +1000,10 @@ operator itself.
Cody fixed another compiler error by removing the erroneous prototype to
fopen(). Cody also changed a char * used for file I/O to be a proper FILE * and fixed a typo in LANDER.BAS.
Cody also made this use fgets(3).
Cody fixed this for modern systems. There were two problems to be resolved.
One can no longer do:
#define d define
@@ -866,7 +1016,10 @@ but later Cody added it back to make it more like the original).
The second problem was suggested by the judges at the time of judging, to do
with if the C preprocessor botches single quotes in cpp expansion.
Cody also added the try.sh script.
-1990/jaw (index.html)
+##
+
+1990/jaw (index.html)
+
Cody fixed the script to work properly in modern environments including writing
to and extracting from stdout and relying on the exit code in the commands to
allow for && ....
@@ -877,16 +1030,25 @@ the time.
NOTE: as btoa is not common we used a ruby script from Yusuke but with a minor
fix applied by Cody that made the program just show oops twice from invalid
input but which now works.
-1990/pjr (index.html)
+##
+
+1990/pjr (index.html)
+
Cody added the alt code which was suggested by the judges
in the case that your compiler cannot compile X=g()... but it actually does
something else and is recommended by the author as well.
-1990/scjones (index.html)
+##
+
+1990/scjones (index.html)
+
Yusuke suggested -ansi to get the entry to compile due to trigraphs and Cody
suggested -trigraphs. Both work but we used Yusuke’s idea.
Cody added the try.sh script to show exactly what the
entry does.
-1990/tbr (index.html)
+##
+
+1990/tbr (index.html)
+
Cody fixed this to work with modern compilers; exit(3) returns void but the
function was used in a binary expression so this wouldn’t even compile.
Cody also changed the code to use fgets() instead of gets() so one would not get
@@ -899,7 +1061,10 @@ it look more like the original by redefining exit and also redefini
to be fgets() in the same way that the original entry is. This way the alt
version is equivalent in function, like the
author intended, but more compact.
-1990/theorem (index.html)
+##
+
+1990/theorem (index.html)
+
Cody fixed this to compile with modern systems.
He also fixed some bugs that impacted the usability of this program including some
segfaults under modern systems (and possibly in some cases earlier systems) with
@@ -926,12 +1091,18 @@ original program and some of the programs it generates.
Yusuke pointed out that atof nowadays needs #include <stdlib.h> which was
used in order to get this to work initially (prior to this output was there but
incomplete).
-1990/stig (index.html)
+##
+
+1990/stig (index.html)
+
Cody fixed the paths in the Makefile so that this would build in Linux (it
worked fine in macOS).
He also changed the Makefile to use bash not zsh as not all systems have
zsh and the Makefile actually sets SHELL to bash.
-1990/westley (index.html)
+##
+
+1990/westley (index.html)
+
Cody fixed this for modern systems. It had 1s in places for a short int which was changed to just 1. Since it’s instructional to see the
differences he has provided an alternate version,
westley.alt.c, which is the original code.
@@ -942,8 +1113,14 @@ and to not crash if no arg is specified.
Cody also added the try.sh script.
The alt code did NOT have arg checks added as it is actually a copy of the
original code.
-1991
-1991/ant (index.html)
+#
+
+1991
+
+##
+
+1991/ant (index.html)
+
Cody added alt code that will be a bit easier to use for
those familiar with vim in the following ways:
@@ -955,7 +1132,10 @@ those familiar with vim in the following ways:
- Use
q to exit.
The other keys were left unchanged.
-1991/brnstnd (index.html)
+##
+
+1991/brnstnd (index.html)
+
Cody fixed this for modern systems. There were two invalid operands to binary
expression (char * and void and int and void) to resolve and
additionally a mis-feature of the C pre-processor which no longer works had to
@@ -966,7 +1146,10 @@ invalid operands to binary expressions were resolved with the comma operator.
Cody also added the try.sh script and
try.txt which the script uses.
-1991/buzzard (index.html)
+##
+
+1991/buzzard (index.html)
+
Cody fixed this so that the coordinates being specified would not crash the
program. This happened because the function that calls atoi(3) took an arg
without any type specified and as an implicit int it was not a char * which
@@ -979,12 +1162,18 @@ home with those familiar with vi(m) (it certainly does feel more at home with
him): k for forward, h for left and l for right. This version also has a
more useful way to exit, just entering q followed by enter, rather than
completing or killing the program.
-1991/davidguy (index.html)
+##
+
+1991/davidguy (index.html)
+
As some systems like macOS can be particular about not declaring functions Cody
added to the Makefile some -include options. These appear to not be strictly
necessary but it was done due to other syscalls being a problem not being
declared first.
-1991/dds (index.html)
+##
+
+1991/dds (index.html)
+
Cody fixed a segfault that prevented this entry from working in any condition
and he also made it work for clang. He also added checks for NULL FILE *s.
Furthermore he changed it so that the C from the BASIC uses fgets(), not
@@ -1057,7 +1246,10 @@ opened for reading or a file could not be opened for writing it would not crash.
The definition of whether that should be a bug to fix or a feature to not fix
was pondered and changed numerous times and ultimately that problem with this
entry was fixed. It has not been done in all.
-1991/fine (index.html)
+##
+
+1991/fine (index.html)
+
Cody made it look much more like the original entry even after the fix that
increased the count in characters from 80 to 106, getting it back down to just
85 (and later back down to 80, see below).
@@ -1073,7 +1265,10 @@ the Makefile which now has a -DB=(int)b so that B can
some fun input for fun but mostly different output. He added a great string from
Brian Westley and Cody also added several of his own (can you figure out exactly
which ones? :-) )
-1991/rince (index.html)
+##
+
+1991/rince (index.html)
+
Cody fixed it so that the messages that show if you won or lost will be seen
after the end of the game. The reason it did not work before is curses was ended
at the end of the program which clears the screen. To make it look most like the
@@ -1084,7 +1279,10 @@ added a newline at the end of the screen to be more user friendly.
remove the maximum number of moves you may make and another to let you configure
the maximum number of moves, even if that is making it harder to win. Naturally
the above fix was applied to these versions too.
-1991/westley (index.html)
+##
+
+1991/westley (index.html)
+
Cody fixed a segfault in this program which prevented it from working. The
problem was that the read-only char array char *z[] was being written to. The
fix was to change it to char z[][100] in two spots (see if you can determine
@@ -1100,8 +1298,14 @@ ruins the experience. Finally he made it pass
version that supposedly (:-) ) always wins.
Cody also fixed the make clobber rule where a file was left lying about when it
should have been removed.
-1992
-1992/adrian (index.html)
+#
+
+1992
+
+##
+
+1992/adrian (index.html)
+
Cody fixed the code so that it will try opening the file the code was compiled
from (__FILE__), not adgrep.c, as the latter does not exist: adgrep is
simply a link to adrian as adgrep is what the program was submitted as but
@@ -1149,7 +1353,10 @@ the additional tools.
and some of the tools this entry generates. Unlike other scripts, it does not
clear the screen after compilation so that one can see how the other files are
generated.
-1992/albert (index.html)
+##
+
+1992/albert (index.html)
+
Cody fixed this to compile with modern systems. Note that in 1996 a bug fix was
applied to the code, provided as the alt code as that version is not obfuscated.
Thus Cody’s fix applies to the original entry. The problems were that malloc.h
@@ -1159,7 +1366,10 @@ return void.
Cody also added the try.sh and
try.alt.sh scripts that correspond to the entry and
the alt code.
-1992/ant (index.html)
+##
+
+1992/ant (index.html)
+
Cody fixed the Makefile so that the program will actually work with it (or at
least the rule to clobber files and link am to ant). The issue was that the
variables in the Makefile could not be evaluated in the same way as it’s not as
@@ -1175,20 +1385,29 @@ rule where a line was not ended with a \ but should have been.
necessary to include time.h so Cody did this as well as this exists in other
systems too.
Cody also added the try.sh script.
-1992/buzzard.1 (index.html)
+##
+
+1992/buzzard.1 (index.html)
+
Cody added a check for the right number of args, exiting 1 if not enough (2)
used. This was not originally done but at a time it was changed to be considered
a bug so it was fixed at that point as it only took a few seconds and had to be
verified that it was consistent with the bugs.html file.
He also added the try.sh script to try out some
commands that we suggested and some additional ones that he provide for some fun.
-1992/buzzard.2 (index.html)
+##
+
+1992/buzzard.2 (index.html)
+
Cody fixed the alt code to compile. The problem was it assumed that
exit(3) returns a value, not void. This was fixed with a ,0.
Cody also added the try.sh and
try.alt.sh scripts that correspond to the entry
and its alt code.
-1992/gson (index.html)
+##
+
+1992/gson (index.html)
+
Cody fixed a crash that prevented this entry from working in some cases in some
systems (like macOS) by disabling the optimiser in the Makefile.
Cody also added the try.sh script.
@@ -1202,14 +1421,20 @@ MODERNISE IT.
from stdin after starting the program). Ideally fgets(3) would be used but this
is a more problematic. See 1992/gson in bugs.html for more
details if you’re interested in trying to understand it (or fix?).
-1992/imc (index.html)
+##
+
+1992/imc (index.html)
+
Cody provided the try.sh script.
The original code, imc.orig.c, assumed that exit(3)
returned a value but this will cause problems where exit(3) returns void. The
source code was modified to avoid this problem but like Cody did with other fixes
he made this more like the original by redefining exit to use the comma
operator so that it could be used in binary expressions.
-1992/kivinen (index.html)
+##
+
+1992/kivinen (index.html)
+
It was observed that on modern systems this goes much too quick. Yusuke created
a patch that calls usleep(3) but Cody thought the value was too slow so he
made it a macro in the Makefile Z (which can be redefined with make SLEEP=...), defaulting at 15000. This was made an alt
@@ -1228,7 +1453,10 @@ caution as it’s quite possible that clang or the ANSI C committee end up furth
changing this.
Yusuke also noted that there is a bug in the program where right after starting
it moves towards the right but if you click the mouse it goes back.
-1992/lush (index.html)
+##
+
+1992/lush (index.html)
+
Yusuke supplied a patch which makes this work with gcc. Due to how it works (see
Judges’ remarks in the index.html file) this will not work with clang.
Cody also provided the lush.sh script to
@@ -1236,9 +1464,15 @@ demonstrate it as using make was problematic.
Cody made it use fgets() instead of gets().
NOTE: this entry cannot work with clang due to different compiler messages (it
will compile fine but it won’t work). See bugs.html for details.
-1992/marangon (index.html)
+##
+
+1992/marangon (index.html)
+
Cody made this more portable by changing the void main() to be int main().
-1992/nathan (index.html)
+##
+
+1992/nathan (index.html)
+
Cody added the original file back as it was deemed that the export restrictions
should no longer be a cause of concern for this entry. Doing this did require a
change to Cody’s 2020/ferguson2 entry as it’s
@@ -1247,7 +1481,10 @@ referenced.
participates in the IOCCC, that it must be our fault! :-)
Cody also added the try.sh script that runs a few commands
that we suggested as well as one he provided.
-1992/vern (index.html)
+##
+
+1992/vern (index.html)
+
Cody fixed an infinite loop if one were to input numbers < 0 or > 077. The
problem was that it tried to use scanf(3) with the format specifier "%o %o" in a
loop, reading again if scanf(3) did not return 2 (that was not a problem in
@@ -1257,7 +1494,10 @@ processed or some error occurs) or a function it called returned non-zero.
new char arrays (always cleared in the beginning of the loop) and then using
strtol(3) with a base of 8 (as it’s octal), checking for < 0 || > 077 on
both numbers (using "%o %o" does not solve the problem).
-1992/westley (index.html)
+##
+
+1992/westley (index.html)
+
Cody fixed this to work for clang by changing the third and fourth arg of
main() to be char ** insidemain(); clang requires args 2 - 4 to bechar
** and some versions do not even allow a fourth arg.
@@ -1293,23 +1533,41 @@ world or just the
USA, respectively, without enough
args (2). And not that we need the help or anything for this :-) but we
encourage you to try the original without two args :-)
-1993
-1993/ant (index.html)
+#
+
+1993
+
+##
+
+1993/ant (index.html)
+
Cody added the try.sh script and a data file,
ants.txt, full of ants for the script.
-1993/cmills (index.html)
+##
+
+1993/cmills (index.html)
+
Yusuke suggested that with modern systems this goes too fast so he added a call
to usleep(3) in a patch he made. Cody made it configurable at compilation by
using a macro. This is in the alt version which is the recommended one to try
first.
-1993/dgibson (index.html)
+##
+
+1993/dgibson (index.html)
+
Cody fixed the dgibson.sh script to work
which assumed that . is in the path.
Cody also added the try.sh script which runs the above
mentioned script on all the data files.
-1993/ejb (index.html)
+##
+
+1993/ejb (index.html)
+
-1993/jonth (index.html)
+##
+
+1993/jonth (index.html)
+
Both Cody and Yusuke fixed this so that it will work with modern systems. Yusuke
provided some fixes of the X code and Cody fixed the C pre-processor directives
so that it would compile. It used to be that you could get away with code like:
@@ -1318,10 +1576,16 @@ so that it would compile. It used to be that you could get away with code like:<
and expect G; to equate to int i, j; (though it’s now a long) and K to mean
case but that’s no longer the case so the offending lines had #define
prepended to them.
-1993/leo (index.html)
+##
+
+1993/leo (index.html)
+
Cody fixed this to work with modern compilers. This involved different header
files for functions.
-1993/lmfjyh (index.html)
+##
+
+1993/lmfjyh (index.html)
+
Cody added an alternate
version which does what the program did
with gcc < 2.3.3. See the index.html file for details and for why this was made
@@ -1329,7 +1593,10 @@ the alternate version, not the actual entry.
Cody also made the Makefile delete the very unsafe filename that is compiled (or
would be compiled if gcc < 2.3.3) whether or not compilation succeeds (which is
highly unlikely).
-1993/plummer (index.html)
+##
+
+1993/plummer (index.html)
+
Cody added check for two args.
Cody also added an alternate version which uses
usleep(3) so you can see what is happening with faster systems. This version
@@ -1339,7 +1606,10 @@ index.html files for details.
try.alt.sh scripts that correspond to the original
entry and the alt version, both allowing one to change the args (and in the case
of the alt one allowing one to change the amount to sleep).
-1993/rince (index.html)
+##
+
+1993/rince (index.html)
+
Yusuke supplied a patch to get this to work in modern systems. This fix also
applies the compatibility issue of select(2) described in the index.html file.
Cody added a call to endwin() to help with terminal sanity after the program
@@ -1349,9 +1619,15 @@ the second one, to make movement keys (of the default game) more familiar to vi
users. The slowing down was based on our suggestion that it might be desired to
slow down but Cody did it in such a way that makes it easy to configure at
compile time. See the index.html for details.
-1993/schnitzi (index.html)
+##
+
+1993/schnitzi (index.html)
+
Cody made this use fgets(3) not gets(3).
-1993/vanb (index.html)
+##
+
+1993/vanb (index.html)
+
Cody fixed this to work with clang. The problem was that the third arg to main()
was not a char **. InsteadO5()(which wasmain()via-DO5=main`) is now
its own function which main() calls with the right parameters.
@@ -1370,8 +1646,14 @@ work).
NOTE: the N1 and N2 are provided as notes in the index.html file describing
this code. Other code is also described there.
Cody also added the try.sh script.
-1994
-1994/dodsond2 (index.html)
+#
+
+1994
+
+##
+
+1994/dodsond2 (index.html)
+
Cody fixed an infinite loop that could happen when you shoot an arrow
and end up having no arrows, thus making one force quit the game. The problem
was in a condition in the outer loop it would repeatedly get input (if
@@ -1396,7 +1678,10 @@ reset so you could only get the arrows back once even if the robber stole more.
Now the counters are reset. The way this bug was fixed is that there is now a
counter for how many you have found and how many you shot in addition to the two
that already existed, how many you had and how many were stolen.
-1994/horton (index.html)
+##
+
+1994/horton (index.html)
+
Cody fixed this to check that four args were specified. With the use of the C
pre-processor macro and inclusion of stdlib.h in the Makefile the layout of the
source is exactly the same column width and no additional lines were added. This
@@ -1413,13 +1698,19 @@ shorter PDF file,
login_sept92-pp28-31.pdf. The full
newsletter was found on the Internet Wayback Machine and the article was
extracted as a PDF in the macOS Preview.app (File -> Print feature).
-1994/imc (index.html)
+##
+
+1994/imc (index.html)
+
Cody also added inclusion of unistd.h for getpid(2). While strictly speaking
this was not necessary (in multiple systems) it can sometimes be a problem and
as it was noticed it was changed (the only case this was done except in the
entries that actually did not work because of missing or incorrect prototypes).
-1994/ldb (index.html)
+##
+
+1994/ldb (index.html)
+
Cody fixed this so it would compile and work with modern compilers. The problem
was that srand() returns void but it was used in a || expression. Thus the
comma operator was needed.
@@ -1437,7 +1728,10 @@ rather than an annoying warning. A subtlety about this fix: if a line is greater
than 231 in length if the program chooses that line it might print the first 231
characters or it might print (up to) the next 231 characters and so on.
Cody also added the try.sh script.
-1994/schnitzi (index.html)
+##
+
+1994/schnitzi (index.html)
+
Cody added two alt versions, one which uses
fgets() but when fed its own source code cannot
generate code that compile and another one with a bigger buffer
@@ -1454,7 +1748,10 @@ details. Later on, if nobody takes up the task, Cody might resume it, but for
now there is more important work to do so that the next contest can run.
Cody also added the try.sh and
try.alt.sh scripts.
-1994/shapiro (index.html)
+##
+
+1994/shapiro (index.html)
+
Cody fixed a bug on systems where EOF != -1. The problem is that getc() and
the related functions do not return -1 on EOF or error but rather EOF.
However EOF is not required to be -1 but merely an int < 0 and this program
@@ -1462,9 +1759,15 @@ assumed that getc() will return -1 on EOF or error, no
where EOF != -1 it could result in an infinite loop.
For an interesting problem that occurred here and what was done to solve it,
check the bugs.html file.
-1994/smr (index.html)
+##
+
+1994/smr (index.html)
+
-1994/tvr (index.html)
+##
+
+1994/tvr (index.html)
+
Cody added the try scripts, four total, colour and black and white
pairs for the original entry and the alt code. These scripts are
try.color.sh, try.bw.sh,
@@ -1477,7 +1780,10 @@ to be terminated but it was a pretty straightforward fix. gets() wa
to use fgets() and the inclusion of stdio.h had to be added but to make it
more like the original entry this was done in the Makefile. The alt code was
also changed to use fgets(3).
-1994/weisberg (index.html)
+##
+
+1994/weisberg (index.html)
+
Cody changed the Makefile to make this program more user friendly and easier to
use with other tools as well by making the program output not a space after each
number but rather a newline.
@@ -1487,7 +1793,10 @@ number but rather a newline.
lines of the weisberg, feeding it to primes(1), showing those that are
primes. It only does the reversed output because the program actually prints
primes.
-1994/westley (index.html)
+##
+
+1994/westley (index.html)
+
Cody converted the spoiler compiler options (provided by the author) to be
compiler commands and added a script try.sh to
automate the spoiler commands to make it easier to see the game in action from
@@ -1495,8 +1804,14 @@ start to finish.
Cody also added the alternate version that will look fine on terminals not set
to 80 columns and the try.alt.sh script to automate
the play along the lines of the try.sh script.
-1995
-1995/cdua (index.html)
+#
+
+1995
+
+##
+
+1995/cdua (index.html)
+
Cody fixed this so that it would work with macOS. Once it could compile it
additionally segfaulted under macOS which he also fixed.
Cody also provided the Alternate code for fun :-) ) (in
@@ -1509,12 +1824,21 @@ type of args. In particular some versions supposedly only allow 0, 2 or 3 args.
It actually appears to allow 1 but if you specify 4 it says 0, 2 or 3 and it is
an error but it’s entirely possible that they will eventually make the defect
function as the error message claims.
-1995/dodsond1 (index.html)
+##
+
+1995/dodsond1 (index.html)
+
Cody added the try.sh script that uses the text file he
provided which is input we suggested one try with the entry.
-1995/esde (index.html)
+##
+
+1995/esde (index.html)
+
-1995/garry (index.html)
+##
+
+1995/garry (index.html)
+
Cody fixed the alt code so that it will compile with modern compilers. The
problem was a missing int for the f variable. He felt it was even more
important that it works because the layout does indeed look to him like a rat is
@@ -1526,30 +1850,54 @@ adding a few enhancements. For the alt version he also added the
alt version is not as important as alt code in other entries. In order to get
the paging to work right for the garry.data file leading blank lines had to be
added.
-1995/heathbar (index.html)
+##
+
+1995/heathbar (index.html)
+
-1995/leo (index.html)
+##
+
+1995/leo (index.html)
+
At our change in how to deal with spoilers, Cody also uudecoded the spoiler provided
by the author, putting it in spoiler1.html.
-1995/makarios (index.html)
+##
+
+1995/makarios (index.html)
+
Cody fixed this so that it will compile with versions of clang that has a defect
which only allows main() to have 0, 2 or 3 args. This is done by a new
function (pain() as it’s annoying that clang is this way :-) ) that main()
calls which has the four args.
-1995/savastio (index.html)
+##
+
+1995/savastio (index.html)
+
-1995/schnitzi (index.html)
+##
+
+1995/schnitzi (index.html)
+
-1995/vanschnitz (index.html)
+##
+
Cody added the authors’ spoiler as a C
file as in 2023 we have decided that in most
cases all the code should be available for the wider audience, without having to
extract it. The exception is when the files are created by the entry or the
entry decrypts the text or something like that.
Cody also added the try.sh script.
-1996
-1996/august (index.html)
+#
+
+1996
+
+##
+
+1996/august (index.html)
+
Cody fixed a segfault in this program that prevented it from working right and
also fixed an infinite loop in the try commands.
The problem with the infinite loop is that the file august.oc had to have
@@ -1560,7 +1908,10 @@ problem existed in macOS.
Cody also added the try.sh script that runs all the
commands that were given by the judges in the try section, with the fix above
applied.
-1996/dalbec (index.html)
+##
+
+1996/dalbec (index.html)
+
Cody proposed a fix for this to compile with clang and Landon implemented it
after some discussion (though Cody changed the function name). The reason Cody
did not do it is because he thought it was the wrong output but as it happens
@@ -1574,14 +1925,20 @@ number is printed on a line by itself rather than having a long string of
numbers on the same line. This was not put in an alternate version but perhaps
it should be.
Cody also added the try.sh script.
-1996/eldby (index.html)
+##
+
+1996/eldby (index.html)
+
Cody provided an alternate version which uses
usleep() in between writing the output to make it easier to see what is going
on with faster systems and importantly also for those who are sensitive to text
flashing by rapidly (it affects him too but he also thinks it moves too fast
nowadays anyway). We recommend that you try the alternate version first due to
these reasons.
-1996/gandalf (index.html)
+##
+
+1996/gandalf (index.html)
+
Cody fixed this to compile and work with modern systems. As he loved the
references in the code that could not compile he just commented out as little as
possible to get this to compile.
@@ -1590,16 +1947,28 @@ really demonstrate the different ways of running the program ends up showing
either different output or the same output that we briefly pointed out.
BTW: it is perilous to try the patience of
Gandalf. Go ahead, try it! :-)
-1996/huffman (index.html)
+##
+
+1996/huffman (index.html)
+
-1996/jonth (index.html)
+##
+
+1996/jonth (index.html)
+
Cody fixed this to not segfault under macOS. The problem was that the function
pointer w, which points to XCreateWindow(), did not specify the parameters of
the function in the pointer assignment.
NOTE: if there is no X server running this program will still crash.
-1996/rcm (index.html)
+##
+
+1996/rcm (index.html)
+
-1996/schweikh1 (index.html)
+##
+
+1996/schweikh1 (index.html)
+
The author stated that -I/usr/include is needed by gcc in Solaris because
errno.h has two identical extern declarations of errno. That leads to an
@@ -1608,16 +1977,25 @@ working /usr/include/rrno.h is found first, which shouldn’t cause
on other systems (the other file is
gcc-lib/sparc-sun-solaris2.5/2.7.2/include/errno.h). Thus Cody also added this to
the Makefile despite the fact that very few probably use Solaris nowadays.
-1996/schweikh2 (index.html)
+##
+
+1996/schweikh2 (index.html)
+
Cody added the try.sh script with a few commands to try
along with a shorter version of something the author suggested one try (it is
suggested that one try the longer version too but it will run in an infinite
loop so having it in a script is less desired).
-1996/schweikh3 (index.html)
+##
+
+1996/schweikh3 (index.html)
+
Cody updated the Makefile so that if it fails to compile it will try he
method suggested for SunOS rather than having to update the Makefile manually or
running a more complicated command: now one can just run make.
-1996/westley (index.html)
+##
+
+1996/westley (index.html)
+
Cody fixed a segfault in this entry as well as it displaying environmental
variables. Although the scripts showed correct output, it somewhat lessened the
usability because they segfaulted and showed (an) environmental variable,
@@ -1633,8 +2011,14 @@ index.html file.
clocks, both with the fixed version and the original (alt) version.
Also, to fix any potential problem with displaying in GitHub the scripts
provided by the author, Cody added ‘.sh’ to the clock[1-3].sh scripts.
-1998
-1998/banks (index.html)
+#
+
+1998
+
+##
+
+1998/banks (index.html)
+
Cody improved the Makefile to allow for easier redefining the control
keys and time step that the author set up.
Cody also set up the Makefile to have an alt build (using the same code) for those
@@ -1645,7 +2029,10 @@ they do have page up and page down but this gives a default for those who don’
have them like with Macs. The alt build hard codes the page up and page down
alternatives because not doing so would overly complicate both builds and since
you can configure them all in both builds it shouldn’t matter.
-1998/bas1 (index.html)
+##
+
+1998/bas1 (index.html)
+
Cody, out of an abundance of caution, added a second arg to main() as some
versions of clang whine about the number of args on top of what type they are
In particular some versions claim that they only allow 0, 2 or 3 args. It
@@ -1654,16 +2041,25 @@ quite possible they will ‘fix’ this defect it would be better to have this n
be a problem at such a time.
Cody also added the bas1.sh script to simplify running the
program.
-1998/bas2 (index.html)
+##
+
+1998/bas2 (index.html)
+
Cody added the try.sh script which runs some default actions
as well as allowing one to pass in different file names or strings.
-1998/chaos (index.html)
+##
+
+1998/chaos (index.html)
+
Cody added a call to endwin() to restore terminal sanity (echo etc.) when
exiting the program (in both versions).
Cody also added the try.sh script that runs the program on
all the data files, giving instructions on how to rotate and zoom in and out,
prior to each run.
-1998/df (index.html)
+##
+
+1998/df (index.html)
+
Cody changed a int * used for fopen(3) to be a FILE * to be more correct
and prevent any possible problems in some systems (which has happened).
Cody also made the fixed version to look more like the original version by using
@@ -1673,7 +2069,10 @@ for why this has to be done this way.
Cody also added the try.sh script which runs the program in a
loop until one hits q (or Q) or sends intr/ctrl-c. He also proposed there’s
a way to cheat very easily. Can you figure out how?
-1998/dlowe (index.html)
+##
+
+1998/dlowe (index.html)
+
Cody made the program more portable by changing the void return type of main()
to be int (in both versions).
Cody added the scripts try.sh,
@@ -1682,13 +2081,22 @@ to be int (in both versions).
program, a local pootifier of web pages and a CGI pootifier. See historical
remarks for more details on the
pootify scripts.
-1998/dloweneil (index.html)
+##
+
+1998/dloweneil (index.html)
+
Cody added alt code which has vi(m) movement
(in addition to the other keys except for dropping it’s not d but j or
space) keys as well as allowing one to quit the game.
-1998/dorssel (index.html)
+##
+
+1998/dorssel (index.html)
+
-1998/fanf (index.html)
+##
+
+1998/fanf (index.html)
+
Cody fixed this to compile. The problem was the intermediate steps to get to the
final code that is compiled. The code is now what it essentially becomes when
processed completely. The intermediate steps can now be performed to see how it
@@ -1703,7 +2111,10 @@ code look like the original with just an extra arg.
CSILENCE variable of the Makefile.
Cody also added the try.sh script to show the output of some
of the expressions that we selected.
-1998/schnitzi (index.html)
+##
+
+1998/schnitzi (index.html)
+
Cody fixed invalid data types which prevented this entry from working, causing a
segfault. This showed itself in two parts which required two fixes, one for
Linux and further changes for macOS. He also fixed a segfault (after printing
@@ -1719,7 +2130,10 @@ doing:
((V[1]&&((atoi(V[1])>0&&atoi(V[1])<27))||(exit(1),1)));
Cody also added the try.sh script to help users try the
commands that we recommended as well as some added by him.
-1998/schweikh1 (index.html)
+##
+
+1998/schweikh1 (index.html)
+
Cody fixed this for modern systems (it did not work at all) and added an
alternate version that works with macOS. Cody also made it ever so slightly more
portable by removing the hard-coding of gcc, instead hard-coding it cc. Doing
@@ -1761,7 +2175,10 @@ the macros in the form of gcc -dM i.e., the lines are in the form <
Cody also added the perl script that the author provided that they used to
compute the character count in the code according to the contest rules of 1998
in the file charcount.pl.
-1998/schweikh2 (index.html)
+##
+
+1998/schweikh2 (index.html)
+
Cody fixed the code to not trigger an internal compiler error in gcc:
:10:16: warning: type defaults to 'int' in declaration of 'zero' [-Wimplicit-int]
: In function 'main':
@@ -1775,7 +2192,10 @@ index.html.
have a problem with that in the future which is not entirely out of the
question.
Cody also added the try.sh script.
-1998/schweikh3 (index.html)
+##
+
+1998/schweikh3 (index.html)
+
Cody added the alternate code which allows one
to reconfigure the size constant in the rare case that the author wrote about
occurs.
@@ -1798,7 +2218,10 @@ more easily do this (though it indeed seems highly unlikely). See the index.html
for more details.
There actually is a web page for the tool and this was added to the author
information for the entry. It has not been added to any JSON file.
-1998/tomtorfs (index.html)
+##
+
+1998/tomtorfs (index.html)
+
Cody fixed the assumption that EOF is -1 (the author noted that it assumes
it is -1 and it’s indeed a valid concern as the standard only guarantees that
it’s a value < 0) and that 1 is a valid code to return failure (it seems
@@ -1808,32 +2231,56 @@ the EXIT_FAILURE change was done by redefining exit(3)
program had return 1).
Cody also added the try.sh script to try out a few
commands that we recommended.
-2000
-2000/anderson (index.html)
+#
+
+2000
+
+##
+
+2000/anderson (index.html)
+
Cody changed this entry to use fgets(3) instead of gets(3). This involved
changing the K arg to gets(3) to &K in fgets(3).
Cody also added the try.sh script.
-2000/bmeyer (index.html)
+##
+
+2000/bmeyer (index.html)
+
Cody added the try.sh script with some improvements to the
commands we recommended like not assuming the number of columns one has in their
terminal.
-2000/briddlebane (index.html)
+##
+
Cody fixed this to compile in systems that require one to explicitly link in
libm.
Cody also added the try.sh script for those who are
feeling a bit too confident, cocky or even happy :-)
-2000/dhyang (index.html)
+##
+
+2000/dhyang (index.html)
+
Cody made this more portable by changing the void main to int main.
He also added the try.sh script.
-2000/dlowe (index.html)
+##
+
+2000/dlowe (index.html)
+
Cody fixed this to compile with more recent perl versions; the symbol that’s now
PL_na was once na. He notes that this entry crashes under macOS but it works
under Linux after this change.
Cody also added the try.sh script.
-2000/jarijyrki (index.html)
+##
+
+2000/jarijyrki (index.html)
+
Cody made it easier to compile this in some cases by adding X11/ to the
includes of Xlib.h and keysym.h.
-2000/natori (index.html)
+##
+
+2000/natori (index.html)
+
Cody fixed this for modern compilers. Depending on the compiler it would either
segfault when run or not compile at all (gcc and clang respectively).
Cody also provided alternate code that supports the southern hemisphere.
@@ -1851,21 +2298,36 @@ like the original entry but with the two fixes.
Finally Cody fixed the Makefile that had the -Wno-foo options in the CDEFINE
variable which although works it is incongruent with the other Makefiles and is
more confusing (even if not confusing).
-2000/primenum (index.html)
+##
+
+2000/primenum (index.html)
+
Cody made this more portable by changing the void main to int main.
Cody also added the try.sh script.
-2000/rince (index.html)
+##
+
+2000/rince (index.html)
+
-2000/robison (index.html)
+##
+
+2000/robison (index.html)
+
Cody fixed an infinite loop that occurred if invalid input was entered, flooding
the screen with:
Black position and direction: illegal
This was fixed by having the scanf(3) read in a string and then use atoi(3)
on it to assign to the ints, much like with 1987/lievaart. The strings are
char[5] and the % specifier is %4s which is enough for the game.
-2000/schneiderwent (index.html)
+##
+
-2000/thadgavin (index.html)
+##
+
+2000/thadgavin (index.html)
+
Cody fixed the code and added an appropriate make rule so that the
SDL version works independent from the curses version
(using the same code).
@@ -1899,15 +2361,24 @@ systems and in case you’re sensitive to rapidly moving swirling. See the
index.html for details on that. Note that this alternate version only will impact
the curses and the SDL versions as Cody does not have a DOS system to test the
other version in.
-2000/tomx (index.html)
+##
+
+2000/tomx (index.html)
+
Cody added the alt code based on the
author’s remarks with a fix for modern systems and he also added the two
scripts, try.sh and try.alt.sh for
the main code and the alt code respectively.
And although the scripts do chmod +x on the source code (see the index.html for
details) the source code is now executable by default.
-2001
-2001/anonymous (index.html)
+#
+
+2001
+
+##
+
+2001/anonymous (index.html)
+
Cody fixed both the supplementary program and the program itself (both of which
segfaulted and once that was fixed only the binary was modified; it was not run
but according to the author’s remarks it should be executed). He managed to do
@@ -1963,7 +2434,10 @@ sings Ten in the Bed
As well he added the try.sh so that one can
attempt to use the program as it was designed but if compiling as 32-bit fails
it will at least run the supplementary program as a 64-bit program directly.
-2001/bellard (index.html)
+##
+
+2001/bellard (index.html)
+
Cody fixed this to compile with clang but according to the author this will not
work without i386 Linux. It generates i386 32-bit code (not bytecode) but
unfortunately it will not work without i386 Linux. See bugs.html.
@@ -1997,7 +2471,10 @@ we don’t know if that’s relevant or not.
versions of clang it is. With gcc we can get away with -rdynamic -fno-pie -Wl,-z,execstack which solves the problem of execution in memory but any
compiler that does not support this would not work. Thus we use the modification
by Yusuke.
-2001/cheong (index.html)
+##
+
+2001/cheong (index.html)
+
Cody fixed this to work with clang by adding another function that is allowed to
have a third arg as an int, not a char **. He chosepain()` because it’s a four
letter word that would match the format and because it’s pain that clang forces
@@ -2005,7 +2482,10 @@ this. :-) This fix makes a point of the author’s notes on portability no longe
valid, BTW.
Cody also added the try.sh script.
He also fixed it to check the number of args.
-2001/coupard (index.html)
+##
+
+2001/coupard (index.html)
+
Cody added a value to return in main() to make it more portable.
Cody fixed this to compile with clang in Linux. The problem was C99 does not
support implicit int:
@@ -2025,7 +2505,10 @@ those with macOS) (to do with sound; see his
/2013/endoh3/index.html entry where he also refers to
sound devices in macOS).
Cody added the try.sh.
-2001/ctk (index.html)
+##
+
+2001/ctk (index.html)
+
The ANSI escape codes were no longer valid but Yusuke provided a patch to fix
the ANSI escape codes. This works with both Linux and macOS.
Cody fixed this so that it should always restore terminal sanity (echo enabled
@@ -2034,14 +2517,20 @@ program prematurely. This was done by adding an explicit call to e()main()
.
Cody also added the alt code that adds
vi(m) movement keys.
-2001/dgbeards (index.html)
+##
+
+2001/dgbeards (index.html)
+
The author provided two changes: one to speed it up and one to make it not crash
on losing. Cody provided an alternate version which does the former but he felt
that the idea of crashing on losing (see the index.html for details on why that
might be) too good to get rid of so he kept that in.
He also points out that there is a way to get the computer to automatically lose
very quickly. Do you know what it is?
-2001/herrmann1 (index.html)
+##
+
+2001/herrmann1 (index.html)
+
Cody fixed this so that the when compiling the code the program is not executed
itself by itself which just showed the usage string and exited. The script
herrmann1.sh is used to compile the program but
@@ -2054,7 +2543,10 @@ shellcheck. In particular there were quite a few:
SC2248 (style): Prefer double quoting even when variables don't contain special characters.
errors/warnings.
Cody also added the try.sh script.
-Cody fixed this to work with both 64-bit and 32-bit compilers by changing most
of the ints (all but that in main(int ...)) to longs. He also fixed it to
compile with clang by changing the args of main to be int and char **, respectively, and changing specific references to theargvarg, casting tolong(wasintbut the 64-bit fix requireslong`) which was its old type.
int and
For some reason the original code was missing (presumingly because it had been
added to .gitignore by accident) but Cody restored it from the archive.
-2001/kev (index.html)
+##
+
+2001/kev (index.html)
+
Cody improved the Makefile to allow one to more easily set up the port,
speed and socket(2) call that the author had set up.
Cody also slowed down the ball just a tad (it was already a -D macro that was used
@@ -2076,25 +2571,43 @@ them (though this change became unnecessary with an improvement on how it was
done). The speed, SPEED, will be set to 50 if it’s not defined at the compiler
line as 50 is what it used to be set to. This way it’s more to the original but
without having to sacrifice playability by running make.
-2001/ollinger (index.html)
+##
+
+2001/ollinger (index.html)
+
Cody also fixed it to not crash if not enough args, exiting 1 instead. This was
done at a time where it was said to be a bug that should be fixed, for better or
worse.
-2001/schweikh (index.html)
+##
+
+2001/schweikh (index.html)
+
Cody fixed this to not crash if not enough args as this was not documented by
the author. The other problems are documented so were not fixed. See
index.html for details.
Cody also added the try.sh script.
-2001/westley (index.html)
+##
+
+2001/westley (index.html)
+
Cody added the script try.sh to automate a heap of commands
that we, the IOCCC judges, suggested, as well as some additional ones that he
thought would be fun. He also provided the sort and punch card versions,
described in the index.html, based on the author’s remarks.
-2004
-2004/anonymous (index.html)
+#
+
+2004
+
+##
+
+2004/anonymous (index.html)
+
-2004/arachnid (index.html)
+##
+
+2004/arachnid (index.html)
+
Cody added an alternate version which
allows those like himself used to h, j, k and l movement keys to not get
lost. Non rogue players, vi users and Dvorak typists are invited to get lost (or
@@ -2103,7 +2616,10 @@ use the original version)! :-)
arachnid.txt as it’s not really an informative
file but a maze file. The extension .maz was not chosen to help with (some?)
browsers knowing what to do with it.
-2004/burley (index.html)
+##
+
+2004/burley (index.html)
+
Cody fixed this to compile with clang and to work with both gcc and
clang (even after fixing it to compile with clang it did not work properly).
For clang the problem was that main() had one arg, a char * and this is not
@@ -2129,7 +2645,10 @@ nowadays and other entries had to have this same kind of change,
2001/anonymous being a good example).
Finally the optimiser cannot be enabled so the compiler flags were changed for
this, forcing -O0.
-2004/gavare (index.html)
+##
+
+2004/gavare (index.html)
+
Cody added three different alternate
versions:
@@ -2142,7 +2661,10 @@ and anti-alias setting at compile time.
that was used during development, found on their website about the
entry.
-2004/gavin (index.html)
+##
+
+2004/gavin (index.html)
+
Cody provided the alt code for
those who want to use QEMU. The most important part of this is the macro K has
to be defined as 1, not 0.
@@ -2152,15 +2674,24 @@ files provided, found under the img/ directory. No
the img/fs.tar extracts into fs/ so you will have to fix the tarball; this
is done this way to prevent extraction from the entry directory overwriting the
files and causing make clobber to wipe some of them out.
-2004/hibachi (index.html)
+##
+
+2004/hibachi (index.html)
+
Cody fixed a bunch of links in the index.html provided with the entry
(web server) that no longer exist or have changed in some other way (https
instead of http for instance). In most cases a new link or change to https was
all that was necessary but at least one or two URLs required the Internet
Wayback Machine.
-2004/hoyle (index.html)
+##
+
+2004/hoyle (index.html)
+
-2004/jdalbec (index.html)
+##
+
+2004/jdalbec (index.html)
+
Cody fixed this to compile with gcc (it worked with clang). The problem was the
cpp being unable to parse the generated code (see the index.html for details) and
this ended up with a number of errors like:
@@ -2185,7 +2716,10 @@ newline, so that one can see the output a bit better (though for lines that have
a lot of numbers this will be harder to see).
Finally Cody added try.sh and
try.alt.sh to demonstrate both versions.
-2004/kopczynski (index.html)
+##
+
Cody reported that this entry cannot be optimised by the compiler as otherwise
it will not work.
Cody, out of an abundance of caution for clang, added a second arg to main()
@@ -2196,25 +2730,40 @@ files: kopczynski-a to demonstrate what happens when
like a letter is fed to the program and the kopczynski*-rev files which are
the data files reversed with rev(1). One had to be modified additionally to
get it to work, that being kopczynski-10-rev.
-2004/newbern (index.html)
+##
+
+2004/newbern (index.html)
+
Cody and Landon individually fixed this to work with clang.
Cody also added the try.sh script (with a hidden feature
that the author referred to and was documented by Yusuke though Cody
chose the word IOCCC instead of AAA).
-2004/omoikane (index.html)
+##
+
+2004/omoikane (index.html)
+
-2004/schnitzi (index.html)
+##
+
+2004/schnitzi (index.html)
+
Cody made this use fgets(3).
He also changed the time factor in the data files as the animations went too
fast in modern systems, especially the scrolling text of
schnitzi.inp1.
Cody also added the try.sh script.
-2004/sds (index.html)
+##
+
+2004/sds (index.html)
+
Also, after the README.md file had copyright changes, it broke the script so
Cody made a copy of the older README.md file into README_sds.txt and added that
to the repo for the script instead.
-2004/vik2 (index.html)
+##
+
+2004/vik2 (index.html)
+
Cody fixed this to compile in Linux. Although it compiled cleanly in macOS (and
BSD?) the code failed to compile at all in Linux due to:
cc -E vik2_1.c > vik2_2.c
@@ -2265,8 +2814,14 @@ which used to be generated by the Makefile via cc -E.
vik2_1.c: it shouldn’t be done for
vik2.possible.cat.death.c!) __FILE__
just to make it a bit easier to compile.
-2005
-2005/aidan (index.html)
+#
+
+2005
+
+##
+
+2005/aidan (index.html)
+
Cody fixed the test script, described by the author in their remarks, to refer
to the proper compiled program (it’s hardcoded). This had never been done and so
the script did not even work (at least modernly?).
@@ -2279,7 +2834,10 @@ scenarios), inelegant, and not a good starting place for sudoku generation.’
alt code respectively.
Cody added the make test and make test-n0 rules for easier use of the test
suite.
-2005/anon (index.html)
+##
+
+2005/anon (index.html)
+
Cody fixed a problem where in some systems (like macOS) the stty sane would
not work and end up causing a bus error. Instead of stty sane it uses stty echo which is what it was trying to accomplish.
The author noted that one can define NO_STTY to not use stty(1) at all
@@ -2287,11 +2845,17 @@ not work and end up causing a bus error. Instead of stty sane it us
explained in the index.html.
Cody added the alt code with vi(m) like
movements.
-2005/boutines (index.html)
+##
+
+2005/boutines (index.html)
+
Cody added the input.txt data file based on suggested
input from the author, adapting it to a command to try out.
Cody also added the try.sh script.
-2005/giljade (index.html)
+##
+
+2005/giljade (index.html)
+
After Landon fixed the entry to compile with clang Cody noticed this
does not work at all in modern systems (see below). He fixed this to work and
then he later fixed the self-test feature.
@@ -2335,12 +2899,21 @@ temporary file the compilation including the ‘Line’ lines. After that is don
uses grep -c on the file to show that there are indeed as many versions the
program generates as the author states, 180. If it does not find 180 it is an
error; otherwise it is success. It uses test.sh.
-2005/jetro (index.html)
+##
+
+2005/jetro (index.html)
+
Cody added explicit linking of libm (-lm) for systems like Linux that seem to
not do it implicitly (like macOS does).
-2005/klausler (index.html)
+##
+
+2005/klausler (index.html)
+
-2005/mikeash (index.html)
+##
+
+2005/mikeash (index.html)
+
Cody fixed this to work in Linux. The problem was an unknown escape sequence,
\N, which caused a funny compiler error:
};n b[2048];int i
@@ -2362,7 +2935,10 @@ what is supposed to happen. It is not known, however, if having to change the
\N to \n ended up breaking any LISP. The other examples given by the author
also show correct output though.
Cody also added the try.sh script.
-2005/mynx (index.html)
+##
+
+2005/mynx (index.html)
+
Cody fixed this so that the configure script (which is not
needed but part of the entry) would work with compilers that have by default
-Werror like clang in macOS.
@@ -2370,13 +2946,19 @@ needed but part of the entry) would work with compilers that have by default
how https is set up, in which case just enjoy it for what it was. But there
might be some command line that will let it work that way or perhaps someone
wants to add the necessary code.
-2005/persano (index.html)
+##
+
+2005/persano (index.html)
+
Cody added the (untested) alternate
code which should work for Windows as it
sets binary mode on stdout. It is untested as Cody has no Windows system to
test it on.
Cody also added the try.sh script.
-2005/sykes (index.html)
+##
+
+2005/sykes (index.html)
+
Cody added the saved (with the SAVE command) BASIC program PET which was:
10 PRINT "2005'S IOCCC BEST EMULATOR"
20 PRINT "BY STEPHEN SYKES!"
@@ -2401,16 +2983,25 @@ run the test suite. The program will enter an infinite loop after it runs so you
have to hit ctrl-c to end it which the script tells you.
The scripts note every time that one will have to send ctrl-c or whatever their
interrupt is set to in order to exit the program.
-2005/timwi (index.html)
+##
+
+2005/timwi (index.html)
+
Cody added try.sh. It only has one command as he doesn’t
want to knacker his brain any more than it might or might not already be :-) and
he doesn’t want to damage anyone else’s brain either. :-)
-2005/toledo (index.html)
+##
+
+2005/toledo (index.html)
+
Cody fixed this to compile with some versions of clang which have an additional
defect where main() can only have 0, 2 or 3 args (it was 4). It now calls
another function that takes 4 args and which is what used to be main().
The alternate versions were also fixed.
-2005/vince (index.html)
+##
+
+2005/vince (index.html)
+
Cody fixed this in the case that the program is compiled or linked/copies to
another file name: the code constructed the source code file name in a clever
and more obscure way by copying to the buffer *argv and then using strcat(3)
@@ -2420,22 +3011,40 @@ as the source is in the same directory as the executable it should be able to
find it’ but the source code file name is not always the same as the executable
with the appropriate extension so this might be called a bug fix as well though
if one runs it from another directory, specifying the directory, it’ll not catch it.
-2006
-2006/birken (index.html)
+#
+
+2006
+
+##
+
+2006/birken (index.html)
+
Cody fixed a segfault in macOS with this entry. The problem was a missing +1
for strlen() with malloc(). This prevented it from working.
Cody also added the try.sh script.
-2006/borsanyi (index.html)
+##
+
+2006/borsanyi (index.html)
+
Cody fixed the Makefile to work in systems where the lpthread is not
implicitly linked in.
Cody also added the try.sh script.
-2006/grothe (index.html)
+##
+
+2006/grothe (index.html)
+
-2006/hamre (index.html)
+##
+
+2006/hamre (index.html)
+
Cody fixed this so that it will not crash without an arg after it was suggested
this should be fixed.
Cody also added the try.sh script.
-2006/monge (index.html)
+##
+
+2006/monge (index.html)
+
Cody added the alternate code that lets
one resize the image and redefine the number of iterations.
Cody also added the try.sh and
@@ -2449,10 +3058,16 @@ the original it was simply made to link in SDL1.
Nevertheless this entry does require x86/x86_64 CPUS. This is a documented
feature but one which we will accept fixes to. See 2006/monge in
bugs.html.
-2006/night (index.html)
+##
+
+2006/night (index.html)
+
As Cody is a lost :-) vim user he took the author’s remarks to add support
back for arrow keys in the alternate version.
-2006/sloane (index.html)
+##
+
+2006/sloane (index.html)
+
Cody fixed this entry to work with clang which has a defect with the args to
main(): it requires specific types: int and `char ** for the first and
latter args.
@@ -2473,12 +3088,18 @@ and also it is kind of like a backwards Z. That way Z
by default.
Since the author suggested that the lack of certain #includes might break the
program in some systems he also added -include ... to the Makefile as well.
-2006/stewart (index.html)
+##
+
+2006/stewart (index.html)
+
Cody also fixed it so that if the file cannot be opened it exits rather than trying
to read from the file. This was done at a time when it was considered to be a
bug to fix.
-2006/sykes1 (index.html)
+##
+
+2006/sykes1 (index.html)
+
Cody provided the alt code based on the
author’s remarks.
Cody also added the try.sh script.
@@ -2486,15 +3107,24 @@ author’s remarks.
obtained from the Internet Wayback Machine, as the file was no longer available.
The video was also no longer available but Cody found an alternative and added
it to the repo as well.
-2006/sykes2 (index.html)
+##
+
+2006/sykes2 (index.html)
+
Cody, out of an abundance of caution for clang’s defects, made main() have
to args instead of 1 as some versions report that main() must have 0, 2 or 3
args, even though at least one of those versions allows 1 arg only.
Cody also added the try.sh script for easier use of the
entry to show the clock update in real time.
-2006/toledo1 (index.html)
+##
+
+2006/toledo1 (index.html)
+
-2006/toledo2 (index.html)
+##
+
+2006/toledo2 (index.html)
+
Cody fixed a segfault in this program which was making it fail to work under
macOS - it did not seem to be a problem under Linux, at least not fedora. The
problem was wrong variable types - implicit ints instead of FILE *s. It now
@@ -2507,7 +3137,10 @@ the program and modified the fread(3)/fwrite(3) sectio
FILE *e (that Cody changed) instead of int y, making it to work on x86_64
(perhaps Cody’s fix was for arm64 only?). Also, he added a note to clarify from
where appears the IMPORT.COM and HALT.COM files.
-2006/toledo3 (index.html)
+##
+
+2006/toledo3 (index.html)
+
Cody fixed a crash and a display problem in this entry so that it now works in
modern (64-bit) systems. The crash appears to only occur in macOS but the fix
lets it work in both Linux and macOS. The problem was that it relied on 32-bits
@@ -2516,24 +3149,48 @@ have been a problem in Linux with the old ints but this is no longe
Cody also added the code that should work for Windows,
toledo3.alt.c, based on the author’s remarks.
We’re not able to test this.
-2011
-2011/akari (index.html)
+#
+
+2011
+
+##
+
+2011/akari (index.html)
+
-2011/blakely (index.html)
+##
+
+2011/blakely (index.html)
+
-2011/borsanyi (index.html)
+##
+
+2011/borsanyi (index.html)
+
Cody, out of an abundance of caution, added a second arg to main() as some
versions of clang complain about not only the type of each arg to main() but
the number of args as well.
Cody also added the try.sh script.
-2011/dlowe (index.html)
+##
+
+2011/dlowe (index.html)
+
-2011/eastman (index.html)
+##
+
+2011/eastman (index.html)
+
Cody added the video file boing-ball.mp4 which is the demo the
author referred to.
-2011/fredriksson (index.html)
+##
+
-2011/goren (index.html)
+##
+
+2011/goren (index.html)
+
Cody fixed this for macOS. Before the fix it segfaulted. It worked fine under
Linux. After fixing it it was noticed that the author stated it does not work
for 64-bit so it was then tested as a 32-bit binary (Linux) and 64-bit binary
@@ -2541,7 +3198,10 @@ for 64-bit so it was then tested as a 32-bit binary (Linux) and 64-bit binary
and now it does work with 64-bit systems as well as 32-bit systems.
Cody also added the try.sh script.
Cody added the following words of wisdom: '"this" is not a pipe but "!" is'.
-2011/hamaji (index.html)
+##
+
+2011/hamaji (index.html)
+
Cody added the try.sh script and the .nono files
conway-game-of-life.nono,
multi-solutions.nono,
@@ -2550,13 +3210,22 @@ and now it does work with 64-bit systems as well as 32-bit systems.
The latter two .nono files were taken from
https://web.archive.org/web/20130218055139/http://codegolf.com/paint-by-numbers
and the others were from the authors’ remarks.
-2011/hou (index.html)
+##
+
+2011/hou (index.html)
+
-2011/konno (index.html)
+##
+
+2011/konno (index.html)
+
Cody fixed the program to not crash if no arg was specified as this was not a
documented feature.
Cody also added the try.sh script.
-2011/richards (index.html)
+##
+
+2011/richards (index.html)
+
Cody fixed a minor problem that showed up in both Linux and macOS. He notes
however that as of this time this entry does not work properly with macOS at
least with the silicon chip (Intel has not been tested) and it is quite possibly
@@ -2571,19 +3240,28 @@ not be worth, as it is a possible starting point that Cody added.
try.alt.sh scripts. The try.alt.sh script will be
helpful to test any fixes for Apple silicon chips (see 2011/richards in
bugs.html for more details).
-2011/toledo (index.html)
+##
+
+2011/toledo (index.html)
+
Cody added two alternate versions: one that
lets one reconfigure the controls and also the size of the game and another
version that should work in Windows, based on the author’s remarks and support
file, layer.c.
The Makefile was also modified by Cody to make it simpler to redefine the
controls, width and height.
-2011/vik (index.html)
+##
+
+2011/vik (index.html)
+
Cody also added an alternate version for Windows
based on the author’s comments (along with looking up the function for the right
header files). To build try the alt rule of the Makefile.
-2011/zucker (index.html)
+##
+
+2011/zucker (index.html)
+
Cody also added alt code that should work on
Windows, based on the author’s remarks that if the system distinguishes binary
@@ -2591,14 +3269,26 @@ and text then stdout needs to be set to binary mode.
Cody also added the PDF file
sphere-tracing.pdf in case the link
eventually dies.
-2012
-2012/blakely (index.html)
+#
+
+2012
+
+##
+
+2012/blakely (index.html)
+
Cody added explicit linking of libm (-lm) as not all systems do this
implicitly (Linux doesn’t seem to but macOS does).
Cody also added the try.sh script.
-2012/deckmyn (index.html)
+##
+
+2012/deckmyn (index.html)
+
-2012/endoh1 (index.html)
+##
+
+2012/endoh1 (index.html)
+
Cody added explicit linking of libm (-lm) as not all systems do this
implicitly (Linux doesn’t seem to but macOS does).
Cody also added two alt versions that
@@ -2623,12 +3313,18 @@ same as the try.alt.sh except it does not use the coloured version.
version without colour, endoh1.c.
The endoh1.alt2.c was provided by the author,
Yusuke, at the time of the contest as a de-obfuscated version.
-2012/endoh2 (index.html)
+##
+
+2012/endoh2 (index.html)
+
Cody added the try.sh script that runs
everything, filtered through less.
Cody also fixed a typo in the ruby script
find-font-table.rb.
-2012/grothe (index.html)
+##
+
+2012/grothe (index.html)
+
Cody also changed argv to be not const char ** butchar , mostly out of an
abundance of caution in case clang, which already imposes restrictions on the
@@ -2641,17 +3337,26 @@ to, in case the other domain ends up expiring or stops redirecting to the more
recent domain. For historical purposes the old link was
http://recipes.stevex.net/ but it redirects to https://www.mealsteps.com
which the recipe file now links to.
-2012/hamano (index.html)
+##
+
+2012/hamano (index.html)
+
Cody added the try.sh script and the helper
Makefile rules hint.pdf, hint, hello.pdf and hello to simplify the
procedure for both hint.pdf and hello.pdf as well as compiling them as C.
-2012/hou (index.html)
+##
+
+2012/hou (index.html)
+
Cody added the try.sh script and restored the original hint
markdown file as the changes made when converting to a GitHub
index.html made the generated html not look correct; it did not have a title, a
stylesheet etc. due to the fact that there is no # header (which specified
title and stylesheet) and other formatting changes.
-2012/kang (index.html)
+##
+
+2012/kang (index.html)
+
Cody added alt code that fixes a problem where in German ‘v’ sounds like ‘f’
which the program has as ‘f’: with the original version it would translate
‘fier’ to ‘4’ when the word is ‘vier’. But see below.
@@ -2674,9 +3379,15 @@ the other defaults to the submitted entry. See the index.html for details.
try.alt.sh, run a sequence of commands to
show different languages and numbers with the submitted and alternate version
respectively. Notice how a single letter changes so much!
-2012/konno (index.html)
+##
+
+2012/konno (index.html)
+
-2012/omoikane (index.html)
+##
+
+2012/omoikane (index.html)
+
Cody added the alternate versions
which will, if no arg is specified, read in the program itself, rather than
/dev/urandom. This is mostly useful for those without a /dev/urandom device
@@ -2685,14 +3396,23 @@ except that it also sets binary mode on stdin and stdout
Cody also added the try.sh and
try.alt.sh scripts.
-2012/tromp (index.html)
+##
+
+2012/tromp (index.html)
+
-2012/vik (index.html)
+##
+
+2012/vik (index.html)
+
Based on the author’s description it should be able to get this entry to work
for Windows. With his instructions Cody also added the alternate version that
does this for the few who might use Windows.
-2012/zeitak (index.html)
+##
+
+2012/zeitak (index.html)
+
Cody test.sh script and the make test rule
that uses the script along with a number of files that will correctly be flagged
as incorrect (including a text file and a java file, with a joke, to show that
@@ -2704,8 +3424,14 @@ it) and a java file as well with another joke.
look at the program source with tab space of 4 characters so Cody added the
command to do this in vim for those who use it, in the judges’ remarks, to make
it easier for those who do not know how, and to make it more obvious to try it.
-2013
-2013/birken (index.html)
+#
+
+2013
+
+##
+
+2013/birken (index.html)
+
Cody changed the return 0; at the end of the program to be return system("reset"); (via redefining exit(3) so that the column ending would be
the same) so that as long as it runs to completion the terminal will be sane and
the cursor will be visible. Using atexit(3) will not work if the program is
@@ -2717,12 +3443,21 @@ configurable at compile time. The Makefile was modified in such a way as to make
it very easy to redefine it at compile time.
Cody also added the try.sh script for the entry and the
try.alt.sh script for the alt code.
-2013/cable1 (index.html)
+##
+
+2013/cable1 (index.html)
+
Cody added the try.sh script which also has an
joke Easter egg in it based on the judges’ remarks.
-2013/cable2 (index.html)
+##
+
+2013/cable2 (index.html)
+
-2013/cable3 (index.html)
+##
+
+2013/cable3 (index.html)
+
Cody fixed this to compile with modern systems. The problems were that
localtime() is used differently and time.h being included (with
SDL2 in macOS - but see below) there was a conflicting
@@ -2751,7 +3486,10 @@ referred to, found at the 2013/dlowe (index.html)
+##
+
+2013/dlowe (index.html)
+
Cody added the source code that we suggested one should compile and run with
different compilers as fun.c. He modified the Makefile so
that running make all will compile it, saving you the effort.
@@ -2768,9 +3506,15 @@ the symlink as it uses it, even though it runs make clobber all.
He also added the diff.sh script which is based on some
commands to try that he suggested to see how different lengths look.
-2013/endoh1 (index.html)
+##
+
+2013/endoh1 (index.html)
+
-2013/endoh2 (index.html)
+##
+
+2013/endoh2 (index.html)
+
Cody fixed the Makefile check rule so that it checks :-) that both
Ruby and ImageMagick are
installed before trying to run the ruby script. To be more technically correct:
@@ -2786,11 +3530,17 @@ Pro even though in the past it had been and is indeed now).
not installed, and after checking these requirements it will exit if either is
not found.
The entry can still be enjoyed if you do not have these tools, however.
-2013/endoh3 (index.html)
+##
+
+2013/endoh3 (index.html)
+
Cody also (out of an abundance of caution for clang(1) which is strict with
arg type and count to main()) added a second (unused) arg to main().
-2013/endoh4 (index.html)
+##
+
+2013/endoh4 (index.html)
+
Cody added the endoh4.sh script which temporarily
turns off the cursor as suggested by the author, with the addition that if no
file is specified it will feed the source code endoh4.c
@@ -2800,7 +3550,10 @@ pass more than one file to the script.
Cody also made it easier to redefine the size at compilation time (see the
author’s remarks for more details on what this means). The endoh4.sh script
allows one to redefine it as well.
-2013/hou (index.html)
+##
+
+2013/hou (index.html)
+
Cody fixed the Makefile so that this would work properly. Before this
the use of the program just did what the judges’ remarks said as far as how it
might violate rule 2: the program is really just a decompressor to generate the
@@ -2820,23 +3573,41 @@ does not).
2013/hou/doc/example.html to match the rest of the repo
this broke make which Cody also fixed.
Cody also added the try.sh script.
-2013/mills ([index.html)[2013/mills/index.html))
+##
+
+2013/mills ([index.html)[2013/mills/index.html))
+
Cody fixed this so that the server would not refuse the connection
after the first call to close(2). The problem was that because the backlog to
listen(2) was 1 once the connection closed the server was essentially ‘dead’.
The backlog was changed to 10 and this solves the problem. It is not known if
this was specific to macOS but it was not specific to a browser as Safari and
Firefox both had the problem.
-2013/misaka ([index.html)[2013/misaka/index.html))
+##
+
+2013/misaka ([index.html)[2013/misaka/index.html))
+
-2013/morgan1 (index.html)
+##
+
+2013/morgan1 (index.html)
+
Cody added explicit linking of libm (-lm) as not all systems do this
implicitly (Linux doesn’t seem to but macOS does).
Cody also added the try.sh script.
-2013/robison (index.html)
+##
+
+2013/robison (index.html)
+
-2014
-2014/birken (index.html)
+#
+
+2014
+
+##
+
+2014/birken (index.html)
+
Cody provided the alternate
code that lets one redefine the port to
bind to in case there is a firewall issue or there is some other reason to not
@@ -2844,7 +3615,10 @@ have the default port. Remember that ports < 1024 are privileged. It also let
you redefine the timing constant STARDATE (see the author’s remarks for more
details on this macro). The Makefile was made to use variables so it’s easier to
redefine the port and timing constant.
-2014/deak (index.html)
+##
+
+2014/deak (index.html)
+
Cody added alt code that lets
one (via the Makefile) reconfigure the coordinates but instead of being a
modified version of the entry it is the version the author provided which would
@@ -2859,7 +3633,10 @@ application source code is intentionally kept to a bare minimum.
that was fixed and it also has #include <stdio.h> for putchar(3). The
#ifndef..#define..#endif was not part of the original alt code, of course.
Cody also added the try.alt.sh script.
-2014/endoh1 (index.html)
+##
+
+2014/endoh1 (index.html)
+
Cody added the rake.sh script and make rake
rule that runs the script. This script will check that rake is installed and
if it is not it will report this and then check that gem is installed. It
@@ -2873,9 +3650,15 @@ run it.
Barely worth noting but done nonetheless, Cody renamed the read_me.html
file to spoilers.html to be clearer in its purpose as
it is a file with spoilers (and too close to index.html?).
-2014/endoh2 (index.html)
+##
+
+2014/endoh2 (index.html)
+
-2014/maffiodo1 (index.html)
+##
+
+2014/maffiodo1 (index.html)
+
Cody fixed the build for this entry: it does not require
SDL2 but SDL1 so there were linking errors.
Cody also added the mario.sh and
@@ -2883,13 +3666,22 @@ it is a file with spoilers (and too close to index.html?).
Mario Bros and one of The
Great Giana Sisters, but
which let one configure the width and height of the game.
-2014/maffiodo2 (index.html)
+##
+
+2014/maffiodo2 (index.html)
+
He also added the alternate code
provided by the author.
-2014/morgan (index.html)
+##
+
+2014/morgan (index.html)
+
-2014/sinon (index.html)
+##
+
+2014/sinon (index.html)
+
Cody fixed the code so that the game can play automatically like it
once did. The problem is that it expects a certain file name which was
sinon.c. The code now refers to prog.c.
@@ -2901,7 +3693,10 @@ output that is not code.
is installed) run the demo mode and then after that it will run the above noted
scripts in a loop until the user says they do not want to try again (or they
kill it). This is done this way in case it jams (see index.html for details).
-2014/skeggs (index.html)
+##
+
+2014/skeggs (index.html)
+
Cody fixed the Makefile to compile this entry in modern systems. The problem was
that the CDEFINE variable in the Makefile was missing 's: the #define CC
is an actual string that is, in the Makefile, "${CC} -fPIC", which
@@ -2913,7 +3708,10 @@ originally done because it seemed to work but since it uses dlsym()
added later to make it more portable.
The program creates files in the working directory as part of how it works (see
the index.html file for details) so Cody made sure that make clobber (via make clean) removes those files and so that they are ignored by .gitignore.
-2014/vik (index.html)
+##
+
+2014/vik (index.html)
+
Cody added the try.sh script. Cody notes that there
is a bug that will show itself as one of the features does not work right. The
translation of the raw audio to text is buggy in some cases.
@@ -2921,15 +3719,24 @@ translation of the raw audio to text is buggy in some cases.
theoretically work for Microsoft Windows compilers (if anything works in Windows
:-) ). We have no way of testing this and if anything has changed since 2014
that would break it we do not know.
-2014/wiedijk (index.html)
+##
+
+2014/wiedijk (index.html)
+
Cody added the try.sh script which is based on
the command to try in the ‘try’ section but improved so one can more easily
specify what ident tool they want to use and also change which sed to use,
should they want to. It also checks that both of these two tools exist and are
executable and it pipes it through less as it’s longer than a page worth of
output.
-2015
-2015/endoh3 (index.html)
+#
+
+2015
+
+##
+
+2015/endoh3 (index.html)
+
Cody fixed the code so one can make use of the echo feature, where the
first character of the filename starts with e. The only way it would work
before that is if one did something like:
@@ -2955,17 +3762,29 @@ to not have to maintain two copies of the same text.
calc.alt. ecalc and ecalc.alt also work. This is because the program is
called calc and is in documentation including the man page. Thus one only need
add a ./ to the commands in the man page/index.html.
-2015/endoh3 (index.html)
+##
+
+2015/endoh3 (index.html)
+
Cody improved the Makefile so that one can easily change the dimensions
at compilation time via make(1).
Cody also added alt code that is based on the author’s remarks, suggesting that
one change the value of q to a different number, in order to see a bug that
they avoided.
-2015/endoh3 (index.html)
+##
+
+2015/endoh3 (index.html)
+
-2015/endoh2 (index.html)
+##
+
+2015/endoh2 (index.html)
+
-2015/endoh3 (index.html)
+##
+
+2015/endoh3 (index.html)
+
Cody fixed this to compile with Linux which was having a problem with duplicate
symbols of main(). The fix is through the compiler option -fcommon which
will let it compile like it does with macOS.
@@ -2974,9 +3793,15 @@ make rule he added (to enjoy the theme of the entry, 1984/mullender.c.
-2015/endoh4 (index.html)
+##
+
+2015/endoh4 (index.html)
+
-2015/hou (index.html)
+##
+
+2015/hou (index.html)
+
Cody added explicit linking of libm (-lm) for systems that do not do this
(Linux doesn’t seem to but macOS does).
Cody also added the try.sh script and the large file large
@@ -2984,42 +3809,72 @@ which the try.sh script uses.
Cody also added the RFC 1321 text file, rfc1321.txt to
the directory, to make it so one need not download it, and which the index.html
file now links to.
-2015/howe (index.html)
+##
+
+2015/howe (index.html)
+
Cody added the try.sh script, downloaded the War
and Peace text file, fixed the avgtime.sh script (it
resulted in standard input errors in piping to bc(1)) and added the
cc.1 man page as not all systems have it (in fact it’s
gcc(1) from Rocky Linux).
-2015/mills1 (index.html)
+##
+
+2015/mills1 (index.html)
+
Cody added the try.sh script which changes the
parameters to what we had in the judges’ remarks to make it easier (he only died
when he tried to mark a reminder complete on the other side of the screen at the
same time and he almost survived that, scoring at that point over 90 - but this
also involves good eye-hand coordination and playing games like this in the
past).
-2015/mills2 (index.html)
+##
+
+2015/mills2 (index.html)
+
-2015/muth (index.html)
+##
+
+2015/muth (index.html)
+
-2015/endoh3 (index.html)
+##
+
+2015/endoh3 (index.html)
+
Cody fixed the build so that EOF will be -1 as the program assumes
this. It was decided by Cody to do -UEOF -DEOF=-1 so as to not have to modify
the code any with C preprocessor directives (the preferred way) or changing
EOF to -1.
Cody also added the try.sh script.
-2015/yang (index.html)
+##
+
+2015/yang (index.html)
+
Cody fixed an unfortunate typo in the Makefile that was preventing some of the
files from compiling properly, trying instead to compile already compiled code.
He also added explicit linking of libm (-lm) for systems that do not do this
(Linux seems to not but macOS does).
He also added the try.sh script.
-2018
-2018/anderson (index.html)
+#
+
+2018
+
+##
+
+2018/anderson (index.html)
+
Cody added the try.sh and
try.alt.sh scripts.
-2018/algmyr (index.html)
+##
+
+2018/algmyr (index.html)
+
-2018/bellard (index.html)
+##
+
+2018/bellard (index.html)
+
Cody also, out of abundance of caution, added a second arg to main() because
some versions of clang object to the number of args of main(), saying that it
@@ -3032,13 +3887,19 @@ object to 1 arg but it is entirely possible that this changes so a second arg
work for Windows, based on the author’s remarks. The same thing with the number
of args to main() that was done in the original entry was done with this
version as well.
-2018/burton1 (index.html)
+##
+
+2018/burton1 (index.html)
+
Cody fixed the scripthd script (referred to prog not ./prog) and
renamed it to scripthd.sh to help browsers and
GitHub as far as downloading/displaying goes.
Cody also added the try.sh script which also uses
scripthd.sh to show how it differs from prog itself.
-2018/burton2 (index.html)
+##
+
+2018/burton2 (index.html)
+
Cody fixed the make test rule: it tried to run tac(1) (in systems
that have that command) rather than the entry itself which is called tac and
the runtest script (which he renamed to runtest.sh for download/browser
@@ -3054,12 +3915,18 @@ format.
Cody added the tokcount.sh script which was
included in the remarks of the author but not an included file.
Finally Cody added the try.sh script.
-2018/ciura (index.html)
+##
+
+2018/ciura (index.html)
+
Cody added the try.sh and
try.alt.sh scripts and the PDF file,
lexicon.pdf, that was a dead link, restored from the
Internet Wayback Machine.
-2018/endoh1 (index.html)
+##
+
+2018/endoh1 (index.html)
+
Cody added the try.sh script which shows the
input files one at a time and after each one is shown, it feeds it to the
program, redirecting the output to the respective GIF file. It then will inform
@@ -3067,7 +3934,10 @@ the user they should open it in a GIF viewer that can show animation in animated
GIF files. It offers an example command for macOS like the judges did in their
remarks. The input files offered includes the prog.c as the author,
Yusuke, suggested that it too has a secret.
-2018/endoh2 (index.html)
+##
+
+2018/endoh2 (index.html)
+
Cody fixed the run.sh script (had commands that didn’t
exist and also didn’t work even after that was addressed) and added the
try.sh, python.sh and
@@ -3076,7 +3946,10 @@ three of the other scripts but each allows one to send an interrupt in the loops
and still continue to the next script (if one does it when not in a loop it will
exit the script). The make python and make python3 rules in the Makefile now
run the respective scripts.
-2018/ferguson (index.html)
+##
+
+2018/ferguson (index.html)
+
Cody, with irony well intended :-), fixed the test.sh
script for portability, shellcheck, making it executable
and other things, fixed dead links in the man page, updated the test-strings.txt
@@ -3085,11 +3958,17 @@ and try.alt.sh scripts).
Landon notes that Cody will probably never finish changes in his entries and
that’s probably true: let’s just say that for the IOCCC I’m (Cody) a weasel! :-)
(but isn’t that kind of the point ? :-) )
-2018/hou (index.html)
+##
+
+2018/hou (index.html)
+
Cody added explicit linking of libm (-lm) for systems that do not do this
(Linux doesn’t seem to but macOS does).
Cody also added the try.sh script.
-2018/mills (index.html)
+##
+
+2018/mills (index.html)
+
Cody, based on the author’s remarks, made it possible to save state
between runs of the program so that one can resume where they left off. It
should be noted that there is a bug in the entry (irrespective of save state
@@ -3098,7 +3977,10 @@ run) enter and then exit and then start the program again. Also if you do add a
file you should run sync prior to exiting or else the file might not exist or
it might be corrupt. See 2018/mills in bugs.html for more
details on the bug.
-2018/poikola ([index.html[(2018/poikola/index.html))
+##
+
+2018/poikola ([index.html[(2018/poikola/index.html))
+
Cody added the missing docs rule to the Makefile that forms a PDF
file. The rule requires the tool pdflatex.
Cody also added the try.sh script.
@@ -3106,18 +3988,33 @@ file. The rule requires the tool pdflatex.
problem where the macOS Terminal.app does not work properly for this program.
We added some additional notes on what might happen (it varies depending on
configuration).
-2018/vokes (index.html)
+##
+
+2018/vokes (index.html)
+
-2018/yang (index.html)
+##
+
+2018/yang (index.html)
+
Cody added the try.sh script. This script will ask
if the user wants to see some of the spoilers and only show them if they type
y or Y.
-2019
-2019/adamovsky (index.html)
+#
+
+2019
+
+##
+
+2019/adamovsky (index.html)
+
Cody added the try.sh script and the Unlambda
file crash.unl which is in the judges’ remarks as
to what can crash it - but it’s not a bug, it’s a feature.
-2019/burton (index.html)
+##
+
+2019/burton (index.html)
+
Cody fixed the Makefile which had a bad character, a ‘%’ instead of a ‘$’ which
caused a rule to fail.
Cody also added the try.sh script which shows a
@@ -3132,7 +4029,10 @@ wrong about) in cow.sh (which was renamed from
Cody also renamed the file on.one.liners to
on.one.liners.txt to help with
browsers/GitHub.
-2019/ciura (index.html)
+##
+
+2019/ciura (index.html)
+
Cody fixed an invalid bytes error in tr in the scripts. This does not
mean that they will produce any output, though, as they provide expect all
letters and that makes it harder to form perfect pangrams. On the subject of
@@ -3147,20 +4047,29 @@ website.
Finally he added the scripts for the different languages that use the alt
version but with the caveat that only English appears to work. See the entry in
bugs.html for more details.
-2019/diels-grabsch1 (index.html)
+##
+
Cody also added the file Shakespeare.txt
from 2019/mills (after running make) so that one can
not worry about having the entire IOCCC winning entry tree (or at least the 2019 tree each
entry in a subdirectory). This is more important as there is discussion of
having tarballs for each individual entry as a convenience.
-2019/diels-grabsch2 (index.html)
+##
+
Cody added the try.sh script. This
script will try and show the difference (i.e. the same output) between the
program and the result of sha512sum or shasum -a 512 if either of those
tools can be found but otherwise it’ll just run the program itself, showing its
own sha512sum value.
-2019/dogon (index.html)
+##
+
+2019/dogon (index.html)
+
Cody added explicit linking of libm (-lm) for systems that do not do this
(Linux does not seem to but macOS does).
He also fixed the Makefile so that it compiles with clang in Linux.
@@ -3171,7 +4080,10 @@ time by modifying the Makefile.
that this was done (some typos were fixed as well but only some - the purpose
was to only correct spelling and only some, not to change wording or anything
else).
-2019/duble (index.html)
+##
+
+2019/duble (index.html)
+
Cody made the make fullscreen more portable by not relying on
stty(1) and sed(1) but rather it just uses tput(1). He also made it so
that if tput(1) is not found it tells the user an easier way to compile the full
@@ -3181,7 +4093,10 @@ an easy way to tell the user how to compile it, assuming that the environmental
variables LINES and COLUMNS are set. But even if they’re not set it explains
how to easily compile the program to a specific size. Note that LINES and
COLUMNS is not available to scripts so it can’t make use of them that way.
-2019/endoh (index.html)
+##
+
+2019/endoh (index.html)
+
As this is a backtrace quine having the optimiser enabled is not a good idea so
Cody disabled it. For this same reason he also added the -g flag to the
compilation as debugging symbols might just be useful for an entry that’s
@@ -3191,9 +4106,15 @@ arg) prints out the character of the ASCII value (uses isascii(3) f
combined with the try.sh script that he added allows one
to easily reconstruct the source code through GDB by the fact it’s a backtrace
quine.
-2019/giles (index.html)
+##
+
+2019/giles (index.html)
+
-2019/karns (index.html)
+##
+
+2019/karns (index.html)
+
Cody reported that with -O level > 0 this program segfaults (sometimes?). He’s
not sure why as it worked fine before on the same systems tested but -O0
appears to fix the problem in both macOS and Linux. Perhaps this is the problem
@@ -3201,15 +4122,24 @@ that the author reported where it sometimes segfaults but Cody did not try
debugging it since it works with -O0.
He also added the script try.sh to showcase the entry a
bit more easily.
-2019/lynn (index.html)
+##
+
+2019/lynn (index.html)
+
Cody also added the example-1.txt and
example-2.txt text files from
2018/vokes so that the entry does not rely on any other
entry existing.
-2019/mills (index.html)
+##
+
+2019/mills (index.html)
+
-2019/poikola ([index.html[(2019/poikola/index.html))
+##
+
+2019/poikola ([index.html[(2019/poikola/index.html))
+
Cody added the missing docs rule to the Makefile that forms a PDF
file. The rule requires the tool
pdflatex.
@@ -3222,13 +4152,22 @@ suggesting that with some versions of GCC it might not be correct with levels !=
0 and since 0 works with clang that’s okay. Similarly, the same for C standards
tested: gnu17 was not tested but gnu11 was so the standard was set to
gnu11.
-2019/yang (index.html)
+##
+
+2019/yang (index.html)
+
Cody added the try.sh script which also involved
slightly updating the sample_input.txt file
(removed trailing newlines as it resulted in diff showing differences when it
shouldn’t) and adding the ioccc.txt file.
-2020
-2020/burton (index.html)
+#
+
+2020
+
+##
+
+2020/burton (index.html)
+
Cody fixed the script check_be.sh: it
assumed that prog_be was in PATH which is unlikely so it was changed to
./prog_be.
@@ -3236,17 +4175,26 @@ assumed that prog_be was in PATH which is unlikely so
Endian counterpart) so that it shows that the files are identical rather than
showing nothing at all.
Cody also added the try.sh script.
-2020/carlini (index.html)
+##
+
+2020/carlini (index.html)
+
Cody added the try.sh script which although at
first glance might not appear to have a point, it actually does, namely showing
how you can automate play and then reminding you to actually play for real, with
a friend, whether that’s real or imagined.
-2020/endoh2 (index.html)
+##
+
+2020/endoh2 (index.html)
+
Cody copied the files from the spoiler.zip file (from his copy during
the preview period) that was password protected with a password that was no
longer known.
He also added the try.sh script.
-2020/endoh3 (index.html)
+##
+
+2020/endoh3 (index.html)
+
Cody fixed the script run_clock.sh which gave a
funny error when running it:
$ ./run_clock.sh
@@ -3273,7 +4221,10 @@ knows it so he might be called unusual (and he argues, with pride, eccentric :-)
Cody also added the run_clock.alt.sh script
which is analogous to the run_clock.sh but for the
alt code provided by the author, Yusuke.
-2020/ferguson1 (index.html)
+##
+
+2020/ferguson1 (index.html)
+
Cody, with intentional irony here :-), fixed formatting, links and typos in
various files.
He improved the termcaps.c test utility, bug fixed
@@ -3287,7 +4238,10 @@ layered chocolate fudge cake recipe :-)
how rich it is? If not and you like chocolate I (that is Cody :-) ) highly
recommend you give it a go! :-) You’re welcome to ask me questions if you wish
and I encourage you to do so as the cake is quite picky!
-2020/ferguson2 (index.html)
+##
+
+2020/ferguson2 (index.html)
+
Cody, with intentional irony here :-), fixed formatting, links and typos in
various files.
He also added the try.sh script.
@@ -3306,7 +4260,10 @@ enciphered though it is :-)
how rich it is? If not and you like chocolate I (that is Cody :-) ) highly
recommend you give it a go! :-) You’re welcome to ask me questions if you wish
and I encourage you to do so as the cake is quite picky!
-2020/giles (index.html)
+##
+
+2020/giles (index.html)
+
Cody added the try.sh script. This script does
the conversion of pi.wav (showing the digits) and also converts the number for
jenny.wav and a number Cody ‘came up with’: one that resembles IOCCC 28:
@@ -3316,9 +4273,15 @@ perfect.
neither are installed it warns the user about this, linking to the FAQ about it,
and tells them they will have to play the WAV files manually. Otherwise it’ll
use the program to play the WAV files (and in one case stdout).
-2020/kurdyukov1 (index.html)
+##
+
-2020/kurdyukov2 (index.html)
+##
+
Cody also added -L/-I paths to the Makefile to let this compile more easily if
the user has installed the appropriate library with
@@ -3329,12 +4292,18 @@ of ways: shellcheck(1), make sure the program is compiled first (allowing one to
specify which compiler to use with CC=foo ./makegif.sh ...), checking that
convert(1) is found and that it worked properly (linking to the proper FAQ
entry if not installed or it fails).
-2020/kurdyukov3 (index.html)
+##
+
He also added a link that has much more details about this phenomenon to the
index.html. Naturally he’s one of the ones who can read text even if it’s even
more jumbled but we know of others too.
-2020/kurdyukov4 (index.html)
+##
+
Cody also added from 2019/mills the text file
Shakespeare.txt as we are considering to
@@ -3344,23 +4313,38 @@ translation of lámatyávë, which comes from History of Middle-ear
volume X, Morgoth’s Ring, which he also has (and which is part of the 12 volume
set by the late Christopher Tolkien, son and literary executor and heir to
J.R.R. Tolkien).
-2020/otterness (index.html)
+##
+
+2020/otterness (index.html)
+
Cody added the MIDI files cvikl.mid and
entertainer.mid from the URLs we suggested so
that one need not download them and to make sure they can always be obtained
even if the domain or link goes dead.
Cody also added the try.sh script.
-2020/tsoj (index.html)
+##
+
+2020/tsoj (index.html)
+
Cody added alternate code that will feel
more at home for vi users. One might still end up cursing (see the index.html
file) but probably a lot less :-)
-2020/yang (index.html)
+##
+
+2020/yang (index.html)
+
Cody also added a make rule (make cppp) for the author’s provided C++ code
that can preprocess the generated output to make them more acceptable to typical
compilers. See the index.html for more details.
-General thanks
-Makefiles fixes and improvements
+#
+
+General thanks
+
+##
+
+Makefiles fixes and improvements
+
Cody fixed the top level Makefile all rule which had a stray fi;
without an if so the rule failed entirely.
Cody also made a variety of other changes in all the Makefiles, sometimes to get
@@ -3405,7 +4389,10 @@ variables.
this, along with many other fixes and changes to the Makefiles were made by
Cody’s sgit tool but many other changes he did
manually.
-Consistency improvements
+##
+
+Consistency improvements
+
Cody, being the IOCCC’s resident corrections officer :-) (and a fine one at
that, we think :-) ), made many, many typ0 (… :-) ) fixes throughout the
README.md files, scripts, other data files, Makefiles (see above) etc.
@@ -3419,7 +4406,10 @@ be made consistent but adding markdown where necessary in the remarks is).
Some of these fixes were done with his sgit
tool as well but the vast majority were done
manually.
-Thank you honor roll
+##
+
+Thank you honor roll
+
There are a number of people who have contributed to several thousand changes,
fixes and important improvements and one who has literally (or numerically :-) )
contributed thousands, that we wish to thank.
@@ -3430,7 +4420,10 @@ and/or improve the write-ups of fellow IOCCC entries for the year that they won.
The list of those entries is too long to mention: nevertheless the IOCCC
judges VERY MUCH APPRECIATE those who
helped improve the presentation of their fellow IOCCC entries.
-Cody Boone Ferguson
+###
+
+Cody Boone Ferguson
+
We call out the extensive contributions of Cody Boone
Ferguson who is
responsible for most of the improvements and fixes including many EXTREMELY
@@ -3466,7 +4459,10 @@ from the SQL file).
THANK YOU VERY MUCH for your extensive efforts in helping improve the IOCCC
presentation of past IOCCC entries and fixing almost all past entries for modern
systems!
-Yusuke Endoh
+###
+
+Yusuke Endoh
+
Yusuke Endoh supplied a
number of important bug fixes to a number of past IOCCC entries. Some of those
fixes were EXTREMELY TECHNICALLY CHALLENGING such as
@@ -3475,7 +4471,10 @@ fixes were EXTREMELY TECHNICALLY CHALLENGING such as
1992/lush and
2001/ctk. THANK YOU VERY MUCH for
your help!
-Did we neglect to credit you?
+##
+
+Did we neglect to credit you?
+
If you submitted a fix to an entry for which you are not the author,
and your fix is accepted (in part or as a whole), we would be happy
to add you to this honor roll list.
@@ -3499,6 +4498,8 @@ are not the author of) for which we neglected to mention in this file, please
+
All IOCCC content including this file and web page are:
Copyright © 1984-2024 by Landon Curt Noll. Some Rights Reserved.This work is licensed by Landon Curt Noll under:
diff --git a/thanks-for-help.md b/thanks-for-help.md index 497bb8265..689fa8117 100644 --- a/thanks-for-help.md +++ b/thanks-for-help.md @@ -28,10 +28,10 @@ on a IOCCC entry by entry basis. - [Did we neglect to credit you?](#neglect) -# 1984 +#