View Single Post
  #12   Spotlight this post!  
Unread 25-04-2009, 09:31
gblake's Avatar
gblake gblake is offline
6th Gear Developer; Mentor
AKA: Blake Ross
no team (6th Gear)
Team Role: Mentor
 
Join Date: May 2006
Rookie Year: 2006
Location: Virginia
Posts: 1,936
gblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond repute
Re: "Java, Sun SPOT and the FIRST Robotics Competition"

Quote:
On the down side, Java will run quite a bit slower.
This might be a distinction without a difference - Depending on the Java Virtual Machine you are using, Java Byte Code can run plenty fast for plenty of applications - This only becomes important if you are running out of clock cycles - And, for my 2 cents, if I start doing any work likely to exhaust the clock cycles of a microcontroller, I'm going to want to offload the microcontroller (attach a fast General Purpose computer (a co-processor) to do the intense math or other heavy lifting).

Find out what speed you (really) REQUIRE before using speed as a selection criterion.

Quote:
The garbage collection causes hiccups where the OS is doing something besides running your code.
In full fledged Java implementations, you can invoke garbage collection as often as you want. This doesn't explicitly prevent the VM from deciding to run it; but it does give you a chance minimize how often the VM will surprise you by cleaning up after yourself.

Quote:
C++ probably has more robotics usage, so more code to borrow from.
Yes and no - I suspect that if you look at the robot code as the core of a large collection of general purpose development and debug code, and environments, you might find that there are plenty of Java infrastructure tools that make it worth your while to use Java. It is that infrastructure that
chews up most of my time when developing robot-ish software; not the robot software itself.

Or you might not

Blake
__________________
Blake Ross, For emailing me, in the verizon.net domain, I am blake
VRC Team Mentor, FTC volunteer, 5th Gear Developer, Husband, Father, Triangle Fraternity Alumnus (ky 76), U Ky BSEE, Tau Beta Pi, Eta Kappa Nu, Kentucky Colonel
Words/phrases I avoid: basis, mitigate, leveraging, transitioning, impact (instead of affect/effect), facilitate, programmatic, problematic, issue (instead of problem), latency (instead of delay), dependency (instead of prerequisite), connectivity, usage & utilize (instead of use), downed, functionality, functional, power on, descore, alumni (instead of alumnus/alumna), the enterprise, methodology, nomenclature, form factor (instead of size or shape), competency, modality, provided(with), provision(ing), irregardless/irrespective, signage, colorized, pulsating, ideate