Polyglot A program in eight languages

How to use Polyglot It's pretty simple: Download the source and rename it to polyglot. [ cob | pas | f77 | c | ps | sh | com | pl ] Compile and run with your favorite compiler and operating system. Notes: We have attempted to use only standard language features. Without the -traditional flag, gcc will issue a warning. When transfering from Linux/Unix to MS-DOS/Windows make sure that a LF is correctly translated into a CR/LF. Keep the blank lines at the start of the program. They are important.

10th Anniversary Edition Polyglot turned 10 years old in February 2001. Kev thought it needed an update, so he added perl, and fixed the x86 machine language to work with Win32. We felt pretty smug about getting another language in there, so we thought we'd submit it to the The International Obfuscated C Code Contest. Months later, when the results were finally announced, we failed to get a mention.

History A long time ago (1990) some people were talking about polyglot programs in rec.puzzles. A couple of programs were posted that worked in two or three languages, and we thought that was pretty cool. We thought we'd have a go, and wrote our own. It was fun. Some time later, we posted it back to the newsgroup. And later still, we put up this web page (http://ideology.com.au/polyglot) .