The article (the one being rebutted) is so retarded it's not even worth rebutting. If you haven't read it, just look at this section
In computer science a fundamental law is that if I have one Turing Machine I can build any other Turing Machine. If I have COBOL then I can bootstrap a compiler for FORTRAN (as disgusting as that might be). If I have FORTH, then I can build an interpreter for Ruby. This also applies to bytecodes for CPUs. If I have a Turing Complete bytecode then I can create a compiler for any language. The rule then can be extended even further to say that if I cannot create another Turing Machine in your language, then your language cannot be Turing Complete. If I can't use your language to write a compiler or interpreter for any other language then your language is not Turing Complete.
Currently you cannot run Python 2 inside the Python 3 virtual machine. Since I cannot, that means Python 3 is not Turing Complete and should not be used by anyone.
What the actual fuck? I'm pretty sure you could get a layman to read the wikipedia page for turing machines and he wouldn't make such a misunderstanding. Does he have a CS degree? What did he learn in it!?
If I can't use your language to write a compiler or interpreter for any other language then your language is not Turing Complete.
If one can't write an interpreter for any other language, then it's not Turing Complete.
Currently you cannot run Python 2 inside the Python 3 virtual machine. Since I cannot, that means Python 3 is not Turing Complete and should not be used by anyone.
Therefore since nobody has written an interpreter for this language, it's not Turing Complete.
Maybe somebody should explain to them that "can't" isn't the same as "hasn't". I've never died, yet I'm pretty confident that I'm not immortal.
This would be like a turing machine with a turing machine oracle.. which because turing machines can emulate turing machines is exactly as powerful as a turing machine.
I'm not sure if you are strictly escaping the environment (I could be wrong), I just tried this and after quitting the nested instance of python I was returned to the outer python prompt. It would leave me to believe that it was python3 making a system call to run the python2 interpreter? Then on completing the system call (exiting the interpreter) control was returned to python3.
I'm not sure what you mean by escaping the environment though, in the theoretical Turing machine you don't really have anything "outside" the machine to escape into.
I think he means that the code is importing outside code to be run. It's not running a python3 implementation of python2, it's python3 running a C implementation of python2 (the system library).
For it to prove that python3 is turing complete (which it is) it should be implementing a python2 interpreter in python3 code and then run that (which, again, is 100% possible).
Also, I thought there was a proof that you pretty much needed a conditional jump and has "arbitrary" memory? So it doesn't really make sense to call any language with an if/else statement and variables "non-Turing complete"?
Yeah, any language that allows you to write a loop (to move up and down the tape) and that lets you read/write from an external source to the program (read from and write back to the tape) will be turing complete. Even Brainfuck is turing complete.
Note that loops can be either actual loops, like for and while, or constructs that let you do conditional jumps, like with if and goto.
Currently you cannot run Python 2 inside the Python 3 virtual machine. Since I cannot, that means Python 3 is not Turing Complete and should not be used by anyone.
Why can't the JVM run my C# code? Java isn't turing complete because the JVM doesn't support C#!
I should also mention that as stupid as that sounds, actual Python project developers have told me this, so it's their position that their own language is not Turing complete.
How can he have the position he has while being so ignorant of what a turing machine is.
Whenever you see those recruiter posts who say 'most of my applicants can't write fizzbuzz', and think no way, just remember, this guy is supposedly well respected and evidently has no idea what a turing machine is. I know he's a controversial figure, but this is like a physicist misunderstanding Newton's second law.
Currently you cannot run Python 2 inside the Python 3 virtual machine. Since I cannot, that means Python 3 is not Turing Complete and should not be used by anyone.
That's a joke. He asked Python developers why python3 doesn't include a python2 interpreter, and they replied something along the lines of "it's impossible", which is blatantly untrue.
Impossibility of implementing python2 in python3 implies that python3 is not Turing complete. Obviously, that statement is untrue.
So this is just a way to make fun of Python devs' lame excuses.
lol, I couldn't believe what I was reading when I saw that. Interestingly enough, we were going over Turing Machine this week in my Formal Languages & Automata class. But yeah, this person clearly has no clue in this subject matter.
I am starting to think he does not have a CS degree. I am not saying you need one to be a good programmer, but I think it is dangerous for him to be speaking from a position of authority without one (or really just some shred of background reading on theory) if he is going to start name-dropping stuff he clearly does not fully grasp. It is especially pernicious because the poor souls who get roped into his books tend to be beginners and autodidacts themselves, and they are likely to see him as a person of authority. Thus this sort of shit perpetuates a brand of CS that is closer to a superstition and a religion than a science.
451
u/flyingjam Nov 24 '16
The article (the one being rebutted) is so retarded it's not even worth rebutting. If you haven't read it, just look at this section
What the actual fuck? I'm pretty sure you could get a layman to read the wikipedia page for turing machines and he wouldn't make such a misunderstanding. Does he have a CS degree? What did he learn in it!?