RabbitMQ bindings for Lua

“The amqp.lua package adds support for sending messages to RabbitMQ via LuaJIT FFI. This allows a Lua programmer to communicate with other programs using enterprise grade messaging infrasturcture. The module amqp.lua makes use of LuaJIT’s awesome foreign function interface (FFI) to invoke the librabbitmq’s functions directly. It exposes a simplified interface to librabbitmq natively, but also preserves the ability of an intrepid programmer to use the full depth of the upstream library…”

https://github.com/cthulhuology/amqp.lua

Advertisements

Common Pitfalls in Writing Lock-Free Algorithms

“Formally, a multi-threaded algorithm is considered to be lock-free if there is an upper bound on the total number of steps it must perform between successive completions of operations.
The statement is simple, but its implications are deep – at every stage, a lock-free algorithm guarantees forward progress in some finite number of operations. Deadlock is impossible…”

http://developers.memsql.com/blog/common-pitfalls-in-writing-lock-free-algorithms/

 

Pragmatic Lua Basics in 30 Minutes

“However, Lua is not considered as a mainstream language and it does not have hype of some languages, say Ruby, so there are not a lot of tutorials, especially the quick introduction of the language for programmers of other language. So I decide to write one. I have to say I am by no means a Lua expert (You probably figure that out already), so please correct me for if I make any mistake. Also, this is an pragmatic introduction to the language for (experienced) programmers. So I am not gonna spend time on programming basics…”

http://ruoyusun.com/2013/03/23/pragmatic-lua-basics-in-30-mins.html
http://ruoyusun.com/2013/03/30/pragmatic-lua-error-handling-oop-closure-and-coroutines.html