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:07

>>28
well if it is not cheating

#ifdef v
'''    >"egnufeB":v
              [v:,_@]
               >  ^
'''
#endif
#define bf ">++++++++[<++++++++>-]<++.>+++++++[<+++++++>-]<-.>++++[<---->-]<-.>+++[<+++>-]<-.>++[<++>-]<+.>+++[<--->-]<+.>++++[<++++>-]<-.>++++[<---->-]<--.>+++[<+++>-]<->"

#include <stdio.h>
#ifdef notdefined
'''
#endif
int main(){
  printf("C");
#ifdef __cplusplus
  printf("++");
#endif
  return 0;
}

#ifdef notdefined
'''
print("Python")
#endif

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