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


Groups > comp.lang.python > #76744

Re: Python vs C++

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.06; '21,': 0.07; 'c++,': 0.07; 'here?': 0.09; 'part,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'question.': 0.14; '(which,': 0.16; 'api,': 0.16; 'codebase,': 0.16; 'porting': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'sorts': 0.16; '\xe9crit': 0.16; 'language': 0.16; 'wrote:': 0.18; 'obviously': 0.18; 'bit': 0.19; 'thoughts': 0.19; 'thu,': 0.19; 'aug': 0.22; 'python?': 0.22; 'header:User-Agent:1': 0.23; 'features,': 0.24; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'strongly': 0.30; "i'm": 0.30; 'probably': 0.32; 'maintaining': 0.32; 'programmers': 0.33; 'something': 0.35; 'no,': 0.35; 'but': 0.35; 'really': 0.36; 'belong': 0.36; 'c++': 0.36; 'otherwise.': 0.36; 'url:org': 0.36; 'project': 0.37; 'level': 0.37; 'starting': 0.37; 'growing': 0.38; 'easiest': 0.38; 'to:addr:python-list': 0.38; 'fact': 0.38; 'pm,': 0.38; 'rather': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'most': 0.60; 'information,': 0.61; "you're": 0.61; 'save': 0.62; 'high': 0.63; 'grab': 0.64; 'now:': 0.74; 'yourself': 0.78; 'late,': 0.84; 'pike': 0.84; 'costs,': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Joseph Martinot-Lagarde <joseph.martinot-lagarde@m4x.org>
Subject Re: Python vs C++
Date Thu, 21 Aug 2014 20:05:25 +0200
References <CAKUKWzmnnrpm-9SVNAFu3G9vYf2w0ewAhnGeOge8B2NsDujamQ@mail.gmail.com> <CAPTjJmrO7fER7Wjgo6qNO9qHNJgkJ7Y3BFWBf1L=t-bOv4JV7w@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 8bit
X-Gmane-NNTP-Posting-Host gns13-1-88-122-220-146.fbx.proxad.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
In-Reply-To <CAPTjJmrO7fER7Wjgo6qNO9qHNJgkJ7Y3BFWBf1L=t-bOv4JV7w@mail.gmail.com>
X-Antivirus avast! (VPS 140821-0, 21/08/2014), Outbound message
X-Antivirus-Status Clean
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.13255.1408644345.18130.python-list@python.org> (permalink)
Lines 26
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1408644345 news.xs4all.nl 2844 [2001:888:2000:d::a6]:54414
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:76744

Show key headers only | View raw


Le 21/08/2014 15:40, Chris Angelico a écrit :
> On Thu, Aug 21, 2014 at 10:54 PM, David Palao <dpalao.python@gmail.com> wrote:
>> Why to use C++ instead of python?
>>
>> This is, perhaps, a bit off-topic, but I really want to know the
>> thoughts of experienced python programmers on it.
>
> No, it's a fair question. Why are we all here?
>
> The fact is, there's not a huge amount of reason left. If you're
> linking against a C++ API, you may find it easiest to do the whole
> program in C++, rather than use something like Cython (which, as far
> as I'm aware, is C-only) or write a two-part project. And obviously if
> you have an existing C++ codebase, then porting it has costs, and
> maintaining it is probably better. But for the most part, I would
> strongly recommend starting a project in a high level language like
> Python unless there's a really compelling reason to do otherwise. C++
> has, of late, been growing a number of features that belong in higher
> level languages; but if you want those sorts of features, why not just
> grab Python or Pike or something and save yourself the trouble?

For information, Cython works with C++ now: 
http://docs.cython.org/src/userguide/wrapping_CPlusPlus.html.

Joseph

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


Thread

Re: Python vs C++ Joseph Martinot-Lagarde <joseph.martinot-lagarde@m4x.org> - 2014-08-21 20:05 +0200

csiph-web