On Thu, Apr 14, 2011 at 06:07, Fabio Mascarenhas <[email protected]> wrote:
> On Wed, Apr 13, 2011 at 5:11 PM, Alexander Gladysh <[email protected]> wrote:

> I think we are talking past each other.

Perhaps. Sorry if that is the case.

> What I am trying to say is
> that I do not see a way to add the features you need to every WSAPI
> connector without dragging several other dependencies, and event
> handling/threading/async is currently very messy in Lua. But adding
> the capability to do what you want is not difficult if you are willing
> to bite the bullet and include the necessary dependencies:

> https://gist.github.com/918768

> This uses Robert's threading library and 0MQ binding, so will also
> work with LuaJIT. Farm blocking stuff to the helper threads that send
> messages to the application when they have stuff for the app to do.
> The application checks its inbox whenever it is idle.

I will consider this carefully.

One extra thread per fork upsets me deeply (maybe it should not).

Do not read this as critique, but I think that it is a sign that I
should not use WSAPI anymore (my problem, not WSAPI problem). Sadly I
have too much legacy code to afford a switch now, so I guess I have to
find some compromise for a while...

Alexander.

_______________________________________________
Kepler-Project mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/

Reply via email to