aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2023-02-15 21:31:39 +0000
committerAnthony Wang2023-02-15 21:31:39 +0000
commit494de8e432e4e13f92800600467057c533b6bdd4 (patch)
tree87b194f4a4fb263d01c20c3fc6f4b5142510cb34
parent53c52df052c209c9bc1cadfe7f0bc04b1db263f7 (diff)
Add note about infinite Flip programs for Turing completeness
-rw-r--r--README.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md
index 0220e87..9aed280 100644
--- a/README.md
+++ b/README.md
@@ -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!