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: Anonymous 2011-03-29 9:36

>>31
actually let's combine bf and defunge together for further lulz
#ifdef v
'''>+++>"egnufeB":v<++++
+[<++++++++>-][v:,_@]<++
.>+++++++[<++++>  ^<+++>
-]<-.>++++[<---->-]<-.>+
++[<+++>-]<-.>++[<++>-]<
+.>+++[<--->-]<+.>++++[<
++++>-]<-.>++++[<---->-]
<--.>+++[<+++>-]<->'''
#endif
#include <stdio.h>
#if 0
'''
#endif
int main(){
  printf("C");
#ifdef __cplusplus
  printf("++");
#endif
  return 0;
}

#if 0
'''
print("Python")
#endif

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