This is a proof-of-concept of a couple of concurrent data structures written in Ruby.
The implementations are heavily commented for those interested. There are benchmarks (with results) included below. The results are interesting, but, as always, take with a grain of salt.
AtomicLinkedQueue is a lock-free queue, built on atomic CAS operations.
|# CentOS rbenv system wide installation script|
|# Forked from https://gist.github.com/1237417|
|# Installs rbenv system wide on CentOS 5/6, also allows single user installs.|
|# Install pre-requirements|
|yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel \|
|make bzip2 autoconf automake libtool bison iconv-devel git-core|