polyglot - What languages are used in 's 404 polygot?
currently, when user here gets 404, see following image:
polygot-404.png http://sstatic.net/stackoverflow/img/polyglot-404.png
which represents text:
# define v putchar # define print(x) main(){v(4+v(v(52)-4));return 0;}/* #>+++++++4+[>++++++<-]> ++++.----.++++.*/ print(202*2);exit(); #define/*>.@*/exit()
this looks suspiciously polyglottish. languages interesting in?
side thought: me, or did find bug in prettify?
line 4 print(202*2)
valid in number of scripting languages perl, ruby, ecmascript (provided suitable implementation of print
function) , python.
line 2 there make line 4 valid in c , objective-c, maybe c++ , objective-c++.
line 3 contains brainfuck, there seems else there.
i have no idea line 1 v
for. why not call putchar
directly in line 2? so, suspect there's language somehow made valid through line. (at first thought whitespace, there's not enough whitespace in there valid whitespace program.)
and line 5 contains code in highly compressed language. maybe in apl family (j, k, ...) or golfscript?
Comments
Post a Comment