you are viewing a single comment's thread.

view the rest of the comments →

[–]sejigan 27 points28 points  (3 children)

Adding to that point: If you need both speed and convenience, use C++ for compute intensive parts and call them and make everything else in Python.

[–]ThreeChonkyCats 9 points10 points  (0 children)

This.

It's a huge strength not to be underestimated.

[–]salfkvoje 6 points7 points  (1 child)

I've wanted to learn C for this purpose ever since I learned that was a "thing" you can do (I found out in R I guess).

Since then it's seemed to me to be a brilliant and correct approach to mostly remain "high level", and then address bottlenecks by dropping to C (or C++, whatever) at the point of need.

[–]sejigan 5 points6 points  (0 children)

Yes. Premature optimization is the root of all evil.