Quote:
Originally Posted by connor.worley
So... what are the pros of going to C#? It sounds like a pretty one sided debate right now.
|
I decided to try and do the port for 3 main reasons. The first was to get a better knowledge of the roboRIO and the WPILib. The second was to learn more C# and become a better programmer, and doing some end to end programming. The 3rd was to give me something to do.
After working with it, it has alot of the advantages of C++ without the disadvantages of Java. Working with the FPGA is much easier then Java, and I was able to get rid of alot of the extra fluff in Java.
Also, because of the DLR, and the good graphics libraries for C# compared to Java, building an efficient and useful simulator is much easier then it would be in Java. In addition, since I built it at the HAL level and not the WPILib level, changes to the WPILib only have to be done once, unlike Java and C++, and the sim 254 built, where the sim is actually a copy of the wpilib. Note that much of this should actually be attributed to the Py guys, because I borrowed the implementation from them
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of
RobotDotNet, a .NET port of the WPILib.