[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: idea of vision of blueprint of ROADMAP of Lua core
- From: duck <duck@...>
- Date: Sat, 15 Jan 2005 09:50:07 +0000
> >- 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.