https://pasteboard.co/Hk60KEv.png
Of course there are plenty of compression artifacts, but very impressive for just 1220 bytes of image data embedded in decompressor written in C totaling only 3984 bytes of source code!
No idea about what kind of service pasteboard.co is, hopefully the image will stay up for a while...
Edit: For comparison, here's a roughly corresponding original Lena image converted into 1269 byte 128x128 JPEG.
convert -resize 128x128 -strip -quality 12% lena.png lena.jpg
https://pasteboard.co/Hk67yXC.pngHehe...
50kB to 4kB is a 10x compression, it doesn't seem that huge, what's the achievement here?
"The uncompressed image is 12 times larger than the source code of the program which includes the image data and the complete decoder. The actual image data is 1220 byte long, which gives a compression ratio of 40. Using a JPEG-like algorithm would not be enough to reach this level of compression (the Lena image would be barely recognizable). So the algorithm is based on the latest advances in image compression."
> The actual image data is 1220 byte long, which gives a compression ratio of 40.
make && ./prog < lena512.bin | imgcat ./prog < lena512.bin | display
---btw, the `animate` program can also be used to display the animated GIFs from endoh1.
If we're lucky, Bellard might eventually post an image compressor program on his website at https://bellard.org/.
http://www.ioccc.org/2018/mills/prog.c
Anyone able to decode what is "punched" into it?
> # There is no 2016 IOCCC contest
> # There is no 2017 IOCCC contest
Anybody know why? X enum {T,F} z; //True & False
#define E {
#define B }
Old ideas, but they'll still catch people out.It's interesting to see how well, or badly, the syntax colourization in NeoVIM copes with the various entries.
Who Won?: http://www.ioccc.org/2018/whowon.html
Guidelines: http://www.ioccc.org/2018/guidelines.txt
I'm actually of a mind to start a new webpage that does just that, but there might be some copyright issues there.
Should be fine, no?
It's very liberating, when you don't need to chase a trend.