[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Any tips on 2 process vinyl to file converter?
- From: "Robert G. Jakabosky" <bobby@...>
- Date: Thu, 27 Jan 2011 00:58:46 -0800
On Wednesday 26, Steve Litt wrote:
> I'm thinking of redoing this in Lua. Can coroutines be run in two different
> xterms? Can coroutines signal each other? Would you even recommend
> coroutines? Does Lua have facilities to send Linux signals? Might they
> communicate via sockets? Any other words of wisdom?
You could use ConcurrentLua [1], which has a distributed mode that lets
coroutine "tasks" communicate in an erlang style of message-passing between
PIDs. So you would run one instance of Lua in each xterm window, there could
even be background instances of Lua running worker tasks.
Another option would be to use ZeroMQ [2] for message passing between
instances of Lua.
For Linux signals, you can use luaposix [3]. It has a kill function that
would work.
1. http://concurrentlua.luaforge.net/introduction.html
2. http://concurrentlua.luaforge.net/introduction.html
3. http://luaforge.net/projects/luaposix/
--
Robert G. Jakabosky