Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.06; 'compiler': 0.07; 'bindings': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'scripting': 0.09; 'worse': 0.09; 'developers,': 0.11; 'python': 0.11; 'language.': 0.14; 'assembler': 0.16; 'c/c++': 0.16; 'c/c++.': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-ipconnect.de': 0.16; 'language': 0.16; 'examples': 0.20; 'seems': 0.21; 'python?': 0.22; 'header:User-Agent:1': 0.23; 'header:X -Complaints-To:1': 0.27; 'external': 0.29; 'quickly': 0.29; 'writes:': 0.31; 'quite': 0.32; 'implemented': 0.33; 'projects.': 0.33; 'there,': 0.34; 'really': 0.36; 'c++': 0.36; 'charset:us- ascii': 0.36; 'possible': 0.36; 'operating': 0.37; 'level': 0.37; 'implement': 0.38; 'depends': 0.38; 'to:addr:python-list': 0.38; 'rather': 0.38; 'though,': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'even': 0.60; 'most': 0.60; 'received:217': 0.63; 'hours': 0.66; 'reasons,': 0.91; 'imagine': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: dieter Subject: Re: Python vs C++ Date: Fri, 22 Aug 2014 08:12:59 +0200 References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Gmane-NNTP-Posting-Host: pd9e0a573.dip0.t-ipconnect.de User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.22 (linux) Cancel-Lock: sha1:rUEQaMVikHj1SmkEUtQz/aERiyM= X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1408687996 news.xs4all.nl 2971 [2001:888:2000:d::a6]:40600 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:76775 David Palao 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.