News for hackers. Stuff that matters.
Re:JavaScript right on the hardware by drdaeman on Wednesday August 14, 2013 @07:34PM (#6215183)
I'm curious. I persume, with quite powerful hardware, task's not going to be trivial and may require some concurrently running processes.

JVM has threads. Akka adds actors (those seem quite nice when used with Scala). Does Lua/LuaJIT offer something simple-looking-yet-powerful in that area?

Re:JavaScript right on the hardware by anonymoushn on Wednesday August 14, 2013 @08:34PM (#6215431)
This comment is a bit incoherent, so I'm not sure if I'm responding correctly at all. Your C/C++ program can contain any number of Lua states, and can also contain an infrastructure for passing messages between these states. The states themselves are single-threaded. Within a single Lua state, you can have any number of coroutines, but these do not work like JVM threads or goroutines; they must be scheduled explicitly.