Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #76775

Re: Python vs C++

From dieter <dieter@handshake.de>
Subject Re: Python vs C++
Date 2014-08-22 08:12 +0200
References <CAKUKWzmnnrpm-9SVNAFu3G9vYf2w0ewAhnGeOge8B2NsDujamQ@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.13273.1408687996.18130.python-list@python.org> (permalink)

Show all headers | View raw


David Palao <dpalao.python@gmail.com> writes:
>  Why to use C++ instead of python?

Likely, you would not use Python to implement most parts of an
operating system (where, for efficiency reasons, some parts
are even implemented in an assembler language).

I can imagine that the GNU compiler developers, too, had good
reasons to implement them in C rather than a scripting language.
It makes a huge difference whether you wait one or several hours
before a large system is built.

"firefox", too, seems to be implemented in C/C++. There, too, I
see good reasons:
  *  it is nice when your pages are rendered quickly

  *  "firefox" depends on lots of external libraries, all of them
     with C/C++ interfaces; while is is possible to create
     Python bindings for them, this is quite some work

  *  as it is, "firefox" is a huge "memory eater"; one might
     fear that things would be worse if implemented in a
     higher level language (with everything on the heap).
     Though, the fear might not be justified.


All these examples are really large projects. I like Python a lot
for smaller projects.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Python vs C++ dieter <dieter@handshake.de> - 2014-08-22 08:12 +0200

csiph-web