View Single Post
  #6   Spotlight this post!  
Unread 15-11-2009, 17:47
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,077
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: C++ vs. Java Performance

Quote:
Originally Posted by manderson5192 View Post
2) Interesting...On the USFIRST.org beta testing forums, team 67 posted this:



Is there really no noticeable performance hit?

...and a couple, related question:

4) How does the Java vision API compare to the C++ one? Is there a large speed difference?

5) After having beta tested in java, will your team use it this year?

6) When do you think everything will be released for us non-beta-testers?

Thanks again!
-Matt
I would argue that an empty loop hardly makes for a meaningful speed test. But yes - perfectly written Java will almost always lose in a performance test against perfectly written C++. But to Java's credit, it is often easier to write good Java than it is to write good C++, which can tip the scales back in Java's favor. Regardless, FIRST robots really don't tend to do anything all that computationally complicated.

4) None at all as far as I can tell. It's the same code running underneath it all.

5) Definitely - it is much more accessible to our students than C++.

6) Not sure. "Soon" seems to be the general consensus. Definitely in advance of build season.

Last edited by Jared Russell : 15-11-2009 at 19:37.
Reply With Quote