On Tue, 17 Jul 2001, David Douthitt wrote:
> I was pondering this, wondering if there was another language other than
> /bin/ash which had more power in less space.  This is what I've found:
> 
> ash     100k
> rc      -- requires libncurses, libreadline
> esh     -- requires libreadline, libtermcap
> eforth   12k (static)
> lua      79k
> es      -- won't compile (glibc 2.0 or 2.1)
> mawk    -- requires libm

> 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 embeded/small environment, its was
designed to be an embeded environment. The PalmOS version is and example
of this.

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?

I wish lua syntax was more similar to perl (eg: string concatonations
'..', and =~ ), but it is also similar to the Object Pascal I like
(eg: Borland, Delphi and Kylix). Once I know the language better I will
see things a different way I expect.

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.

While it is a different move, I think it would be a good move overall.

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

Dale.


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

Reply via email to