Go to Post We should all just be humble, courteous, and act like gentlemen (or ladies) on these forums, and not fill it with yakking about who's drive train is better. - Veselin Kolev [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-09-2009, 18:33
alivemyst alivemyst is offline
Registered User
no team
 
Join Date: Sep 2009
Location: California
Posts: 10
alivemyst is a glorious beacon of lightalivemyst is a glorious beacon of lightalivemyst is a glorious beacon of lightalivemyst is a glorious beacon of lightalivemyst is a glorious beacon of lightalivemyst is a glorious beacon of light
Re: Java vs. C++

the Squawk Java virtual machine was developed at Sun Microsystems labs specifically for use in embedded platforms, and having used it on arm platforms, I must say it runs particularly fast--comparable to writing C++ for the same platforms. This is the case in part because Squawk runs "on the metal", ie without a host operating system to create overhead or incur performance costs. On many platforms, java now runs as fast or faster than C/C++, except when OS-Related I/O functions are called, tending to be the biggest bottleneck. On the metal, this is a non-issue, and the Java interpreter has been really well optimized. Finally, I'd point out that Java's garbage collector is rather nice...

In terms of library support, it is currently looking like the Java abstractions provided by WPI/Sun for robot hardware are rather nice... http://livemyst.comli.com/wpilibj/doc/index.html shows that most robot hardware can be dealt with cleanly through object methods.

There is nothing to say that C++ or Java is bad or should be avoided, its really more of a preference call, not performance.

Last edited by alivemyst : 05-09-2009 at 18:35.
  #2   Spotlight this post!  
Unread 05-09-2009, 18:55
bobwrit's Avatar
bobwrit bobwrit is offline
//No Comment
AKA: ...
FRC #1977 (Loveland High Robotics)
Team Role: Alumni
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Somewhere
Posts: 298
bobwrit is just really nicebobwrit is just really nicebobwrit is just really nicebobwrit is just really nicebobwrit is just really nice
Re: Java vs. C++

I can't say anything about SJVM, but from what I've noticed and timed on my own computers, java is slower to load, but once it's loaded, it's slightly faster that C/C++. I'm not going to worry too much about the performance of Java on the cRio. Like alivemyst said, It's personal preference as to which one you use.
__________________

FRC Team 1977 Alumni

Has Attended:2008 Colorado regional
2009 Colorado Kickoff
2009 Colorado Regional
2010 Colorado Kickoff
2010 Colorado Regional




The most exciting phrase to hear in science, the one that heralds new discoveries, is not "Eureka!"(I found it!), but rather, "Hmm.... That's funny" ---Isaac Asimov
Chance favors the prepared mind ---Louis Pasteur
And you can tell me, that I can't make a diffrence because I'm just one, but one is all it takes to start it. And you can tell me, that I can't change the world because I'm too young, but I wont stand here and be your target. ---FM Static
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
**FIRST EMAIL**/Java and Orbit Balls *****JAVA DISCUSSION*** Pjohn1959 Programming 37 31-08-2009 15:55
Programming with Java? the_innovator Programming 11 27-02-2007 16:47
java to pbasic nzj1 Programming 11 09-01-2003 19:24
Java Books Yan Wang Programming 1 27-12-2002 16:26
No Java for XP Kyle Fenton Chit-Chat 21 23-07-2001 20:15


All times are GMT -5. The time now is 10:58.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi