[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Recommendations on my upcoming Lua presentation?
- From: steve donovan <steve.j.donovan@...>
- Date: Tue, 1 Feb 2011 08:26:59 +0200
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.