esolang

Convert

Which languages a program converts into, and how well each route holds up. Every number comes from converting programs and running both the original and the converted program.

Convert a program in the Studio

How a program moves between languages

Within the brainfuck family a program keeps its commands and only changes spelling; the same holds for Deadfish. Between families the program goes through Shibboleth's kernel. It is read into kernel code, and that code is either run by the target's own front end or compiled down to brainfuck and spelled from there. Where no route keeps how a program works, the converter can still convert what it prints. That route is output only; the converted program prints the same bytes and reads no input.

exact remap
Same commands, other spelling. Each token is rewritten, and comments stay comments.
via kernel
The program is read into Shibboleth kernel code, which the target runs through its front end.
via back end
The program becomes brainfuck with 8-bit cells (its own commands, or kernel code compiled down), then is spelled in the target. Targets are the brainfuck family, Boolfuck, Brainloller, Self-modifying Brainfuck and two brainfuck dialects.
output only
This converts what the program prints, not how it works. The converter runs the program on one input (none unless you give one) and writes a target program that prints those same bytes and reads no input.
impossible
The target cannot print what the program prints, or cannot print a chosen text at all, for example a cellular automaton that prints only its grid.
unsupported
A route was planned, but none of the programs converted on it.

What was measured

On the measured routes another 7,204 conversions agree until a step budget stops one of the two programs, and 112 differ. Every other pair is output only (2,333,407 pairs) or impossible (608,172 pairs), as the converter plans it. Output only is measured per language, not per pair.

By family

Pairs by family, rows convert from, columns convert to
From \ tobrainfuck family
96 languages, 96 with a generator
Deadfish family
12 languages, 12 with a generator
kernel and front ends
5 languages, 5 with a generator
every other language
1,606 languages, 1,252 with a generator
brainfuck family
96 languages
exact remap 9,120
158,080 of 164,160 measured conversions verified
output only 1,152via kernel 96output only 384
1,664 of 1,728 measured conversions verified
via back end 480output only 119,712impossible 33,984
8,326 of 8,640 measured conversions verified
Deadfish family
12 languages
via back end 1,152
13,632 of 13,824 measured conversions verified
exact remap 132
1,562 of 1,584 measured conversions verified
via kernel 12output only 48
142 of 144 measured conversions verified
via back end 60output only 14,964impossible 4,248
710 of 720 measured conversions verified
kernel and front ends
5 languages
via back end 480
2,404 of 2,688 measured conversions verified
output only 60via kernel 4output only 16
0 of 9 measured conversions verified
via back end 25output only 6,235impossible 1,770
137 of 140 measured conversions verified
every other language
1,606 languages
via back end 96output only 154,080
96 of 576 measured conversions verified
output only 19,272via kernel 1output only 8,029
0 of 6 measured conversions verified
via back end 5output only 2,009,455impossible 568,170
5 of 30 measured conversions verified

Measured routes

The routes that keep how a program works are measured pair by pair. Every test program of the source is converted, and both programs run on the program's input. 11,663 pairs between 119 languages have such a route.

  • exact remap, 9,252 pairs
  • via kernel, 108 pairs
  • via back end, 2,084 pairs
  • output only, 12 pairs
  • impossible, 0 pairs
  • unsupported, 207 pairs
  • dark centre, some programs differ
Each row is a language converted from, each column a language converted to, in family order with a line between families. A cell is coloured by the route its verified conversions took. Click a cell to look it up.
The 119 languages in the matrix, in its order
LanguageFamilyRoutes from itRoutes into itConversions from it verifiedDiffer
brainfuckbrainfuck family1011131,717 of 1,8180
!!Fuckbrainfuck family1011131,818 of 1,8180
!Putitabrainfuck family1011131,616 of 1,8180
▀▄█▌▐░▒▓brainfuck family1011131,717 of 1,8183
⫸fuckbrainfuck family1011131,817 of 1,8180
10 1brainfuck family1011131,818 of 1,8180
200brainfuck family1011131,616 of 1,8180
7-8brainfuck family1011131,620 of 1,8180
A "real" esolangbrainfuck family1011131,717 of 1,8180
AAAbrainfuck family1011131,818 of 1,8180
ALMBARC12YObrainfuck family1011131,818 of 1,8180
Alphuckbrainfuck family1011131,818 of 1,8180
Angelfrickbrainfuck family1011131,717 of 1,8180
Angelfrick--brainfuck family1011131,624 of 1,8180
BaguaFuckbrainfuck family1011131,818 of 1,8180
BF (BestCoder)brainfuck family1011131,716 of 1,8180
Binary Brainfuckbrainfuck family1011131,818 of 1,8180
Binaryfuckbrainfuck family1011131,717 of 1,8180
Blubbrainfuck family1011131,818 of 1,8180
Blub (any case)brainfuck family1011131,818 of 1,8180
Brainfoctalbrainfuck family1011131,717 of 1,8180
brainfuck (v3 front end)brainfuck family1011131,815 of 1,8180
brainfuck 4 humansbrainfuck family1011131,818 of 1,8180
Brainfuck²brainfuck family1011131,717 of 1,8180
brainsymbolbrainfuck family1011131,717 of 1,8180
Broccosproutbrainfuck family1011131,717 of 1,8180
Btjzxgquartfrqifjlvbrainfuck family1011131,818 of 1,8180
C flavored BrainF*ckbrainfuck family1011131,717 of 1,8180
Catsbrainfuck family1011131,717 of 1,8180
Colonoscopybrainfuck family1011131,717 of 1,8180
CompressedFuckbrainfuck family1011131,818 of 1,8180
DetailedFuckbrainfuck family1011131,717 of 1,8180
ExampleFuckbrainfuck family1011131,717 of 1,8180
F! U! C! K! What do we appreciate!brainfuck family1011131,616 of 1,8180
FJbrainfuck family1011131,717 of 1,8180
Fluffle Puffbrainfuck family1011131,818 of 1,8180
fuckbeEsbrainfuck family1011131,818 of 1,8180
Gen Alpha Brainrotbrainfuck family1011131,717 of 1,8180
GERMANbrainfuck family1011131,818 of 1,8180
GibMeRolbrainfuck family1011131,717 of 1,8180
Hanzifuckbrainfuck family1011131,818 of 1,8180
HTPFbrainfuck family1011131,717 of 1,8180
Human's mind have sex with someonebrainfuck family1011131,616 of 1,8180
InternationalFuckbrainfuck family1011131,818 of 1,8180
Jp32brainfuck family1011131,717 of 1,8180
K-on Fuckbrainfuck family1011131,717 of 1,8180
Lazyfuckbrainfuck family1011131,818 of 1,8180
Mariofuckbrainfuck family1011131,817 of 1,8180
Mierdabrainfuck family1011131,717 of 1,8180
Morsefuckbrainfuck family1011131,813 of 1,8180
Nagawooskibrainfuck family1011131,818 of 1,8180
Never Gonna Fuck You Upbrainfuck family1011131,717 of 1,8180
Nope!brainfuck family1011131,818 of 1,8180
NULL-NONE-BFbrainfuck family1011131,717 of 1,8183
Numberfuckbrainfuck family1011131,717 of 1,8180
Nyankbrainfuck family1011131,620 of 1,8180
Omambrainfuck family1011131,717 of 1,8180
ook (v3 front end)brainfuck family1011131,814 of 1,8180
Ook! (any whitespace)brainfuck family1011131,717 of 1,8180
Ook! (version 1)brainfuck family1011131,717 of 1,8180
PenisScriptbrainfuck family1011131,717 of 1,8180
Pep & Chzbrainfuck family1011131,716 of 1,8183
Pewlangbrainfuck family1011131,717 of 1,8180
Pikalangbrainfuck family1011131,616 of 1,8180
Posthumousfuckbrainfuck family1011131,721 of 1,8180
Raylangbrainfuck family1011131,818 of 1,8180
ReverseFuckbrainfuck family1011131,818 of 1,8180
Revolution 9brainfuck family1011131,818 of 1,8180
Roadrunnerbrainfuck family1011131,818 of 1,8180
Scratch is dumbbrainfuck family1011131,818 of 1,8180
SCREAMCODEbrainfuck family1011131,818 of 1,8180
Solbofuckbrainfuck family1011131,717 of 1,8180
Spider Giantbrainfuck family1011131,818 of 1,8180
Ternarybrainfuck family1011131,818 of 1,8180
The Code of the Sevenbrainfuck family1011131,818 of 1,8180
This is not a brainfuck derivativebrainfuck family1011131,717 of 1,8180
THIS IS NOT A BRAINFUCK DERIVATIVEbrainfuck family1011131,717 of 1,8180
Tolbrainfuck family1011131,616 of 1,8180
Tripletbrainfuck family1011131,717 of 1,8180
Typefuckbrainfuck family1011131,818 of 1,8180
UndetailedFuckbrainfuck family1011131,818 of 1,8180
Unifuckbrainfuck family1011131,717 of 1,8183
User:Miui/Pavlovabrainfuck family1011131,818 of 1,8180
UwUbrainfuck family1011131,616 of 1,8180
wepmlriobrainfuck family1011131,717 of 1,8180
WholesomeFuckbrainfuck family1011131,818 of 1,8180
Wordfuckbrainfuck family1011131,717 of 1,8180
ZZZbrainfuck family1011131,616 of 1,8180
Οbrainfuck family1011131,817 of 1,8180
ごぼうとにんじん炒めたやつbrainfuck family1011131,818 of 1,8180
𐎂𐎁𐎀【】ᐊᐅbrainfuck family1011131,716 of 1,8180
只因你太美brainfuck family1011131,818 of 1,8180
程式設計idiomabrainfuck family1011131,721 of 1,8183
脑子爆掉brainfuck family1011131,717 of 1,8180
脑操brainfuck family1011131,818 of 1,8180
锟斤拷烫烫烫fuckbrainfuck family1011131,818 of 1,8180
deadfish (v3 front end)Deadfish family113111,356 of 1,3560
Deadfish (version 1)Deadfish family113111,356 of 1,3560
F!--Deadfish family113111,243 of 1,3560
f()Deadfish family113111,356 of 1,3560
Numbered DeadFishDeadfish family113111,356 of 1,3560
Pește mortDeadfish family113111,356 of 1,3560
SakanaDeadfish family113111,356 of 1,3560
SiyuDeadfish family113111,356 of 1,3560
XKCDDeadfish family113111,356 of 1,3560
ΙΧΘΥΣDeadfish family113111,356 of 1,3560
嘭!哐!叮!呲!咣!Deadfish family113111,243 of 1,3560
菜就多练一一Deadfish family113111,356 of 1,3560
befunge (v3 front end)kernel and front ends10200 of 00
lists (v3 front end)kernel and front ends1020303 of 3060
Shibboleth kernelkernel and front ends1011131,632 of 1,91997
slashes (v3 front end)kernel and front ends10200 of 00
underload (v3 front end)kernel and front ends1020606 of 6120
Boolfuckevery other language01140 of 00
brainfuck (end of input leaves the cell)every other language01140 of 00
brainfuck (no cells left of the start)every other language01140 of 00
Brainloller (letter codels)every other language01140 of 00
Self-modifying Brainfuckevery other language01140 of 00
Underloadevery other language1020101 of 6120

Output only

An output-only conversion depends on its two ends, not on the pair, so it is measured per language. A source counts the test programs that halt on no input and print at most 4,000 bytes; those can be converted by what they print. 1,705 of 1,719 languages have at least one, 12,314 of 16,493 test programs in all.

A target's generator gets 111 texts, the 11 fixed texts every generator is checked on and the 100 outputs most test programs print. Each program it writes runs on the target's own interpreter. Of 1,365 generators, 847 printed every text exactly and 1,363 printed at least one. In all 127,947 of 151,515 tries printed exactly, 23,558 were refused, 3 printed other bytes and 7 did not finish. 354 languages have no generator, and each says why in the pair lookup.

Output only by family
FamilyLanguagesSources coveredTest programs it can convertTargets with a generatorPrinted every textPrinted at least one
brainfuck family96961,671 of 1,728969696
Deadfish family1212142 of 14412012
kernel and front ends5328 of 28555
every other language1,6061,59410,473 of 14,5931,2527461,250
The fixed texts
TextStarts withBytesTest programs that print itPrinted exactlyRefusedOther bytesDid not finish
empty""03,3941,2867900
one byte"A"11561,15920600
Hello, World!"Hello, World!"133861,13323200
printable ASCII" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[" and more9511,07628900
a newline"\n"11171,20216300
byte 0"\u0000"15961,08827700
byte 255"ÿ"113291445100
bytes 128 to 254"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»" and more127090645900
UTF-8 text"é€😀"901,03932600
numbers"0\n72\n1000\n"1001,21315200
100 bytes"~@ ` `@` `````@ `@` ` @@@ @` @``@@ ```@ @` @`` @@`@` @ @@" and more10001,12823700
The 100 outputs most test programs print
The most common outputs, by how many test programs print them
TextStarts withBytesTest programs that print itPrinted exactlyRefusedOther bytesDid not finish
common 1"0"15301,20316200
common 2"\u0001"12541,12024500
common 3"Hello World!"122181,13523000
common 4"0\n"22111,23213300
common 5"Hello, World!\n"141741,18418100
common 6"1"11621,20416100
common 7"Hello, world!"131591,13523000
common 8"2"11261,16619900
common 9"\u0003"11091,12124400
common 10"\u0006"11051,12124400
common 11"\u0005"11021,12124400
common 12"\u0000\u0000"21011,08727800
common 13"\u0019"1971,12224300
common 14"Hello World!\n"13881,18717800
common 15"Hello, world!\n"14761,18318200
common 16"\u0000\u0000\u0000"3561,08727800
common 17"4"1511,16520000
common 18"1\n"2461,23513000
common 19"Hello world!"12411,13523000
common 20"4\n"2371,23213300
common 21"Hello World"11301,13922600
common 22"H"1291,15820700
common 23"3"1271,16420100
common 24"1\n2\nFizz\n4\nBuzz\nFizz\n7\n8\nFizz\nBuzz\n11\nFizz\n13\n14\nFizzBuzz\n16" and more413271,16719602
common 25"00"2261,19117400
common 26"\u0002"1241,12124400
common 27"\u0000\u0000\u0000\u0000\u0000\u0000"6241,08727800
common 28"Hello world!\n"13241,18617900
common 29"\u0000\u0000\u0000\u0000"4231,08727800
common 30"7"1221,16520000
common 31"5"1221,16420100
common 32"Hi"2201,14721800
common 33"hi"2201,15121400
common 34"hello world"11201,14222300
common 35"Hi!"3191,14022500
common 36"HELLO WORLD"11181,14522000
common 37"0 "2181,13822700
common 38"\u0000\u0000\u0000\u0000\u0000"5171,08727800
common 39"!"1171,14522000
common 40"\u0000\n"2171,13922510
common 41"6\n"2171,23213300
common 42"Hello World\n"12161,18817700
common 43"x"1161,15421100
common 44"a"1151,15421100
common 45"Q"1151,16020500
common 46"2\n"2151,23213300
common 47"42"2141,16220300
common 48"16\n"3141,22913600
common 49"Nope."5141,13522901
common 50"0\n0\n"4141,21914600
common 51"\u0000\u0001"2131,08727800
common 52"10"2131,19816700
common 53"321"3121,16220300
common 54"158\n"4121,22913600
common 55"255\n0\n"6121,21614900
common 56"\u0000\u0000\u0000\u0000\u0000\u0000\u0000"7121,08727800
common 57"\u0001\u0000"2121,08627900
common 58"-1"2121,14522000
common 59"hello"5121,14821700
common 60" "1121,14921600
common 61"3\n"2111,23213300
common 62"7\n"2111,23213300
common 63"HI"2111,15620900
common 64"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"11111,08627900
common 65"\u0001\u0001"2101,11824700
common 66"17 "3101,13922600
common 67"54321"5101,16120400
common 68"5 4 3 2 1 "10101,13922600
common 69"\n\n"2101,19117400
common 70"0123456789"10101,15121301
common 71"5\n"2101,23213300
common 72"hi\n"3101,19417001
common 73"5\n4\n3\n2\n1\n"10101,21814700
common 74"Hello world"11101,13922600
common 75"9"1101,16420100
common 76"ඞ\n"4101,09127310
common 77"reject"6101,15021500
common 78"OK"291,15421100
common 79"abc"391,15221300
common 80"cba"391,15221300
common 81"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"891,08727800
common 82"ABCDEFGHIJKLMNOPQRSTUVWXYZ"2691,15021500
common 83"ab"291,15221300
common 84"000"391,19017500
common 85"kiwi\n"591,19317101
common 86"Rube Goldberg"1391,14022500
common 87"b"181,15421100
common 88"3.5\n"481,19517000
common 89"[1, 2, 3, 4, 5]\n"1681,18018500
common 90"ABC"381,15521000
common 91"Y"181,15720800
common 92"Permission denied\n"1881,18617801
common 93"\u0004"171,12124400
common 94"9\n"271,23213300
common 95"AB"271,15521000
common 96"ÿÿ"2791245300
common 97"-1\n"371,20615900
common 98"cba\n"471,19517000
common 99"3\n2\n1\n"671,21914600
common 100"6"171,16320110
6 generators printed other bytes or did not finish on some text
LanguagePrinted exactlyOther bytesDid not finishFirst text it got wrong
DOBELA (dobcon)110 of 11101“"1\n2\nFizz\n4\nBuzz\nFizz\n7\n8\nFizz\n"”, the program stops by steps (6614 characters)
GolfScratch23 of 11110“"ඞ\n"”, prints "ඞ\n" (7 bytes), not "ඞ\n"
Grapheme24 of 11111“"0123456789"”, the program stops by error: G needs a string or a function (40 characters)
Leafuck107 of 11101“"Nope."”, the program stops by error: '.' without argument at the end of file (10 characters)
noCap (subset)31 of 11110“"\u0000\n"”, prints "\\u0000\n" (7 bytes), not "\u0000\n"
Oasis (subset)29 of 11104“"1\n2\nFizz\n4\nBuzz\nFizz\n7\n8\nFizz\n"”, the program stops by not in this port: F (414 characters)

Look up a pair

Built by node tools/convert/page.js from the graph made by node tools/convert/graph.js in 1,344 seconds.