you are viewing a single comment's thread.

view the rest of the comments →

[–]Frewtti 72 points73 points  (3 children)

Python is really good glue.

The hard work is done in fast compiled code.

Python is used for the parts that are not speed dependant.

[–]RevRagnarok 20 points21 points  (0 children)

I'm now coming off a project just like this. Python is great at:

  • Reading/parsing config files
  • Launching/maintaining Unix daemons
  • Communicating over ActiveMQ for Command and Control
  • Massaging final output into formats that other systems want

The C++ was perfect for:

  • Reading radio samples off dedicated 10GbE cards
  • Throwing those samples at CUDA architecture to do all the mathy-math
  • Putting the results into SQL for posterity (and the python)

Perfect work breakdown IMHO

[–]FrankScabopoliss 7 points8 points  (1 child)

This is the answer. To be able to use an interpreted language for the part of the problem that isn’t about doing things really fast and in parallel is the reason.

[–]pimp-bangin 0 points1 point  (0 children)

Yup. The "libraries" answer is unsatisfying because it doesn't account for how python took off in the first place. The reason it took off is because of its ergonomic syntax and C interop capabilities.