Terence Eden. He has a beard and is smiling.

Terence Eden’s Blog

Theme Switcher:

Code Palindromes

· 150 words


Binary code displayed on a screen.

An idle thought on a long weekend. Is it possible to create an executable binary which is a palindrome? It's trivial to create a palindromic program in, say, Python: print("hello") # )"olleh"(tnirp Save that as test.py and then run cat test.py | rev | python3 and it'll work. But that's boring! You could do the same by reversing the bits, rather than the characters: …