Re: Python is slow



On May 23, 2:50 pm, Bruno Desthuilliers <bruno.
42.desthuilli...@xxxxxxxxxxxxxxxxxxx> wrote:
Brad a écrit :

cm_gui wrote:
Python is slow.

It ain't C++, but it ain't a punch card either... somewhere in between.
I find it suitable for lots of stuff. I use C++ when performance really
matters tho... right tool for the job. Learn a good interpreted language
(Pyhton) and a good compiled language (C or C++)

LordHaveMercy(tm). Could you guys please learn what you're talking about?

1/ being interpreted or compiled (for whatever definition of these
terms) is not a property of a language, but a property of an
implementation of a language.

2/ actually, all known Python implementations compile to byte-code.

<flamingmode useofbrain="alotforaflame">
LordHaveMercy(violatingsomeonesTM). Couldn't you understand that a CPU
INTERPRET bytes of instruction, and that means ALL languages is
interpreted in one stages or another, some languages' (implementation)
is translated/compiled into an intermediate language/bytecode like
most Python or C/C++ or Java implementations, some language
implementation interprets the language directly (like Javascript).

The difference between C and Python (in their regular implementation)
is WHO interprets it, most C/C++'s implementation is interpreted
directly by the CPU, all Python's implementation is interpreted by a
VM. Saying a language implementation is interpreted is nonsense as all
languages implementation is interpreted either by a VM or by CPU or an
interpretator, but we do have a semantic agreement that calling a
language interpreted means it is NOT interpreted by the CPU directly,
some minority have their own agreement that a language
(implementation) is interpreted when it is never translated into an
intermediate language/bytecode, you fall into this second group, which
actually uses the wrong terminology but do have some followers. Don't
forget that language is all about what the _consensus_ says, not what
the dictionary says.

Brad doesn't use any terms incorrectly, he stated that Python is
interpreted, which is true, since in all python implementation,
Python's bytecode is interpreted by a VM. He also states that C/C++ is
compiled which is also true as most if not all C++ implementation have
a stage where it is translated into an intermediate language/bytecode.
</flamingmode>
.



Relevant Pages

  • Re: logical paradoxes
    ... >sense of a fixed interpreted language, modelled as a pair, where M is ... >hierarchy, which is counter-intuitive. ... But we cannot locate English inside the hierarchy, ... which it interprets, this has been Minsky's lesson for reduction in ...
    (sci.logic)
  • Re: Create Site Compatible with Linux as well as Windows
    ... > I am working on creating a web site which would generate dynamic ... > suggestions regarding Scripting Language, Web Server, Database to use. ... The browser is what interprets the HTML, ...
    (comp.os.linux.questions)
  • Re: Is there an interpreted linux distribution?
    ... I just want to know if is there an interpreted linux distro. ... processor interprets these to perform specific action (copying bytes, ... language being interpreted is not the native processor language, ... that Haiku guys thinked to code Haiku in python but they choose C++ ...
    (comp.os.linux.misc)
  • Re: Is there an interpreted linux distribution?
    ... processor interprets these to perform specific action (copying bytes, ... language being interpreted is not the native processor language, ... Interpreted language means for me python, ruby, perl, etc. ... that Haiku guys thinked to code Haiku in python but they choose C++ ...
    (comp.os.linux.misc)
  • Re: Is there an interpreted linux distribution?
    ... processor interprets these to perform specific action (copying bytes, ... language being interpreted is not the native processor language, ... Interpreted language means for me python, ruby, perl, etc. ... that Haiku guys thinked to code Haiku in python but they choose C++ ...
    (comp.os.linux.misc)