Is there a Turing-complete programming language for pen and paper?

4 days ago by ki4jgt to c/asklemmy

Let's say you wanted to use the mind as a calculator, and pen and paper as memory/registers/storage. Is there a programming language that works with pen and paper?

load all comments
zener_diode 3 points 4 days ago

This is actually something that a turing machine is suitable for.

Get youself something to remember what state you're in, write the rules on a sheet of paper and use a stack of paper as the tape, with each piece of paper being one cell.

Turing's idea was to build a mathematical model that mirrored how humans go about large, complex tasks.

Honestly, all of these super basic mathematical models for calculation are fairly well suited to being "run" by hand.

Random-access-machines can be done similarly to turing machines. Write the program down, keep the program counter on one piece of paper, and have a (numbered) stack of paper as memory.

And lambda-calculus is probably the easiest. Just write out the expression, and then write out each reduction step. This is what functional programming languages build on, and with the additional effort of checking types, you could probabl evaluate something like Haskell by hand pretty well.

All of those are turing complete (if you ignore infinite memory).

EDIT: spelling

path: 0 26241803, hotness: undefined, score: 3, children: 0
asklemmy
asklemmy

@lemmy.ml

login for more options
55789
8843
4355

A loosely moderated place to ask open-ended questions

Search asklemmy �*

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

Icon by @Double_A@discuss.tchncs.de

go to feed...