Which is more complete RobotC, NXC or lejos?

This is where you talk about the NXJ software itself, installation issues, and programming talk.

Moderators: roger, 99jonathan, imaqine

Which is more complete RobotC, NXC or lejos?

Postby barnabus » Mon Mar 11, 2013 4:14 pm

Out of RobotC, NXC and leJOS which is the most complete programming language and why? leJOS was the first third party language I found and I was wondering what makes it better than NXC or RobotC?
barnabus
New User
 
Posts: 5
Joined: Sat Feb 09, 2013 3:54 pm

Re: Which is more complete RobotC, NXC or lejos?

Postby gloomyandy » Mon Mar 11, 2013 5:18 pm

They are all different. NXC probably has the most complete 3rd party device support. RobotC is a commercially supported product and runs on systems other than the NXT. leJOS probably has the best support for an industry standard programming language and professional programming environment (Both NXc and RobotC are sort of C but do not support all of the language features, leJOS is a pretty complete Java implementation). Why not take a look at all three and draw your own conclusions (and post back here about them)...
User avatar
gloomyandy
leJOS Team Member
 
Posts: 3004
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: Which is more complete RobotC, NXC or lejos?

Postby s.frings » Sun Mar 24, 2013 4:53 pm

The GUI for NXC (BricxCC) is only available for Windows, while Lejos can be used with Netbeans and Eclipse on Linux, Windows and Mac.

NXC is similar than C but it implements only a subset of C, while Lejos is a full featured real Java language. However, the runtime library of Lejos is smaller than the runtime Library of Sun/Oracle Java with respect to the smaller available memory.

NXC has some limitations for the number and type of variables, number of procedures and number of threads that come from the NXT bytecode interpreter, while the Lejos JVM is only limited by the available memory (as far as I discovered). The hardest limitation of NBC is that it does not support pointers and dynamic memory allocation.

On the other hand, NXC runs on the original Lego Firmware, while Lejos requires to replace it. Which is technically simple but maybe not allowed in school.
s.frings
Active User
 
Posts: 131
Joined: Tue Jul 20, 2010 2:01 pm

Re: Which is more complete RobotC, NXC or lejos?

Postby skoehler » Sun Mar 24, 2013 6:11 pm

RobotC also requires the firmware to be replaced. Maybe one should also mention that leJOS has proper multi threading, while all other languages lack basic features in that area. For example, when I last checked, RobotC only allowed for 4 tasks to run in parallel and lacked any mechanism for synchronization like mutexes or condition variables. It didn't even have an atomic test and set statement, when I last looked.

These may be features, that only experiences programmers look for, but leJOS is fairly good in that area.
skoehler
leJOS Team Member
 
Posts: 1114
Joined: Thu Oct 30, 2008 4:54 pm


Return to NXJ Software

Who is online

Users browsing this forum: No registered users and 2 guests

more stuff