What are practical guidelines for evaluating a language's “Turing Completeness”?

前端 未结 13 2260
礼貌的吻别
礼貌的吻别 2020-12-22 19:22

I\'ve read \"what-is-turing-complete\" and the wikipedia page, but I\'m less interested in a formal proof than in the practical implications of being Turing Complete.

<
13条回答
  •  借酒劲吻你
    2020-12-22 19:48

    Brainfuck is Turing complete, and has only loop structures and memory incrementation/decrementation so this is enough.

    On the other hand there is no way to modify any value in the lambda calculus, but it is Turing complete, so it it is clearly possible to do it without mutable memory.

    Most likely you program has nothing to do with the lambda calculus though, so for a practical answer the minimum must be

    1. A way to write to a variable
    2. A way to read to a variable
    3. A form of conditional goto (if statement, while loop, etc)

提交回复
热议问题