Format fix 2013/endoh2/README.md
This commit is contained in:
1 parent
2f40678705
commit
8023b9fc2a
1 file changed
+34
-28
+34
-28
@@ -17,7 +17,7 @@ make
|
|||||||
make check
|
make check
|
||||||
```
|
```
|
||||||
|
|
||||||
You'll need to have Ruby installed to run all the automated check
|
You'll need to have Ruby installed to run all the automated checks.
|
||||||
|
|
||||||
## Try:
|
## Try:
|
||||||
|
|
||||||
@@ -25,15 +25,18 @@ You'll need to have Ruby installed to run all the automated check
|
|||||||
cat jpeg.c
|
cat jpeg.c
|
||||||
```
|
```
|
||||||
|
|
||||||
Look at `jpeg.jpg` in an image viewer program.
|
Next look at `jpeg.jpg` in an image viewer program.
|
||||||
|
|
||||||
## Judges' remarks:
|
## Judges' remarks:
|
||||||
|
|
||||||
This is a program which, when fed its own source, generates a program that almost is its whitespace inverse,
|
This is a program which, when fed its own source, generates a program that
|
||||||
which, in its order, generates a JPEG file (speaking of file size abuse, that is about 16.4 times
|
almost is its whitespace inverse, which, in its order, generates a JPEG file
|
||||||
larger than a PBM file with the same image, but the source was also abusing the size counting program...)
|
(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.
|
Don't pay attention to the OCR ~~behind the ruby curtain~~ --- it's a
|
||||||
|
straightforward bitmap comparison.
|
||||||
|
|
||||||
## Author's remarks:
|
## Author's remarks:
|
||||||
|
|
||||||
@@ -43,18 +46,19 @@ Don't pay attention to the OCR ~~behind the ruby curtain~~ --- it's a straightfo
|
|||||||
* tiny JPEG encoder
|
* tiny JPEG encoder
|
||||||
* Zig-zag space-filling curve
|
* Zig-zag space-filling curve
|
||||||
* Discrete cosine transform
|
* Discrete cosine transform
|
||||||
* JPEG Huffman encoding (cheeting)
|
* JPEG Huffman encoding (cheating)
|
||||||
|
|
||||||
### Notes
|
### Notes
|
||||||
|
|
||||||
I picked JPEG instead of PNG, GIF, or BMP
|
I picked JPEG instead of PNG, GIF, or BMP
|
||||||
because it is the most difficult to generate.
|
because it is the most difficult to generate.
|
||||||
I believe that the JPEG encoder is the world's smallest ever.
|
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.
|
Nevertheless, the program was too big to meet the IOCCC's size rule. So I
|
||||||
`prog.c` contains fragments of the main program *as a comment*
|
created a smaller bootstrap program that generates the main program. `endoh2.c`
|
||||||
which `iocccsize -i` does *not* count.
|
contains fragments of the main program *as a comment* which `iocccsize -i` does
|
||||||
I gratefully think the judges for spoiling the size rule this year.
|
*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.
|
I think the program will work on any major platforms and compilers.
|
||||||
|
|
||||||
@@ -63,25 +67,27 @@ I think the program will work on any major platforms and compilers.
|
|||||||
This program uses (a part of) Proggy Tiny Fonts
|
This program uses (a part of) Proggy Tiny Fonts
|
||||||
which is distributed in MIT License:
|
which is distributed in MIT License:
|
||||||
|
|
||||||
Copyright (c) 2004, 2005 Tristan Grimmer
|
```
|
||||||
|
Copyright (c) 2004, 2005 Tristan Grimmer
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a
|
Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
copy of this software and associated documentation files (the "Software"),
|
copy of this software and associated documentation files (the "Software"),
|
||||||
to deal in the Software without restriction, including without limitation
|
to deal in the Software without restriction, including without limitation
|
||||||
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
and/or sell copies of the Software, and to permit persons to whom the
|
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:
|
Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
The above copyright notice and this permission notice shall be included in
|
||||||
all copies or substantial portions of the Software.
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
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
|
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
DEALINGS IN THE SOFTWARE.
|
DEALINGS IN THE SOFTWARE.
|
||||||
|
```
|
||||||
|
|
||||||
## Copyright and CC BY-SA 4.0 License:
|
## Copyright and CC BY-SA 4.0 License:
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user