I was willing to give the benefit of the doubt until the part where Shaw claims Python 3 is not Turing-complete. I can't understand how he could say something so demonstrably false.
It's called Brainfuck because it's seemingly impossible to read by humans, which is an important job for real programming languages. From the perspective of the computer/interpreter, it's much easier to understand (and therefore write an interpreter for) as it only has eight operations. It's practically just assembler code without all the semi-English names given to the commands for readability.
Also, it's implementer-friendly: parsing and tokenisation are trivial, as is implementing the interpreter. I wrote a 260-byte-long one in ARM assembly language back in the '90s just for fun.
Coding anything in Brainfuck, well, that's another matter!
A friend of mine wrote a converter that converts Brainfuck to one line of Python code to prove Python one-liners are turing complete: http://www.ricbit.com/code/turing.py
It's actually probably one of the simpler ways to do so. Brainfuck's esoteric-ness comes from its being hard to read by human programmers, which is important in a programming language. But the structure of the language itself (eight commands gets you everywhere) is a testament to the fact that computers in this universe are made of complexity that can emerge entirely from simple rules.
You would also have to prove that your implementation matches the brain fuck semantics which have been proven Turing complete, in order for it to constitute an actual mathematical proof. This well not be easy. I don't even think anybody has given Python formal semantics.
Luckily it does not matter, because you can write usable programs in Python which is the thing that actually matters. Actually it would be cooler if it turned out that Python was not Turing complete, because that would mean we could potentially solve the halting problem for Python programs (along with a bunch of other cool stuff) which would be really handy.
actually turing-completeness is so easy to accidentally achieve that whole type systems have to be specially designed to avoid making them turing-complete, e.g. C++ templates vs Hindley-Milner.
Yeah, intuitively python is obviously Turing complete because you can write algorithms in it. This is basically the Curch-Turing thesis, but it is not a formal proof.
I see a rant of a salty person who can't use python2 with python3 vm. At this point they divulged too much to get any backward compatibility -- it's time to move on if you want latest PEPs
What is it about the Python 3 VM that would prevent someone from implementing a Python2 interpreter? Unless he's arguing that because Python 2 and 3 have different syntax then Python 3 isn't Turing Complete, which is clearly ridiculous.
He's completely lost his fucking marbles. I don't think he makes a single correct point the entire article. The man is either senile, maliciously lying, on drugs, or flatly stupid/insane.
I suggest the second as he wants to sell more books. Heck, in over 40 years in electrical and electronic engineering and computing I cannot recall such an abysmal article.
I've never heard much about this Zed guy but after reading that paragraph about Python3 not being Turing complete it appears quite obvious that he's either a very prominent troll or has no idea what Turing completeness even means.
it’s complete and utter nonsense, on a platform aimed at people who can’t yet recognize it as nonsense.
Eevee got the truth of it right there, nothing less.
That bit is clearly facetious. He's saying that the devs claim it's impossible to run python 2 code from python 3. Now, the only way that could be literally true is if python 3 were not Turing complete. Therefore, the python devs are claiming python 3 is not Turing complete. This is Zed's way of calling them liars.
Of course the devs' real reason is that it's hard, not mathematically impossible. But if they were claiming it were literally impossible, Zed would have a point. It's not impossible, just hard, and the debate is really about whether it is hard enough or useful enough to have been attempted.
223
u/Workaphobia Nov 24 '16
I was willing to give the benefit of the doubt until the part where Shaw claims Python 3 is not Turing-complete. I can't understand how he could say something so demonstrably false.