Skip to main content
Share Your Experience: Take the 2024 Developer Survey
83 votes

Reversed language name

PHP, 3 bytes PHP Try it online! It looks like it outputs the language name, but it's actually the letters in reversed order.
Stewie Griffin's user avatar
73 votes

Make an error quine!

Windows .EXE, 248 bytes ...
MD XF's user avatar
  • 13.9k
50 votes
Accepted

Can you give me half? (No digits)

Jelly, 177 bytes ...
hyper-neutrino's user avatar
  • 42.4k
49 votes

Write a Programming language of Unknown Completeness

Legendre This language is only Turing-complete if and only if Legendre's conjecture is false, i.e. there exists a integer n > 0 such that there are no primes between n^2 and (n+1)^2. This language ...
ivzem's user avatar
  • 1,309
34 votes

Confound my attempts to solve the halting problem

brainfuck, 6013 4877 4376 bytes Edit: -1136 bytes. Switched to a better way of generating the data for the quine Edit2: -501 bytes. Revisited my self-interpreter and cut it down a couple of hundred ...
Jo King's user avatar
  • 47.2k
32 votes
Accepted

Print a Variable's Name

Java ...
Poke's user avatar
  • 3,185
31 votes

Computer Generated Cracked Soil

Mathematica A Voronoi diagram looks like this drawing, from Wikipedia, showing 19 cells, each containing a single seed point. A cell consists of the subregion of points which the respective ...
DavidC's user avatar
  • 25.3k
31 votes

8 ought to become Infinity

Python3 Clean Program: This is just a standard countdown while loop. n = 8 while n != 0: n -= 1 print("done") Augmented Program: ...
Maltysen's user avatar
  • 25.7k
28 votes

Can you give me half? (No digits)

Perl 5 ...
Sisyphus's user avatar
  • 14.8k
27 votes

Make a circle illusion animation

Excel (no VBA) ...
qoou's user avatar
  • 721
26 votes

Computer Generated Cracked Soil

Java I used an approach based on recursive Voronoi diagrams. The outputs doesn't look very realistic, but I guess they're okay. Here are some example images (resized to 250x250 so that it doesn't ...
xenia's user avatar
  • 8,142
26 votes

Reversed language name

Cubix Because Cubix doesn't always need to be indecipherable begin; print "Cubix" > output; end@?; Try it online! Watch it running
MickyT's user avatar
  • 12.2k
26 votes

Can you give me half? (No digits)

Raku, 5 bytes π/τ Try it online! The constant Pi divided by Tau is, of course, 1/2. An alternative without the pesky unicode ...
Jo King's user avatar
  • 47.2k
25 votes
Accepted

Design a One Instruction Set Computer!

XOISC This OISC is based on Fokker's X-combinator which is defined as follows: $$ X = \lambda f\ . f\ (\lambda g\ h\ x\ . g\ x\ (h\ x))\ (\lambda a\ b\ c\ . a) $$ If we acknowledge the fact that ...
ბიმო's user avatar
  • 16.8k
24 votes

Reversed language name

R, 8 bytes Took me a while to figure this one out, but I think I've solved it! cat("R")
rturnbull's user avatar
  • 3,879
23 votes

Sort a list and write some English!

Dogescript It's basically English, right? shh oooot! my keyybr oad is brokn. i ne ed neew 1. such fixs much keys keys dose sort wow keys translates to: ...
clamchowder314's user avatar
23 votes

Design a One Instruction Set Computer!

Draw Draw is an OISC acting on a 2D grid, marking squares in a manner similar to the Wang B-machine. However, to keep the language as simple and OISC-y as possible, all instructions (of which there ...
ivzem's user avatar
  • 1,309
23 votes

Make The Finest Magic Code Square

Keg, 4x4 magic square 0601 7.92 3._. 8654 Try it online! Outputs 0601 - 1 7.92 - 7 3._. - 3 8654 - 4 /||||\ 98652 0 I can't believe this actually works! ...
lyxal's user avatar
  • 33.5k
23 votes

Can you give me half? (No digits)

Python 3, 117 bytes Try it online! (lambda n:round(sum(__import__('random').random()for _ in range(n))/n,ord('B')-ord('A')))(ord('~')*ord('~')*ord('~')) This takes ...
Joyal Mathew's user avatar
22 votes

8 ought to become Infinity

Perl Clean for($i=0; $i<8; $i++) { } Augmented *i=*|; for($i=0; $i<8; $i++) { } Ideone.
primo's user avatar
  • 33.3k
22 votes

Can you give me half? (No digits)

Vyxal, 122 bytes H H AAAAA L FFFFF H H A A L F HHHHH AAAAA L FFFFF H H A A L F H H A A LLLLL ½ Try it Online! You ...
lyxal's user avatar
  • 33.5k
21 votes

Make an error quine!

TrumpScript - Making PPCG Great Again (TrumpScript) When trying to run this language on a windows PC, the output is always: ...
Magic Octopus Urn's user avatar
21 votes

8 ought to become Infinity

Python 3 Clean Program: The standard way to do something 8 times in python is: for i in range(8): # Do something pass Augmented Program: However, if ...
FlipTack's user avatar
  • 14.7k
20 votes

Reversed language name

HTML, 11 Bytes &#8238;HTML -4 Bytes hardcoding the unicode character in a html file HTML, 12 Bytes &#x202e;HTML ...
Jörg Hülsermann's user avatar
19 votes

Make your language unusable

Befunge-96 '~h The user's code can follow anywhere after this sequence, as long as these are the first three characters in the source. The ...
James Holderness's user avatar
18 votes

Make your language unusable

/// /\/// The only operation in /// is repeated string substitution, like this: /pattern/replacement/. This code removes ...
acrolith's user avatar
  • 3,888
18 votes

Reversed language name

C++ ...
Steadybox's user avatar
  • 16.5k
18 votes

Make The Finest Magic Code Square

05AB1E, 4x4 5x5 8www4 w3Tαw Uw₃4< XθнĀ· wTwºß Try it online. (Loops over the rows; columns; main diagonal; and main anti-diagonal of the square, and will run it ...
Kevin Cruijssen's user avatar
18 votes

Make The Finest Magic Code Square

Polyglot, 10x10 0 14 5 16 7 18 9 20 10 12 13 This yields the following row/...
Grimmy's user avatar
  • 15.7k

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