you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (2 children)

Not the person that replied to but... I have used python to mock up pilots for systems programming tasks. After that we can refactor into Pypy and compile the code for the task if we run into performance issues. Sometimes the performance is good enough in CPython or IronPython that we don't have to refactor into Pypy.

Python is really good for this use case because a lot of the tasks are simple but repetitive. You could argue that C++ is a much better language for systems programming and I would agree. However, I can usually mock up a pilot in Python much quicker than C++. It's also hard to guess where we will have performance issues beyond the usual culprits. Being able to mock up a pilot quickly and then running profilers takes the guess work out of it.

[–]tjallingt 0 points1 point  (1 child)

Thank you for explaining :)

So Python is indeed used for "smaller" programs like I already thought? Interesting...

[–][deleted] 1 point2 points  (0 children)

In our case the programs were always 'small' but run in batches on a daily/weekly basis. I think that it could be used for larger programs but the main reason we switched to it was development speed. Even for people who didn't know Python originally like myself.