|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#31
|
||||
|
||||
|
Re: "Java, Sun SPOT and the FIRST Robotics Competition"
Quote:
B) We were half hoping that someone, somewhere would port lolcode to vxWorks... |
|
#32
|
||||
|
||||
|
Re: "Java, Sun SPOT and the FIRST Robotics Competition"
Quote:
|
|
#33
|
||||
|
||||
|
Re: "Java, Sun SPOT and the FIRST Robotics Competition"
Quote:
|
|
#34
|
||||
|
||||
|
Re: "Java, Sun SPOT and the FIRST Robotics Competition"
I'm still holding out for Ruby on the cRIO. Although our codin' mentor respectfully disagrees (sorry, Ian
) |
|
#35
|
|||
|
|||
|
Re: "Java, Sun SPOT and the FIRST Robotics Competition"
Quote:
I'm interested in a "Ruby is good at A, B and C but it is bad at X, Y and Z", not in starting a flame war. |
|
#36
|
||||
|
||||
|
Re: "Java, Sun SPOT and the FIRST Robotics Competition"
Quote:
![]() |
|
#37
|
|||
|
|||
|
Re: "Java, Sun SPOT and the FIRST Robotics Competition"
It's also good for making certain teams' website people cringe.
(If you want an amusing read about ruby, go for who's poignant guide to ruby. It has pictures ^^) (I has a var?) |
|
#38
|
||||
|
||||
|
Re: "Java, Sun SPOT and the FIRST Robotics Competition"
Quote:
![]() Ruby is equivalent to Python in terms that it is great at small programs, algorithms, and the such (and I like Rails), but I would never use it for a full application, let alone a robot. Last edited by davidalln : 04-23-2009 at 04:56 PM. |
|
#39
|
|||
|
|||
|
Re: "Java, Sun SPOT and the FIRST Robotics Competition"
Ruby is like Cobol, just with a different syntax. It's yet another programming language. The difference is in the libraries that you can use without writing them.
In a robot context there isn't a big advantage between Basic, C, Cobol, C, C++, Fortran, Java, Javascript, Perl or Ruby. You are doing basic math / geometry calcs, basic data in (joysticks) and data out (motors). The problem you face in a Ruby (Java, Perl, etc) world is to get the programmers to use existing library code and to not reinvent the world. |
|
#40
|
|||
|
|||
|
Re: "Java, Sun SPOT and the FIRST Robotics Competition"
With a vxWorks JVM implementation, you could run Armed Bear Common Lisp on the compactRIO, which would be incredible. I'd love to port WPILib or something similar to Common Lisp.
|
|
#41
|
||||
|
||||
|
Re: "Java, Sun SPOT and the FIRST Robotics Competition"
Quote:
It's not only geometry/basic math calculations, But I agree with the fact that for most robot's that's fine. |
|
#42
|
|||
|
|||
|
Re: "Java, Sun SPOT and the FIRST Robotics Competition"
Remember that there will be a Java VM on the cRIO (the Squawk VM), so in theory any language that compiles down to JVM bytecode should run on the cRIO. Think JRuby (Ruby), Jython (Python), Scala, Clojure, Groovy, etc.
That said, Squawk implements Java ME, not Java SE, which could cause some problems, as some of those language implementations may be geared towards Java SE. |
|
#43
|
||||
|
||||
|
Re: "Java, Sun SPOT and the FIRST Robotics Competition"
Quote:
Quote:
![]() |
|
#44
|
||||
|
||||
|
Re: "Java, Sun SPOT and the FIRST Robotics Competition"
Can someone who knows more about this me give a few reasons why Java would be better or worse than c++. I know that it is simpler to learn, and that many students know it from taking AP compsci (myself included), but because I don't know c++ I don't really know what negative effects switching to Java would have. Each programmer will have his or her preference, but I want to know what the major benefits and drawbacks will be using Java in place of c++.
|
|
#45
|
|||
|
|||
|
Re: "Java, Sun SPOT and the FIRST Robotics Competition"
Java is a safe language, with references, but not pointers. Java does garbage collection so that you don't leak memory in the same way. Java has a simpler and more consistent syntax. Java, being a teaching language, presumably has material aimed at teaching to HS students.
On the down side, Java will run quite a bit slower. The garbage collection causes hiccups where the OS is doing something besides running your code. C++ probably has more robotics usage, so more code to borrow from. While doing the comparisons, LV is a safe language with no pointers. LV does garbage collection upon completion, but not during execution. LV has the simplest syntax of the bunch. I expect that LV is faster than Java and slower than C++. Oh, and there is that graphics and dataflow thing. This is my input from a thousand foot perspective. I can't say much more until it is in my hands and we can do side-by-side-by-side comparisons. Perhaps if you learn all three you can update my comparison. Greg McKaskle |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SECOND Robotics Competition "Underdrive" | Tanner | Off-Season Events | 2 | 11-22-2008 05:34 PM |
| Cannot "Grab frame" with java CMUcam2 GUI | TOECUTTER | Programming | 0 | 01-20-2007 12:50 PM |
| Rules of Engagement and "Unfair Competition" | Richard Neese | General Forum | 2 | 03-24-2003 01:03 PM |
| how tall is the ramp when in "up" and "balanced" position??? | archiver | 2001 | 1 | 06-24-2002 12:54 AM |
| An idea to better improve the First competition...or, at least make it more "hardcore"... | archiver | 1999 | 1 | 06-23-2002 10:02 PM |