Dinosawer wrote:Might or might not be useful, but there exists and implementation for shared memory dictionaries in LUA (which seems to support LuaJIT too):
https://github.com/openresty/lua-nginx- ... shareddict
Might wanna take a look in their source and see how they did it, and expand it for tables/whatever you need to share
Interesting, thanks for the link...if indeed it works well, that'd really be all I need (or at least a large step in the right direction). Everything's a table in LUA, and table / dictionary are synonymous so if it works I might be able to just drop it in and let the threading solution I've already got do the rest
afasthorse wrote:Here's a github repository containing what I believe is The One True LuaThread: https://github.com/jjensen/luaplus51-al ... /luathread
Unfortunately it's no longer maintained and this repo is just holding the source of the original project, but maybe it gives you something to work from.
Alternatively you could try contacting the author directly, pretty sure this is him: http://w3.impa.br/~diego/
Ah thank you thank you, it does look like the right LuaThread. And the source is small so even if it's not maintained, if it does what I need I should be able to learn pretty quickly how it does it.
Flatfingers wrote:Thank you for keeping us (so to speak) in the loop, Josh.
If that was the intentional pun I think it was, nicely-played sir
Freezin4aReason wrote:Turns out you aren't the only one to build a Threadpool:
Very cute Good movie too