News for hackers. Stuff that matters.
Re:Objective-C overtakes C++ to become 3rd most popular lang... by veyron on Thursday July 05, 2012 @01:36AM (#4201862)
Not really surprising: Except for some very limited cases, I found that python performance is comparable to C++ performance for solving problems (obviously using python/C++ idioms where relevant). I rarely use C++, opting for C for performance reasons.
Re:Objective-C overtakes C++ to become 3rd most popular lang... by charliesome on Thursday July 05, 2012 @01:56AM (#4201901)
> Except for some very limited cases, I found that python performance is comparable to C++ performance for solving problems

I have a hard time buying this. What cases have you found where Python is comparable to C++?

Re:Objective-C overtakes C++ to become 3rd most popular lang... by cageface on Thursday July 05, 2012 @02:05AM (#4201918)
Python is comparable to C/C++ when the code you write spends most of its time in the many Python libraries which are written in C.

If your program spends most of its time actually executing code in Python then a comparable C++ implementation will probably be two or more orders of magnitude faster.

Re:Objective-C overtakes C++ to become 3rd most popular lang... by mseepgood on Thursday July 05, 2012 @02:10AM (#4201927)
When he uses NumPy that is implemented in C.
Re:Objective-C overtakes C++ to become 3rd most popular lang... by eswangren on Thursday July 05, 2012 @02:19AM (#4201956)
And by "limited cases" I assume you mean "performance critical code"?
Re:Objective-C overtakes C++ to become 3rd most popular lang... by veyron on Thursday July 05, 2012 @09:33AM (#4202922)
even in performance critical code, unless you are doing some very aggressive bit twiddling or assembly-level optimizations, python can hold its own.

Although at that point, C is easier to work with ...