lua-users home
lua-l archive

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


On Tue, Feb 1, 2011 at 8:06 AM, Wesley Smith <wesley.hoke@gmail.com> wrote:
> The thing that's not on the list that I think is one of the most
> important in Lua, especially when compared to other languages, is
> coroutines.

Totally. Like the 'does it have OOP?' there's a companion question
'does it have threads?'.  The answer is usually something like 'well,
yes and no' which is feeble.  Coroutines are animals of a different
colour. With a little organization, they can do what threads do, in a
more sane way, and they are very lightweight compared to OS threads.

Naturally, it takes a while to understand them well, precisely because
they are not common outside Lua.

steve d.