Prepare for the winners of **IOCCC28**. > However these are not the 2024 droids you are looking for. :-) The HTML menu (both JavaScript and non-JavaScript) has been updated. The `Status -> Rules and guidelines' have been replaced with two separate menus `Status -> IOCCC rules` and `Status -> IOCCC guidelines`. Added a new top level `social.html` page: built from a new `social.md`. Sorted rules for building specific web pages in the top level `Makefile`. Added `make social` to make the `social.html` page from `social.md`. The `bin/gen-top-html.sh` now is able to process a argument of **social** to process the new top level `social.html` page. Changed `bin/gen-top-html.sh` VERSION from "2.0.0 2025-03-13" to "2.0.1 2025-07-25". Below `About -> Home page` a new `About -> IOCCC social media` menu item as added. Because the menu change touched every HTML file, we changed the general copyright date range for HTML files from "1984-2024" to "1984-2025" due to the extensive changes made for **IOCCC28**. Those markdown files that were modified in 2025 had their copyright date range also changed from "1984-2024" to "1984-2025". Rebuilt tarballs and sitemap due to the extensive HTML rebuilding. Ran `make update` to perform the above.
To build:
make
To use:
make check
You'll need to have both Ruby and ImageMagick installed to run all the automated checks. See the FAQ on "ImageMagick" for details on installing ImageMagick and the FAQ on "Ruby" for details on installing Ruby.
If you do not have both, however, you can still do the below in the try
section to enjoy the entry. The Makefile
check rule will check if you have both and if either is not found it will
report it and tell you where to download one or both before exiting.
Try:
less jpeg.c
Next look at jpeg.jpg in an image viewer program.
Judges' remarks:
This is a program which, when fed its own source, generates a program that almost is its whitespace inverse, which, in its order, generates a JPEG file (speaking of file size abuse, that is about 16.4 times larger than a PBM file with the same image, but the source was also abusing the size counting program...)
Don't pay attention to the OCR behind the ruby curtain --- it's a
straightforward bitmap comparison.
Author's remarks:
Highlights
- LZ77-like compression for font and template data
- tiny JPEG encoder
- Zig-zag space-filling curve
- Discrete cosine transform
- JPEG Huffman encoding (cheating)
Notes
I picked JPEG instead of PNG, GIF, or BMP because it is the most difficult to generate. I believe that the JPEG encoder is the world's smallest ever.
Nevertheless, the program was too big to meet the IOCCC's size rule. So I
created a smaller bootstrap program that generates the main program. endoh2.c
contains fragments of the main program as a comment which iocccsize -i does
not count. I gratefully thank the judges for spoiling the size rule this
year.
I think the program will work on any major platforms and compilers.
Legal
This program uses (a part of) Proggy Tiny Fonts which is distributed in MIT License:
Copyright (c) 2004, 2005 Tristan Grimmer
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.