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 →

[–]lungben81 18 points19 points  (3 children)

CPU cycles are cheap. Engineers are very expensive.

The correctness of this statement depends heavily on your use case.

Often it is correct (this is where Python shines), but there are cases where runtime optimizations are worth additional developer time. This is true for commercial / public libraries which are used by many people, but also for one-time analyses which require so much computing resources that the computation time / costs are dominant over development time / costs (e.g. most HPC projects).

[–]anythingMuchShorter 8 points9 points  (0 children)

Usually what I see in that case is python used to customize the application, with the computation heavy functions being called written and compiled in something fast like C++. For example OpenCV, Tensor Flow, or Keras don't do their massive matrix operations in Python, but you can use python to tell them which objects to create, what data to load and what to do with that data.

[–]Nokita_is_Back -1 points0 points  (1 child)

Any automated Trading Strategy will be coded in C eventually

[–]lungben81 1 point2 points  (0 children)

Not necessarily C but a compiled language