lua-users home
lua-l archive

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


> >-  coroutines (is there *anyone* at all who agrees??  :-)  )

Why would you want to remove coroutines? Support for them adds very little 
size to the Lua core, and they do provide a very elegant way of writing 
multithreaded programs. As an earlier poster (Eric) mentioned, programs 
using pre-emptive threading can end up with lots of explicit 
synchronisation code. This can be a bottleneck and a source of serious 
(not to mention hard-to-replicate) bugs. 

Also, with coroutines, you have a mechanism to support multithreading even 
in OS/hardware environments where pre-emptive threads are unavailable or
unreliably implemented.