Thread: Python Tips
View Single Post
  #2   Spotlight this post!  
Unread 30-01-2012, 20:58
Djur's Avatar
Djur Djur is offline
WPILib
AKA: Sam Carlberg
no team
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Massachusetts
Posts: 182
Djur will become famous soon enough
Re: Python Tips

While Python is easier to program, it needs to be ported to C++ in order to work on VxWorks and this may cause some performance issues, specifically lag between an event and the program's ability to respond (this might not be a big problem; I've never had any experience with Python).

C++ is a bit more complex, but it seems you already have people who know the language, so that's not an issue. The real advantage to it is that it runs natively on VxWorks and therefore has the best performance out of the (currently) three languages available for programming: C++, Java, and Python.

Bottom line: C++ is a bit faster and more reliable than Python on the cRIO. Make your decision on C++ vs Python based on this and your programmers' abilities in both languages.
__________________
WPILib dev (RobotBuilder, SmartDashboard, GRIP)
Reply With Quote