Dale Long wrote:
> 
> On Tue, 17 Jul 2001, David Douthitt wrote:

> > What do you think of using lua for writing /linuxrc?  Anyone here have
> > experience in lua?
> 
> I like lua and am currently learning it. It has advantages that it is a
> clean syntax, good for configuration files and configuration processing,
> it is smaller than Perl/Python, but offers more features than 'sh', it is
> very portable and very good in an embedded/small environment, its was
> designed to be an embedded environment. The PalmOS version is and example
> of this.

Sounds like our kind of language!

> Oh the other hand, there might be a psychological issue, where people have
> to learn another language, over just using common sh knowledge in order to
> work with Oxygen. And this will also distance it from other LRP variants.
> But if lua becomes popular (due to all of its good features) if would be
> worth learning anyway. Lua also seems to be quite self sufficient and can
> compile anywhere. Does anyone know how widely used Lua is?

Using ash will still be necessary; lua isn't designed to be an
interactive shell.  There is also all of the init scripts in all those
packages to consider.  However, with a smaller lua running /linuxrc, ash
can be relegated to an add-on package loaded via /linuxrc.

> I wish lua syntax was more similar to perl (eg: string concatonations
> '..', and =~ )

...yuck!  One of the things that Ruby states as an advantage over Perl
(which I heartily agree with) is that it has a cleaner syntax - not so
many funny punction marks used for funny things.

> I can see lua being used for other purposes in Oxygen as well. Similar to
> the way tomsrtbt uses lua. And so, more space will be saved.

Such as?

> eforth sounds like fun, but maybe too different for most users.
> I would like to see a prototype rc file in eforth. :-)

Did you know that the FreeBSD boot loader is in Forth?  So is the Sun
boot loader - in fact, it's becoming a standard (OpenBoot ROM or
something like that).

It would be fun to write in Forth again; the problem is the learning
curve - it's like learning to fly an airplane: each new airplane you've
got to learn it all over again.

Lua seems to have the most power in the least space; most others require
more space, some aren't as powerful I suspect.  I don't think I care for
the oddball regex's though.  Could have used GNU regex or some such...
or a subset... or even a superset (including features not in GNU regex).

_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to