diff options
author | Anthony Wang | 2023-02-15 21:31:39 +0000 |
---|---|---|
committer | Anthony Wang | 2023-02-15 21:31:39 +0000 |
commit | 494de8e432e4e13f92800600467057c533b6bdd4 (patch) | |
tree | 87b194f4a4fb263d01c20c3fc6f4b5142510cb34 | |
parent | 53c52df052c209c9bc1cadfe7f0bc04b1db263f7 (diff) |
Add note about infinite Flip programs for Turing completeness
-rw-r--r-- | README.md | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -34,6 +34,8 @@ We think you'll agree that the first version is way more aesthetically pleasing If you haven't figured it out yet, the Flip program above is [NAND](https://en.wikipedia.org/wiki/NAND_logic#Making_other_gates_by_using_NAND_gates)! Currently, the final line outputs 0, but remove either of the first two lines, and the final output becomes 1. This makes Flip (drumroll please)... Turing complete! +There's only one catch. Since finite Flip programs are guaranteed to terminate, Turing completeness requires Flip programs to possibly be infinitely long. Good luck! + Even better, a Flip interpreter can be trivially implemented in your favorite programming language. See [Flipper](flipper.py) for the official reference implementation written in Python. So if you're ever feeling down about how horrible today's modern programming languages are, try writing some Flip to flip your day around! |