On 1/18/07, Daniel Berger <djberg96 / gmail.com> wrote: > Pit Capitain wrote: > > In this blog post > > > > > > http://moonbase.rydia.net/mental/blog/programming/concurrency-five-ways.html > > > > MenTaLguY shows how to implement a thread-safe queue using five > > different concurrency models found in Ruby and other languages. He shows > > how they would look like in Ruby and explains how they would work. > > Very interesting stuff, especially in light of the fact that I was just > going over the Fortress spec the other day, and I've already spotted > one similarity: > > atomic do > ... > end > > Yep, the Fortress syntax and the syntax Mentalguy came up with are > identical. Coincidence? I think not. > Actually, that syntax is from the original paper that introduced STM. Nobody in Ruby-land made it up. Heh.