From: ara.t.howard@... Date: 2006-07-22T02:12:06+09:00 Subject: Re: Beyond threads? Better concurrency methods? On Sat, 22 Jul 2006, Dido Sevilla wrote: > On 7/20/06, M. Edward (Ed) Borasky wrote: >> Strangely enough, I don't recall ever seeing a *real* programming >> language, to be distinguished from academic ones, that ever handled >> parallelism in a manner other than as calls to run-time libraries. Ruby >> already has that. > > There's the Limbo programming language, invented by Rob Pike, Phil > Winterbottom, and some of the other guys responsible for Plan 9, used > in the Inferno operating system [1]. It essentially implements > communicating sequential processes: it incorporates typed > communication channels between processes as a language primitive, and > provides built-in mechanisms for using them for synchronization and > communication. It's an interesting piece of work, and I for one would > like to see Ruby with similar features in the future. > > [1] www.vitanuova.com fortytwo :~ > cat a.rb require 'slave' class ServerA def meth() 40 end end class ServerB def meth() 2 end end sa, sb = [ServerA, ServerB].map{|c| Slave.new c.new} p sa.pid p sb.pid a, b = sa.object, sb.object p(a.meth + b.meth) fortytwo :~ > ruby a.rb 26206 26207 42 -a -- suffering increases your inner strength. also, the wishing for suffering makes the suffering disappear. - h.h. the 14th dali lama