Is this a true statement?

Steven D. Majewski sdm7g at Virginia.EDU
Fri Jun 22 12:47:23 EDT 2001


On Fri, 22 Jun 2001, David Lees wrote:

> Not necessarily.  It might go faster if you were comparing a Python
> built-in operation (coded in C) with something inefficiently coded in
> C++.  But the statement that "Python can do everything C++" is true, but
> a tautology. You can substitute nearly any language; Basic, C, Algol,
> Lisp,... and it is still a true statement.
> 
> david lees
> 
> 
> MDK wrote:
> > 
> > Python can do everything C++ can do but just slower.

Wrong, David. 
Turing completeness means that anything you can *COMPUTE* in one
language you can computer in another. Python, Lisp, C++, etc.
are all equivalent in that sense. 

But you can't *DO* all of the same things in all languages -- for
example: you can write a device driver in a language if you can't
specify interrupt vectors or hardware address pointers. 

-- Steve Majewski






More information about the Python-list mailing list