Re: LuaSocket 3.0? (was Re: A proposal for faster userdata type checking)
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: LuaSocket 3.0? (was Re: A proposal for faster userdata type checking)
- From: Doug Currie <doug.currie@...>
- Date: 2008年2月28日 21:44:21 -0500
On Thursday, February 28, 2008 Diego Nehab wrote:
> Hi,
>>> The assynchronous APIs present a different programming
>>> paradigm, so it doesn't make sense to be compatible
>>> there.
>>
>> Considering that Lua's threading model is cooperative and
>> that most library operations are blocking, I don't see
>> much benefit from an asynchronous socket API in practice.
>> Or at least in the narrow confines of my current endeavors
>> :)
> The idea is to choke all notifications through a queue...
Which could be used with a scheduler written in Lua so that threads
waiting on socket I/O (even using APIs like accept) can relinquish the
processor to ready threads.
e
--
Doug Currie
Londonderry, NH, USA