To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 16358
16357  |  16359
Subject: 
RE: About firmwares
Newsgroups: 
lugnet.robotics
Date: 
Mon, 22 Oct 2001 03:28:12 GMT
Original-From: 
Nathan Nesbit <nathann@windows!Spamcake!.microsoft.com>
Viewed: 
412 times
  
Over LegOS the advantage is that it is easier to debug IMHO.

Why is it easier to debug?  How would you compare Lejos with NQC in ease
of debugging.


-----Original Message-----
From: Juergen Stuber [mailto:stuber@loria.fr]
Sent: Saturday, October 20, 2001 12:22 AM
To: lego-robotics@crynwr.com
Subject: Re: About firmwares

lego-robotics@crynwr.com (Steve Baker) writes:

Hi, I'm a newbie on RCX, I just start to work on the RCX
and I heard about LegOS and LejOS, I´m worry about the
speed of the LejOS vs LegOS, Can someone tell me
something about it?

Well, LejOS is Java-based and Java is an interpreted
language - so that will presumably make it slower than a
natively programmed machine-code/C system like LegOS.

I've never used LejOS - but I can certainly confirm that
LegOS is *HUGELY* faster than native RCX code.

Lejos is somewhere in the middle.

Whether that is fast enough depends on your project,
if it needs reaction times in the 100ms range no problem,
at 10-20ms it gets really tough (sensors are read every 3ms).
It also has has a clock with 1ms precision if you're after that.

Over NQC (or other LEGO firmware based) it also has
the advantage of Java being a full programming language.
Over LegOS the advantage is that it is easier to debug IMHO.

Jürgen

--
Jürgen Stuber <stuber@loria.fr>
http://www.loria.fr/~stuber/



Message has 2 Replies:
  Re: About firmwares
 
(...) (I've never used LejOS but...) With LegOS (and I would imagine with LejOS), the advantage is over NQC is that the language you are programming in is a standard implementation. Hence, you can compile your program with the specialised calls for (...) (23 years ago, 22-Oct-01, to lugnet.robotics)
  Re: About firmwares
 
(...) Mostly because Java is a safer language than C, there are a lot of programming errors in C that you can't make in Java. And if there's a runtime error in Lejos you get a nice exception, with your firmware still alive. When I tried legOS 1 1/2 (...) (23 years ago, 23-Oct-01, to lugnet.robotics)

3 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR