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


Groups > comp.lang.python > #76794

Re: Python vs C++

Date 2014-08-22 08:51 -0600
From Michael Torrie <torriem@gmail.com>
Subject Re: Python vs C++
References <CAKUKWzmnnrpm-9SVNAFu3G9vYf2w0ewAhnGeOge8B2NsDujamQ@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.13291.1408719112.18130.python-list@python.org> (permalink)

Show all headers | 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