Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!news.stack.nl!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.041 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'subject:Python': 0.06; 'mentioned,': 0.07; 'imply': 0.09; 'instance.': 0.09; 'cc:addr :python-list': 0.11; 'project,': 0.12; '(eg,': 0.16; 'enough.': 0.16; 'coding': 0.22; 'cc:addr:python.org': 0.22; 'fraction': 0.24; 'tend': 0.24; 'question': 0.24; 'cc:2**0': 0.24; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'compared': 0.30; 'message- id:@mail.gmail.com': 0.30; 'code': 0.31; 'critical': 0.32; 'quite': 0.32; 'could': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'c++': 0.36; 'should': 0.36; 'thank': 0.38; 'generic': 0.38; 'question,': 0.38; 'anything': 0.39; 'realize': 0.39; 'how': 0.40; 'even': 0.60; 'full': 0.61; 'relatively': 0.65; 'worth': 0.66; 'useful.': 0.68; 'different.': 0.84; 'to:none': 0.92; 'suited': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=HoIhL1vS56h8R37R4OKCjU3FHrXF71752XkTwLtTLO8=; b=H1YR5ZSpw70p/xKqBVyLkKvbj+6B6re6yy1AL014JwYll9y296yGW9vamObDEObf9D Bclbir/37Q8ifYjbvqZgLz5+7E3XpF5wddEUm2S4KCUojqsYIULzXU8v9VhgaeJi5qkG +b8SgW9ZbTZRBs182WK9VCsV1eYiowwgZMtmDmpkMUuXFPfjL8lxBK8oJmTZz2FeZ0BA MmM2qKHnjCaxmEUdzpTT7U4IiFD8xmrdvPvj51kq9IXbF0OErB3mN3o3EmdzVcFCxBP4 Samb08esJS8vf3LZjqfrZ9kcdE5pZetV202M8LMwokKZn/zjgHLSmOzG30CiC5Vsar0O pzCw== MIME-Version: 1.0 X-Received: by 10.180.39.34 with SMTP id m2mr23102458wik.80.1408634807211; Thu, 21 Aug 2014 08:26:47 -0700 (PDT) In-Reply-To: References: Date: Thu, 21 Aug 2014 17:26:47 +0200 Subject: Re: Python vs C++ From: David Palao Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1408635277 news.xs4all.nl 2932 [2001:888:2000:d::a6]:39330 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:76741 Thank you for the interesting answers. Just a clarification. Actually for the scope of this question, I consider C and C++ quite different. At least when they are "properly" used (eg, you could use C++ as a better C, but this is not C++ in its full glory). In my opinion, if all that you want is performance, coding critical parts in C or Frotran should be enough. Or even Cython. As far as the fraction of code that turns out to be critical is relatively small. But C++ is a monster compared to C. And I realize it requires a huge amount of time and practice to master it. The question is whether is it worth as a generic approach or not (*). I tend to think that it isn't that useful. Best, David (*) as some of you already mentioned, you could need C++ for joining a specific project, for instance. But that would not imply anything about how well suited is C++ for that particular project.