[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: status and perceptions of luaproc
- From: 书呆彭, Peng Yi <nerditation@...>
- Date: Thu, 30 Jul 2015 14:33:38 +0800
在 2015/7/25 17:40, Mason Bogue 写道:
This library -- which seems to show that Lua can handle concurrent
programming quite well -- doesn't appear to be maintained. That's
unfortunate, because I don't know if the other solutions available
replicate the advantages of luaproc, viz. performance and simplicity.
The major alternative, Lua Lanes, doesn't seem to be terrifically fast
and seems to have been in bugfix mode for two years (
https://github.com/LuaLanes/lanes/commits/master ), while the
commonly-accepted solution is to use llthreads with 0mq, and I have a
hard time believing either of these even comes close to luaproc,
performance-wise, considering that Skyrme et al went as far as to draw
comparisons to Erlang while spinning up myriad fibers; Lanes' green
threads are much heavier than fibers and its scheduler was good but
not spectacular the last time I checked, whereas llthreads is 1:1, not
M:N (thus a very different model).
after reading the thesis, I recall a library called 'ltask'
from this thread not very long ago.
you might want to check that.
it uses an M:N scheduler and channels.
I feel it similar to 'luaproc'.
the nerdy Peng / 书呆彭 / Sent from Thunderbird