lua-users home
lua-l archive

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

> On Thu, Dec 3, 2009 at 11:48 AM, Linker <> wrote:
> > Threads are EVIL!
> They certainly are painful when they don't work!  Of course, you are
> meaning OS threads? Because coroutines are much nicer.  Now, if we
> could imagine a universe in which all I/O was asynchronous then
> everything could be done with coroutines.  Of course, they still have
> to be scheduled, get to speak to each other politely, all the usual
> concurrency challenges.

Not exactly "all the usual". A main difference is that coroutines are
MUCH easier to debug.

-- Roberto