python vs C++
<p>Jan 27, 2013 12:45 PM
 
see linuxquestions below:
 
see sundialsvcs answer:  
 </p>
<div id="post_message_4720827" >Typically, languages such as Python <i>work in tandem with</i> low-level <a href="http://www.linuxquestions.org/questions/#" class="kLink" id="KonaLink5" >tools</a> such as C/C++. You are given "a nice, fuzzy, easy-to-use Python library" which, as it so happens, invokes lower-level C/C++ code and external libraries to do the heavy lifting. Meanwhile, for everything <i>else</i> that you need to do, Python itself (which is, of course, <i>also</i> a large and sophisticated C/C++ <a href="http://www.linuxquestions.org/questions/#" class="kLink" id="KonaLink6" >program</a> ...) is fast-enough, efficient, and readily available.
In this scenario, C/C++ becomes a more specialized tool: used to construct higher-level languages such as Python itself; and used to implement specific, targeted functionality (in the form of libraries and subroutines accessible to the higher-level language tools). In this way, you play to each language's respective strengths (and designs), with no significant loss in computer <a href="http://www.linuxquestions.org/questions/#" class="kLink" id="KonaLink7" >efficiency</a> (but considerable gains in far-more-expensive <i>human</i> efficiency). So, it's simply not a "versus" issue at all.
<b>Q:</b> Scalpel vs. chain-saw?
<b>A:</b> Well, it depends on exactly what it is you are trying to cut ...</div>
<div class="smallfont" ></div>
<p><br class="Apple-interchange-newline" />
In other words, C++ is a waste of time!
 
also see sycamorex answer...
 
Python is an interpreted language and tends to run slower than C++ (compiled language) but it's easier to code and takes less code to accomplish the same thing. As far as python's slowness is concerned, PyPy (which is faster than CPython, <a href="http://www.linuxquestions.org/questions/#" class="kLink" id="KonaLink4" >ie</a> the standard Python) is slowly gaining popularity.
 
hghg
 
 </p>