Nikolai Weibull
11/21/2004 8:03:00 PM
* Phlip <phlip_cpp@yahoo.com> [Nov 21, 2004 20:30]:
> But why do so many game shops use Lua?
>
> - an early lead in game development
> - pure C implementation
> - works inside a game box
> - "easy" to bond with C
> - super-efficient VM opcodes
> - dynamic typing, with block closures
> - minimal standard library, with discardable components
>
> I suspect I can humbly submit the indefensible opinion to this newsgroup
> that Ruby has esthetic and technical advantages over Lua, but this doesn't
> necessarily mean that Ruby can efficiently and responsively fit inside an
> XBox and run games.
> Right?
Probably right. Ruby doesn't aim to be only an extension language.
Lua's target is a simple VM to include in your application to allow for
software scripting, such as in a game, text editor, or perhaps CAD
software. Ruby aims to be more than that. It targets script writing,
alleviating the need to use /bin/sh, software scripting, and actual
software development. It has a sizable standard library that makes it
easy to use out of the box for many tasks, but this of course makes it
harder to include it in something targeted at the XBox or such. That's
not to say that one can't make a stripped down version of Ruby, but I
don't think anyone has tried either. It depends greatly on how
interdependent the various classes of the standard library are. When
(the then) Scriptics was trying to port Tcl to embedded systems, they
had great troubles with this. The design of Tcl and its sole
implementation prooved to contain too many interconnections to be easily
ported to an embedded environment.
nikolai
--
::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden :::
::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}