Palandrome-ish code

1

Create a program that does the same thing forwards and backwards, in different languages. “Different languages” does not include different versions of the same language.

Challenge

This program can take any input and write anything to stdout and stderr. However, the program must output exactly the same things for the same input when run backwards in the other language. This explicitly includes anything written to stderr while the program is running, including errors. The length of the output from stdout and stderr must sum to at least 5. The minimum program length is 2 bytes.

  • This is a , so the answer with the most votes wins.
  • Comments are allowed, however the commented text must take up less than ¼ of the total program.

J F

Posted 2015-09-25T00:04:21.657

Reputation: 281

Question was closed 2015-09-25T00:33:48.617

3This is too broad because there is no real objective for the code, or criteria for judging one program better than another. – feersum – 2015-09-25T00:06:55.310

2Also, changing it to code-golf is no good because 1 would be valid in numerous languages. BTW, "derivative language" is not well defined at all. – Calvin's Hobbies – 2015-09-25T00:10:52.093

@Calvin'sHobbies should I remove that? – J F – 2015-09-25T00:11:43.353

@ETHproductions The challenge is making it do the same thing. I have also removed the derivative languages stipulation. – J F – 2015-09-25T10:36:54.400

Would comments and programs that crash with errors be allowed? – ASCIIThenANSI – 2015-09-25T13:53:37.510

@ASCIIThenANSI Yes and Yes. However, the errors must be exactly the same. – J F – 2015-09-26T22:36:20.203

Answers

4

BF + Foo

You saw it coming

-[------->+<]>-.-[->+++++<]>++.+++++++..+++."olleH"

Downgoat

Posted 2015-09-25T00:04:21.657

Reputation: 27 116