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


Groups > comp.lang.python > #76775 > unrolled thread

Re: Python vs C++

Started bydieter <dieter@handshake.de>
First post2014-08-22 08:12 +0200
Last post2014-08-22 08:12 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#76775 — Re: Python vs C++

Fromdieter <dieter@handshake.de>
Date2014-08-22 08:12 +0200
SubjectRe: Python vs C++
Message-ID<mailman.13273.1408687996.18130.python-list@python.org>
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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web