What languages are used in Stack Overflow's 404 polygot?
It is C
and brainf**k
. They both print 404
.
Line 4 with the print(202*2)
is valid in any number of scripting languages like Perl, Ruby, ECMAScript (provided a suitable implementation of a print
function) and probably Python.
Line 2 is there to make line 4 valid in C and Objective-C, maybe also C++ and Objective-C++.
Line 3 contains some Brainfuck, but there seems to be something else there.
I have no idea what line 1 with the v
is for. Why not just call putchar
directly in line 2? So, I suspect that there's another language that is somehow made valid through this line. (At first I thought about Whitespace, but there's not enough whitespace in there to be a valid Whitespace program.)
And line 5 obviously also contains some code in some highly compressed language. Maybe something in the APL family (J, K, ...) or Golfscript?