Another completely different solution is to use Luerl https://github.com/rvirding/luerl which is an implementation of Lua 5.3 running on top of Erlang. Luerl gives you full access to the all the concurrency and fault tolerance properties that Erlang provides.
I'm looking for a "lightweight threads" thread pool that I can submit parallel tasks to; no communication between threads required. What package should I use? (I'm on lua 5.4) Thanks.