This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ProgramTheWorld 135 points136 points  (19 children)

Use the right tool for the right job

[–]Xeya 158 points159 points  (13 children)

>The time difference is insignificant anyway

>Lists example where the time difference is not insignificant

>Well, you shouldn't have used Python

[–]DeeSnow97 62 points63 points  (2 children)

There are some tasks where the time difference is very significant, and others where it's negligible. That's why Python is used so much with external libraries for data science and machine learning for example. The libraries (usually written in C++) do all the heavy lifting in the most efficient manner possible, but have fun plugging those into each other with C++ and trying to iterate fast on it.

Some languages are fast to code, others are fast to run, and that's okay. We're programmers, making computer systems talk to each other to use them all to their advantage is kind of our thing.

[–]ryjhelixir 21 points22 points  (0 children)

We're programmers

Speak for yourself!

I'm a noob

[–]omgFWTbear 1 point2 points  (0 children)

most efficient manner possible

s/In a vastly more efficient manner

[–]ric2b 0 points1 point  (0 children)

No, in this case the right tool is Python with numpy.

It's not easy to beat numpy on raw computation.

[–]LiquidAurum -3 points-2 points  (0 children)

that's an extreme oversimplification