lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, Jul 18, 2000 at 04:26:08AM -0300, Brandon Van Every wrote:
> I'm aware from the Lua projects pages that several game developers,
> both hobbyist and professional, have used Lua as the game engine's
> embedded scripting language.  I am wondering what drove your
> decision to use Lua instead of other embeddable scripting languages?

1) Speed
2) Portablility
3) easy of integration
4) "smallness" of the overall kit. (which is related to #3)

> Most notably Python, as in my brief survey of what's available that
> seems like a good candidate.

Python would be a good candidate. It provides a bit more object/class
machinery which could be useful if you know how to make it work for
you. Lua is definetly faster than Python. Depending on what you're
doing, I've found lua3.1 as much as 50% faster than Python. Python is
particularly slow at loops (because of the list-iterator style), and
it's also slow at function/method invocations.

-- 
David Jeske (N9LCA) + http://www.chat.net/~jeske/ + jeske@chat.net