Strike
09-24-2002, 03:01 PM
Now there are plenty of competitions still to be finished for you all, but if you want another one to choose from, here you have it.
Write a polyglot program.
For those of you who don't know what that means, it means that the same code does the same stuff in two (or more) different programming languages. The trick is to find two programming languages with similar syntax (though I'd say using two dialects of the same language is pretty much cheating, personally). For some inspiration here is a link to some examples: http://www.nyx.net/~gthompso/poly/polyglot.htm
The most "poly" of those polyglots is one that does "Hello world" in 7 languages.
NOTE: this is a hard challenge, and I don't really expect many (if any) responses, so feel free to discuss your thought processes/approaches here if you like. Coming up with a new polyglot program that isn't a mere derivative of existing ones is kind of a feat in and of itself.
Write a polyglot program.
For those of you who don't know what that means, it means that the same code does the same stuff in two (or more) different programming languages. The trick is to find two programming languages with similar syntax (though I'd say using two dialects of the same language is pretty much cheating, personally). For some inspiration here is a link to some examples: http://www.nyx.net/~gthompso/poly/polyglot.htm
The most "poly" of those polyglots is one that does "Hello world" in 7 languages.
NOTE: this is a hard challenge, and I don't really expect many (if any) responses, so feel free to discuss your thought processes/approaches here if you like. Coming up with a new polyglot program that isn't a mere derivative of existing ones is kind of a feat in and of itself.