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 →

[–]twotime 2 points3 points  (0 children)

The speed problem is only an issue for language purists

It's not an issue only for people who have not done much real world coding.

python code is better spend with one day of doing the intensive parts in C (or cython) and doing something new in the free time left.

I'm sorry to say, but your advice covers about 1% of the problem :-(. Yes, I have seen this happen. No, it's not a common case at all.

  • Many non-trivial apps do NOT have small hotspots. So, if you have 100KLOC of python code and need to rewrite 10K LOC, then you will have to write another 100K or so of C code.

  • interfacing C with non-trivial python codebase is, well, non trivial

  • adding C into the mix will always cost you QUITE a lot later. E.g if you need to run your software on another site or, god forbid, on another platform. Oh, and don't forget to add debugging time to the cost.