r/computerscience • u/Haghiri75 Data Scientist • Feb 14 '26
What does it take to make every machine "Turing Complete"?
Well, it's a weird question and I know that. I was thinking about examples we usually encounter on the topic like Minecraft, which makes sense. On Minecraft there is unlimited resources (and if you do not care about your life, time) and you pretty much can build anything in that game so I'm not surprised to see the name of the game in articles or videos about the subject of Turing Complete machines.
So language models/image generation models (well, conditional ones, not unconditional ones like GANs) are basically the same. The model has infinite resources (theoritically, but in action they're very limited) and by "prompting" as long as we want (again, limitations exist) to do pretty much anything possible.
So the final question is what does it actually take to make a Turing complete machine?
28
u/Cornflakes_91 Feb 14 '26
in practice, if you can have any memory and any universal logic gate (like NAND) yer there :V
64
u/MattiDragon Feb 14 '26
For something to be Turing Complete it needs to, by definition, be about to emulate any Turing Machine with an infinite tape.
11
u/thesnootbooper9000 Feb 14 '26
Unbounded iteration or recursion, plus some kind of conditional statement, usually end up being enough in practice.
6
u/amarao_san Feb 14 '26
There is a bit of difference between theoretical and practical turing machine. Theoretical (with infinite numbers) is enough to have:
It's called Minsky 2-counter machine.
For practical needs, you need 'WHILE' operator added to a small 'calculator' (If/then/else), which is ebpf-friendly.
Adding unbounded WHILE make it Turing complete (and not ebpf-friendly).
3
u/DTux5249 Feb 14 '26 edited Feb 14 '26
TLDR: Turing complete means "can be implemented with a turing machine of infinite tape length." A turing machine is a machine that manipulates symbols on a strip of tape according to a table of rules.
More formallly, a one-tape turing machine has 7 requirements that can be thought of in 3 parts:
There are variations and stipulations - like, instead of an infinite tape length, you could instead have a machine that extends its current tape when it runs out of room - but that's the gist. If your machine can mimic the behaviour of the machine above, and not run out of memory half-way through, it's "turing complete", meaning it can solve any computation problem.
Notice: Not all computers are turing complete. Most have limited memory without the ability to extend their memories indefinitely. This isn't about being a computer - it's just about being able to theoretically solve any problem.
2
u/BRH0208 Feb 14 '26
So there are problems that a Turing machine can solve. A Turing machine is a machine with an infinite tape and a head that moves along the tape. Based on its internal state and the content of the tape below the head, it can edit the tape, change state, and move the head.
This happened to be extremely powerful. And if you can prove that a given machine can solve any problem that a Turing machine can, then they machine is considered “Turing complete”.
For example, basic Regex is not Turing complete, and can’t do things like parenthesis matching(ensuring every opening parenthesis has a closing parenthesis)).
Over time, a lot of things have been reduced to Turing complete. So if you have NAND gates(not + and), plus memory it’s Turing complete. Technically Turing complete requires infinite memory, but in practice so long as you have an arbitrary amount of memory it’s okay.
For a simple example, in Minecraft you can make various logic gates, and store signals. You could, as some have, simulate a machine with an arbitrary amount of memory. Therefor we say Minecraft redstone is “Turing complete”
2
u/TapWaterDev Feb 17 '26
Not a lot 😂 given x86's mov instruction is Turing Complete
1
u/CadenVanV Feb 14 '26
The language brainfuck is basically all the simplest functions needed to be Turing complete. If you can run those 8 commands you’re good.
1
u/severoon Feb 14 '26
A system needs three functions to be Turing complete: conditional branching, arbitrary memory, and looping or recursion.
In practice, no real system is actually Turing complete because of the infinite memory requirement. However, real systems are usually referred to as Turing complete if they are "Turing complete enough," meaning that their logical design does not impose an arbitrary limit on memory. That is, theoretically, you could keep expanding the memory available to the system as needed without changing any "fundamental" part of the design.
But then this gets into discussions like what does "fundamental" mean? If you think a 32-bit machine is "fundamentally" 32 bits, then it's not Turing complete enough to qualify. If you're of the opinion that a 64-bit machine is just an extension of a 32-bit system and didn't change anything "fundamental" about the 32-bit system, then both are Turing complete enough.
Minimum models of computation that are Turing complete include the universal Turing machine (obviously), lambda calculus, Subleq (the single instruction set computer), and the Rule 110 1D cellular automata. It's shocking how little is needed to define a system that can do arbitrarily computation, and learning about this cuts right to the quick of the fundamentals of computer science.
1
u/OneMeterWonder Feb 14 '26
A machine is Turing complete if it can simulate any Turing machine. By the Church-Turing thesis, this means that it can (somehow) calculate the values of any computable function. What counts as a computable function is a little technical, but here’s one definition:
A computable function f is a mapping that
So, as long as the architecture you’re using as a computing device is capable of autonomously handling these types of computations given an input, then it counts as Turing complete.
Realistically, nothing is actually Turing complete since Turing machines require infinite memory. Real computers are more like something called an RA machine.
1
u/psychophysicist Feb 14 '26
No machine is Turing complete because no machine has infinite memory.
1
u/tangentstorm Feb 15 '26
mutable state, sequenced operations, conditionals (if/then), and backwards jumps (loops). that's all.
1
u/Relative_Bird484 Feb 15 '26
You simply can’t, as no real machine has unlimited resources! This holds even for Minecraft 🥲
Memory space will always be limited. You may assume an ridiculous upper bound, such as the number of atoms in the universe, but there is a limit. A Touring machine needs an unlimited tape,
Time will always be limited. Real machines decay and die, there is physics going on. We can again assume a ridiculously large available time span, such as until our sun collapses in about 12 billion years, but life time is bounded.
In fact, every existing computer is just a finite state machine.
0
u/huuaaang Feb 14 '26
Turing complete doesn’t really mean much in practical terms. It’s not a useful metric.
6
u/[deleted] Feb 14 '26
[removed] — view removed comment