There is a Ruby version that is also very readable: https://github.com/ileitch/disruptor
(Disclaimer: I wrote it.)
(Disclaimer: I wrote it.)