Tag Info

126

90. Brainfuck, uses no " ++++ ++++ [>+>++>+++>++++>+ ++++>++++++>+++++++ >+++++++ +>++++++ +++>++++++++++>+ ++ ++ ++++++>++++ +++ +++ ++> +++ +++ ++++ +++>++++++++ +++ +++ >++ +++ ++++ ++ ++ ++ >+++ ++++ ...

96

Unary, N=1 4132527913354820031118363262102424570092493175835499123283719 (4.1325279e+60) bytes Source code in unary is obviously too large to post here. It can be easily reproduced by typing out (or generating) a file filled with "0"s of the same length as the number of bytes above. Here is the binary representation: ...

75

51. Malbolge (uses no E) (Newlines are just for clarification and not part of the source.) bar:?!!6l:jVVw5ut2rqML:nllHFFhDfAcR?Put:rqZYtm2qCRhPPNNihgf%qFF!!2AA??TSwutOTr55PImGFKJCBfFc cbONq9!!6Y4W8hCf4ttOONL:JlHGFFDgfAS?bu::rw6ut4!2jinm?Ojcu:rqc5!lAj??gfw::tr64nn!ljjihffw? ct:?!!6l:jihwfut?rrL:nlljj!hffTc!?u::rw6ut4!2jinm?Ojcu:rqc5!lAj??gfw::...

58

I've improved my method by adding actual compression. It now operates by iteratively doing the following: Convert the image to YUV Downsize the image preserving the aspect ratio (if the image is color, the chroma is sampled at 1/3 the width & height of the luminance) Reduce the bit depth to 4 bits per sample Apply median prediction to the image, making ...

52

Answer 1 - Python print("Hello World!") There's got to be dozens of languages this could morph into.

51

Brainfuck, N=2 ----------------------------------------------------------------------------------------------------------------------------------.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.--------------------------...

47

Perl, 32 chars no hiding symbols in comments, string literals, or regular expressions. uses all symbols precisely once. $<@"^[(\{_},)]/+-~%'?&|:!*.=>;# Description i have tried to indicate operator precedence with indentation: the right-most expressions are evaluated before those to their left$ # scalar variable $named ` ... 46 Answer 59 - HTML What? No HTML ?? <echo o[.]c;cat<<;#&&alert" ">Hello World!</vsh Distance from Answer 58 : 6 Voodoo Magic ? Nah. Here is how it works: You can have any arbitrary tag in HTML, so the first part <echo o[.]c;cat<<;#&&alert" "> is an echo tag, which now becomes a blank tag with no CSS ... 39 Answer 95 - C //[]([.]c; main() { puts("Hello World!");} //#[;]#bye;dnl</> Distance 7 from answer 94 38 Haskell 300 bytes This code should have no trailing newline. The function m1 takes the input as a Char and returns the answer as a Char. f1 (l1 :n1 :p1 :y1 :l2 :n2 :p2 :y2 :r3 )x1 |y1 >p1 =b1 (x1 )y2 (f1 (r3 )x1 )y1 (n1 )n2 |p2 <p1 =b1 (x1 )y1 (n1 )p2 (f1 (p2 :y2 :r3 )x1 )l2 |p2 >p1 =b1 (x1 )p1 (l2 )l1 (n2 )n1 ;b1 (x1 )s1 (r1 )b1 (r2 )r3 |x1 <... 37 Go Works by dividing the image into regions recursively. I try to divide regions with high information content, and pick the dividing line to maximize the difference in color between the two regions. Each division is encoded using a few bits to encode the dividing line. Each leaf region is encoded as a single color. 4vN!IF$+fP0~\}:0d4a's%-~@[Q(qSd<&...

37

10. x86 Machine Code, uses no 9 When I realized that the remaining characters included the opcodes for 'Dec BX' and 'Push BX', I concluded that a x86 program was still possible. Link for the code and .com file The code looks like a much longer version of this: 44444444444444444444444444444444448444444444444444444444444444444444444444444444 ...

36

Python Encoding requires numpy, SciPy and scikit-image. Decoding requires only PIL. This is a method based on superpixel interpolation. To begin, each image is divided into 70 similar sized regions of similar color. For example, the landscape picture is divided in the following manner: The centroid of each region is located (to the nearest raster point on ...

34

GolfScript, 10 bytes !:{)::(}:! Try it online with Web Golfscript: N = 0, N = 1, N = 2, N = 3, N = 41 Web GolfScript has a 1024 character limit, but the Ruby interpreter handles N = 32767 perfectly: $curl -Ss http://www.golfscript.com/golfscript/golfscript.rb > golfscript.rb$ echo '"!:{):"32768*":(}:!"32768*' | ruby golfscript.rb > mirror-level-...

33

Perl - 11 10 characters. y/A-Z/a-z/ y/// is same as tr///! In action: % perl -pe 'y/A-Z/a-z/' <<< 'Hello @ WORLD !' hello @ world !

33

Unary, N=1 14680262330376163203871465704220787333741951071 bytes Uses only the '0' byte (ASCII 49). Golfed about 4.13253e+60 bytes out of @Comintern's solution. Credit still to him :) In the original Brainfuck: ++++++++[->++++<]> [>+>+++<<-]>>- [-<.+<+>>]<< [>-.<-]

30

Answer 85 - GDB (GNU Debugger) #[]([.]c;main()&alert" " echo Hello World! #[;]:;#bye;dnl</vsh> I think this can also be qualified as a programming language. It has even if and while commands. echo is another built in command in GDB. To run this code: gdb --batch -x file Distance: 7 from answer 84.

30

///, 7 lines, 22 bytes / //Hello , Wor l d ! A rare chance for /// to be competitive (well as long as no one starts with Unary and Lenguage...). The code first encounters a /, and parses the / // as a substitution instruction which removes all newlines from the remainder of the program. Afterwards, the program merely reads Hello, World! which is ...

29

Answer 22 - LOLCODE VISIBLE "Hello World!" Distance : 6

29

Deadfish, 18 This was actually the first language I tried before I considered infix operators. I'm posting it now for the sheer hilarity of the idea that Deadfish could be useful for something. iii ios sii For those who don't know Deadfish, i is increment, s is square and o is output, with the accumulator starting at 0 (there's also a 4th instruction d ...

29

Ook!, 95 programs, 19992 14066 bytes Ook!Ook!Ook!Ook?Ook.Ook?Ook.Ook.Ook?Ook.Ook!Ook!Ook!Ook!Ook!Ook!Ook!Ook!Ook!Ook!Ook?Ook!Ook.Ook?Ook!Ook!Ook!Ook!Ook!Ook!Ook!Ook.NJ_.NJ_.NJ_.NJ}.NJl.NJ}.NJl.NJl.NJ}.NJl.NJ_.NJ_.NJ_.NJ_.NJ_.NJ_.NJ_.NJ_.NJ_.NJ_.NJ}.NJ_.NJl.NJ}.NJ_.NJl.NJ_.NJl-)>l-)>l-)>l-)\l-)Kl-)\l-)Kl-)Kl-)\l-)Kl-)>l-)>l-)>l-)>l-)>...

28

Answer 151 - Java //# class jux{public static void main(String[] h){System.out.println(//;\#//Hello*}}print, "Hello World!");}}//print"putsx;//-##[;]#bye</>%" Distance from Answer 150 : 7 Try it here (Thanks to Christopher Creutzig for being such a sport :) )

27

Golfscript, N <- [5,7..] . . . . .. . .# ],9\- Fully unrolled: ],9\-# . . . . . ... Explanation: . (multiple times) - duplicate the input ] - collect the stack into a single array , - take its length 9\- - subtract it from 9 # - line comment Whitespace is a NOP, but any other NOP would have worked just as well. Fully rolled up, it uses ...

27

Answer 10 - GNU dc [puts "\x48][Hello World!]p Distance: 6

27

Z80 Machine Code, 8 6 bytes* <8ww8> * Assumes certain conditions by entering from Amstrad BASIC < INC A // A=A+1 8w JR C, #77 ## C is unset unless A has overflowed, does nothing w LD (HL), A // Saves A to memory location in HL (randomly initialised) 8> JR C, #3E ## C is still unset, does nothing A is initially 0 when ...

27

PARI/GP - 24 1%1 8 2+3 PARI/GP ignores spaces between digits, so that 1 8 2, for example is treated as 182. The same could work for perl by replacing the spaces with underscores. I haven't exhausted the entire search space, so there may be better candidates. A program can be fed to gp as gp -q -f program.gp, or interactively in the repl. Output 1%1 8 2+...

25

Python REPL and many more, 22 23 6+7 *5% 6%4 Key observation: If you colour the grid like a checkerboard, the path alternates grid colours as it goes and starts and ends on the same colour. Still brute forcing for better. Trying with +*% (and even ** for languages where ^ is exponentiation) didn't turn up anything better, unfortunately. I also tried ...

25

Python 2, 1075 1065 1043 1040 1039 bytes Each program has the form print'\<octal char code>', except: ' → print"\47" 0 through 8 → print~-<N+1> 9 → print-~8 \ → print'%c'%92 i → exec'pr\151nt"\151"' n → exec'pri\156t"\156"' p → exec'\160rint"\160"' r → exec'p\162int"\162"' t → exec'prin\164"\164"' For reference and ease of testing, here's the ...

24

Answer 4 - Pyth "Hello World! This answer is a distance of 6 from the previous answer. Pyth strings do not need a closing quote if they are at the end of a line.

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