lua-users home
lua-l archive

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


LuaPlus solves some of the memory management problems associated with Lua when you attempt to use it as an embedded scripting language in a video game.
 
A quote from LuaPlus.org...
 
"Custom memory allocators and memory optimization support. For those working in embedded environments, better control over memory allocation is a must."

I would think that while a video game is racing a car down a track, we can't just all-of-suddon stop and wait for a bunch of garbage collection to occur.
On Wed, Mar 6, 2013 at 8:31 AM, Mark Gabby <mwgabby@gmail.com> wrote:
Come, come. There are at least a few things that Lua can do that other languages can't do. ;)

Lua can be easily embedded in an existing application, and can run programs without a lengthy compilation step. These features aren't unique to Lua, they're true of most languages in its class, though I daresay that embedding Lua in an application is easier than most of the alternatives.

Since Lua has a small memory footprint and few dependencies, it probably can be embedded in places where other scripting languages wouldn't fit.
Lua's speed also means it's better for applications where both runtime and the rapid iteration enabled by a scripting language is important, like games. In a sense, you could say Lua can do it quickly enough where other scripting languages can't.