156 votes

Write Moby Dick, approximately

///, 2*1 + 1020874 = 1020876 Prints a space.
daniero's user avatar
  • 18.6k
140 votes

Paint Starry Night, objectively, in 1kB of code

Pyth (no built-in compression), score 4695.07 4656.03 4444.82 Pyth’s only image-related functionality is a builtin to write a matrix of RGB triples as an image file. So the crazy idea here is to ...
Anders Kaseorg's user avatar
124 votes

Paint Starry Night, objectively, in 1kB of code

Mathematica, score 14125.71333 "a.png"~Export~ConstantImage[{28,34,41}/95,{386,320}] Saves this image: to a.png.
LegionMammal978's user avatar
112 votes

Paint Starry Night, objectively, in 1kB of code

Java, 7399.80678201 This reminded me of a project I had in my numerical computations class a few semesters back, which was to draw a silhouette of Mount Everest using polynomial interpolation. That ...
ndenarodev's user avatar
  • 1,221
109 votes

Write Moby Dick, approximately

Perl, 2·70525 + 326508 = 467558 Predictor ...
A. Rex's user avatar
  • 2,579
102 votes

Write Moby Dick, approximately

Node.js, 2*224 + 524279 = 524727 Please refer to the change log at the end of this post for score updates. A function taking and returning a byte. ...
Arnauld's user avatar
  • 189k
95 votes

Paint Starry Night, objectively, in 1kB of code

Python3.4+, 4697.26 I used the same method as in my ImageMagick answer, but with the following parameters: ...
orlp's user avatar
  • 39k
88 votes

Paint Starry Night, objectively, in 1kB of code

Python 3, score 5701.31 ...
kennytm's user avatar
  • 6,987
78 votes

Write Moby Dick, approximately

Python 3, 2·267 + 510193 = 510727 Predictor ...
Anders Kaseorg's user avatar
74 votes

Paint Starry Night, objectively, in 1kB of code

Java, 8748.95 Another approach: I created a class that computes a Voronoi Diagram from a given set of points. This set of points is used as the parameter set that serves as the input for the Apache ...
Marco13's user avatar
  • 1,191
56 votes

Write Moby Dick, approximately

Python 3, 2*279+592920=593478 2*250 + 592467 = 592967 2 * 271 + 592084 = 592626 2 * 278 + 592059 = 592615 2 * 285 + 586660 = 587230 2 * 320 + 585161 = 585801 2 * 339 + 585050 = 585728 ...
Michael Homer's user avatar
49 votes

Paint Starry Night, objectively, in 1kB of code

Python 2, 4749.88 1018 bytes Everybody has probably forgotten about this problem by now, except me.... This problem interested me far too much, especially as it quickly became apparent that approaches ...
Strawdog's user avatar
  • 691
46 votes

Paint Starry Night, objectively, in 1kB of code

Windows BAT file, score 4458.854 ...
yallie's user avatar
  • 561
42 votes

Paint Starry Night, objectively, in 1kB of code

C++11, 7441.68126105 6997.65434833 5198.16107651 More Updates I liked the ellipses from Perl so much I had to try them in C++11. I used the raw string to shove bytes into there, but for a while I ...
neocpp's user avatar
  • 631
41 votes

Paint Starry Night, objectively, in 1kB of code

ImageMagick, 4551.71 Uses the ImageMagick 'programming' language, using the following options (you might have to escape the !): ...
orlp's user avatar
  • 39k
37 votes

Paint Starry Night, objectively, in 1kB of code

Matlab, score 5388.3 Without any built in compression. The colour depth is reduced such that each pixel can be represented by one printable character. And the resolution is reduced. This is then ...
flawr's user avatar
  • 43.7k
32 votes

Paint Starry Night, objectively, in 1kB of code

zsh+bpgdec, 4159.061760861207 Yes, another BPG solution. I think this basically serves to prove that BPG is the best image compression utility currently available. Consider it an improvement over ...
nneonneo's user avatar
  • 12.3k
30 votes

Paint Starry Night, objectively, in 1kB of code

Starry, 11428.1894502 10904.3079277 10874.1307958 Starry might not be the best language to do this however it is certainly the most fitting. You can Try It online however it seems that the output is ...
Wheat Wizard's user avatar
  • 96.6k
29 votes

Paint Starry Night, objectively, in 1kB of code

C, 6641 999 bytes, using only stdio.h and math.h. I made a filled-circle function d() that ...
jamieguinan's user avatar
27 votes

Paint Starry Night, objectively, in 1kB of code

Python 2, 5238.59 points It is probably time to post my own answer. Here's the image The code looks like this ...
N. Virgo's user avatar
  • 7,232
27 votes

Reverse Zip Bomb

FFmpeg -crf 0 -preset ultrafast -tune film -vf format=yuv444p, score 198.7425 Input is a 65535 × 1 PBM file: ...
Dingus's user avatar
  • 10.9k
26 votes

Paint Starry Night, objectively, in 1kB of code

Python 3, score 5390.25, 998 bytes I used a simulated annealing program to fit rectangles into the shape of Starry Night. Then it uses a Gaussian blur to smooth out the straight rectangular edges. To ...
Magenta's user avatar
  • 1,362
26 votes
Accepted

Converting "0xUsernames"

05AB1E, 4 bytes D1ìH Explanation ...
Osable's user avatar
  • 1,348
25 votes

Write Moby Dick, approximately

C++, score: 2*132 + 865821 = 866085 Thanks to @Quentin for saving 217 bytes! ...
Steadybox's user avatar
  • 16.5k
23 votes

Reverse Zip Bomb

JPEG (4:4:4 Chroma subsampling), ~1584.35 Asking Redwolf about what the input file type for a PNG is, we hear that it's Any file you can get an implementation of a PNG converting program to accept. ...
Ethan Chapman's user avatar
22 votes

Write Moby Dick, approximately

Python, 2*516 + 521122 = 522154 Algorithm: Yet another python submission, this algorithm calculates the most likely next letter looking at sequences of length 1,...,l. The sum of probabilities is ...
user2699's user avatar
  • 648
20 votes

Paint Starry Night, objectively, in 1kB of code

Python 2, 5098.24 5080.04 4869.15 4852.87 4755.88589004 No built-in decompression used! Just PIL's resize utility and a manually-decoded 16-color image. Therefore it should be eligible for the bounty....
nneonneo's user avatar
  • 12.3k
19 votes

Converting "0xUsernames"

JavaScript (ES6), 15 bytes s=>'0x1'+s-0||s How it works '0x1'+s converts the input into a literal hexadecimal string with ...
ETHproductions's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible