lua-users home
lua-l archive

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


在 2015/7/25 17:40, Mason Bogue 写道:
http://www.inf.puc-rio.br/~roberto/docs/ry08-05.pdf

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[1] not very long ago.
you might want to check that.
it uses an M:N scheduler and channels.
I feel it similar to 'luaproc'.

[1] http://lua-users.org/lists/lua-l/2015-04/msg00441.html

--
the nerdy Peng / 书呆彭 / Sent from Thunderbird