|
Re: C# and robots
There is nothing wrong with the stats posted, and honestly C# is definitely not significantly "slower" than any other language (it is more than fast enough for any computation I've ever seen done on FIRST robots) .... the problem is that C# is usually compiled down to an intermediate byte-code rather than assembly code, this means you need to run a virtual machine which interprets the byte code. Again this is not going to be that much "slower" however there will be a memory overhead which was not shown by the tests, since they only checked floating point operations.
Theoretically you can program your robot in any language (javascript, python etc) as long you write a compiler which will turn the code into assembly. This of course is not a trivial task, but certainly not impossible.
The whole point of C# is to make it easier to develop large software projects, most FIRST robots have like 8 functions, and you don't exactly need polymorphism or all of the other things that make C# useful, so I would say there is no advantage to use C#.
If you want a challenge, try writing a LISP interpreter on the RC... it's one of the easiest languages to write an interpreter for.
__________________
Team 701
Last edited by Salik Syed : 09-12-2007 at 15:14.
|