Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

◙ /prog/ Challenge [Vol. λfx.f (f x)] ◙

Name: Anonymous 2011-03-27 4:19

THE CHALLENGE: Write a program that outputs the name of the programming language it is executed/compiled in.

HOWEVER: You program must be a polyglot in as much languages as possible: for example, when run as a C program it prints "C", as a Python script it prints "Python", etc.

The deadline is 04/04/2011 00:00 UTC. The winner is the program valid in the most programming languages.

(When programs tie, their lengths in bytes decide who wins.)

Name: 1 2011-03-29 8:00

Great submissions so far! Let's tally up the scores so far.

>>21: 4 (C++, Ruby, Brainfuck, Lisp)
>>26: 4 (Brainfuck, C, C++, Python)
>>18: 3 (C, Haskell, Clojure)
>>6: 2 (C, Befunge)
>>10: 2 (PHP, Python)
>>3: 1 (Haskell)

Some others were disqualified: 'lisp relies on the REPL, and is not a full program. HTML isn't a programming language, you dolts.

Oh, and a hint: you can easily embed Befunge code into any polyglot. See >>6.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List