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


Groups > comp.lang.python > #76794

Re: Python vs C++

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed1.swip.net!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <torriem+gmail@torriefamily.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.018
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'talks': 0.03; 'subject:Python': 0.06; 'c++,': 0.07; 'combines': 0.09; 'compact': 0.09; 'runs': 0.10; 'python': 0.11; 'broaden': 0.16; 'c++.': 0.16; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'port),': 0.16; 'programmer,': 0.16; 'so)': 0.16; 'wrote:': 0.18; '(not': 0.18; 'cheap': 0.19; 'small,': 0.19; 'programming': 0.22; 'python?': 0.22; 'header:User-Agent:1': 0.23; 'fairly': 0.24; 'question': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'code': 0.31; 'languages': 0.32; 'run': 0.32; 'another': 0.32; 'framework': 0.33; 'board': 0.35; 'convert': 0.35; 'really': 0.36; 'c++': 0.36; 'project': 0.37; 'sometimes': 0.38; 'message- id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'environment.': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'first': 0.61; 'kind': 0.63; 'such': 0.63; 'myself': 0.63; 'decided': 0.64; 'provide': 0.64; 'deeply': 0.69; 'serial': 0.72; 'special': 0.74; 'yourself': 0.78; 'business.': 0.80; 'mock': 0.84; 'suits': 0.84; 'device.': 0.93
X-Virus-Scanned amavisd-new at torriefamily.org
Date Fri, 22 Aug 2014 08:51:44 -0600
From Michael Torrie <torriem@gmail.com>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131118 Thunderbird/17.0.11
MIME-Version 1.0
To python-list@python.org
Subject Re: Python vs C++
References <CAKUKWzmnnrpm-9SVNAFu3G9vYf2w0ewAhnGeOge8B2NsDujamQ@mail.gmail.com>
In-Reply-To <CAKUKWzmnnrpm-9SVNAFu3G9vYf2w0ewAhnGeOge8B2NsDujamQ@mail.gmail.com>
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
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.13291.1408719112.18130.python-list@python.org> (permalink)
Lines 24
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1408719112 news.xs4all.nl 2944 [2001:888:2000:d::a6]:52082
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:76794

Show key headers only | View raw


On 08/21/2014 06:54 AM, David Palao wrote:
> Hello,
> I consider myself a python programmer, although C++ was one of the
> first languages I learned (not really deeply and long time ago).
> 
> Now I decided to retake C++, to broaden my view of the business.
> However, as I progress in learning C++, I cannot take out of my head
> one question
> 
>  Why to use C++ instead of python?

Get yourself a cheap arduino-compatible board  ($20 or so) and then
start programming it.  The Arduino framework is C++.  It's kind of fun
to program in such a small, compact environment.  C++ actually suits it
fairly well.

What I sometimes do is mock up an arduino project on the PC using python
(talking directly to arduino I/O pins using a special firmware that
talks over the serial port), and then convert it to C++ to run directly
on the arduino.

Another project combines arduino with a raspberry pi or like device.
C++ code runs on the arduino, and Python runs on the pi to communicate
with it and do things like provide a web interface.

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


Thread

Re: Python vs C++ Michael Torrie <torriem@gmail.com> - 2014-08-22 08:51 -0600

csiph-web