|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |