<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>The Vose Way: Concurrent code in Ruby 1.8.6 through inlining</title>
    <link>http://www.chuckvose.com/articles/2008/01/07/concurrent-code-in-ruby-1-8-6-through-inlining</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>A Blog about Butter, Cheese, and all things Vosian</description>
    <item>
      <title>Concurrent code in Ruby 1.8.6 through inlining</title>
      <description>&lt;p&gt;&lt;strong&gt;Slight typo in the code fixed: 2008-01-08&lt;/strong&gt;&lt;/p&gt;


	&lt;p&gt;Toshiyuki and I have released a new gem called rbridge which allows us to execute functional, side-effect free, concurrent code directly in Ruby regardless of the version by using Erlang as a processor. This includes using the Mnesia distributed database and &lt;span class="caps"&gt;ETS&lt;/span&gt;/DETS.&lt;/p&gt;


	&lt;p&gt;To try it out please follow these steps:&lt;/p&gt;


	&lt;p&gt;1. Download Erlang for your os. Windows has binaries and &lt;span class="caps"&gt;OS X&lt;/span&gt; can be configured with `./configure&amp;#8212;prefix=/opt/local` to make MacParts happy. I haven&amp;#8217;t yet tried it with Linux but the default configure options should be okay.&lt;/p&gt;


	&lt;p&gt;2. Download the rbridge gem. `sudo gem install rbridge`&lt;/p&gt;


	&lt;p&gt;3. Start the rulang server in Erlang on port 9900. Change dir to the gem directory which is usually /usr/local/lib/ruby/gems/1.8/gems/rbridge-0.1/lib and run &lt;strong&gt;sudo erlc rulang.erl&lt;/strong&gt;. Enter the Erlang shell by typing &lt;strong&gt;erl&lt;/strong&gt;. Finally, start the server with &lt;strong&gt;rulang:start_server(9900).&lt;/strong&gt; (There&amp;#8217;s a dot at the end of the command).&lt;/p&gt;


	&lt;p&gt;4. Require rubygems and rbridge in your code and create a new connection to the rulang server. This is the simplest bit of inline code I can think of but there is a lot more we can do: asynchronous access and ruby-style syntax specifically.&lt;/p&gt;


&lt;pre&gt;
require 'rubygems'
require 'rbridge'

@r = RBridge.new(nil, 'localhost', 9900)

puts @r.erl('10*10.')
&lt;/pre&gt;

	&lt;p&gt;To read more check out the documentation on &lt;a href="http://ruby-mnesia.rubyforge.org"&gt;ruby-mnesia.rubyforge.org&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;Aside:&lt;/strong&gt; Toshiyuki Hirooka found me. Thank you to everyone that helped search and offered to translate for us. I&amp;#8217;m constantly impressed by the support from the Ruby community.&lt;/p&gt;</description>
      <pubDate>Mon, 07 Jan 2008 13:11:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:dd7dc46a-8bfa-4828-bcc9-2136ee24bd1b</guid>
      <author>vosechu@create-on.com (Chuck Vose)</author>
      <link>http://www.chuckvose.com/articles/2008/01/07/concurrent-code-in-ruby-1-8-6-through-inlining</link>
      <category>Ruby</category>
      <category>Erlang</category>
      <category>Ruby</category>
      <category>Erlang</category>
      <category>rbridge</category>
      <category>rulang</category>
      <category>gems</category>
    </item>
    <item>
      <title>"Concurrent code in Ruby 1.8.6 through inlining" by cribbble</title>
      <description>&lt;p&gt;&lt;a href="http://www.cribbble.com/" rel="nofollow"&gt;cribbble&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;USKO is the globalized version of the game; the developers sign contracts with publishing houses, like K2/G1, who distribute the game to a larger audience on behalf of the developers. There was no purchase and K2/G1 does not hold any ownership of Knight Online.&lt;/p&gt;</description>
      <pubDate>Wed, 21 Dec 2011 16:28:50 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:9122a74d-fcc9-4d73-8a43-478515517b12</guid>
      <link>http://www.chuckvose.com/articles/2008/01/07/concurrent-code-in-ruby-1-8-6-through-inlining#comment-2014</link>
    </item>
    <item>
      <title>"Concurrent code in Ruby 1.8.6 through inlining" by lacoste outlet</title>
      <description>&lt;p&gt;I thought I would leave my first comment. I dont know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often.&lt;/p&gt;</description>
      <pubDate>Tue, 20 Dec 2011 01:39:14 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:6630e745-5e82-4856-a3cf-d2441dc38f05</guid>
      <link>http://www.chuckvose.com/articles/2008/01/07/concurrent-code-in-ruby-1-8-6-through-inlining#comment-1994</link>
    </item>
    <item>
      <title>"Concurrent code in Ruby 1.8.6 through inlining" by tiffany uk sale</title>
      <description>&lt;p&gt;tiffany uk sale&lt;/p&gt;</description>
      <pubDate>Wed, 30 Nov 2011 08:19:26 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:7282f7bf-1368-4e64-b1a2-619644339018</guid>
      <link>http://www.chuckvose.com/articles/2008/01/07/concurrent-code-in-ruby-1-8-6-through-inlining#comment-1874</link>
    </item>
    <item>
      <title>"Concurrent code in Ruby 1.8.6 through inlining" by superdry uk</title>
      <description>&lt;p&gt;to maintain such a high rating as you&#8217;ve been generous enough to accord to me. In these historic and lovely&lt;/p&gt;</description>
      <pubDate>Wed, 16 Nov 2011 01:01:01 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:04a0572f-6213-4f1d-b4a1-d05212fa481c</guid>
      <link>http://www.chuckvose.com/articles/2008/01/07/concurrent-code-in-ruby-1-8-6-through-inlining#comment-1816</link>
    </item>
    <item>
      <title>"Concurrent code in Ruby 1.8.6 through inlining" by lacoste uk</title>
      <description>&lt;p&gt;This kind of clever work and reporting! Keep up the wonderful works guys I&#8217;ve you guys to our blog roll.&lt;/p&gt;</description>
      <pubDate>Tue, 08 Nov 2011 01:42:10 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:666392de-caa0-41ad-9681-b451aabbe68e</guid>
      <link>http://www.chuckvose.com/articles/2008/01/07/concurrent-code-in-ruby-1-8-6-through-inlining#comment-1774</link>
    </item>
    <item>
      <title>"Concurrent code in Ruby 1.8.6 through inlining" by term paper</title>
      <description>&lt;p&gt;Not actually in the mood to write anything. It&#8217;s the southern summer humidity getting to my brain. Congratulation to both nominees and winners.&lt;/p&gt;</description>
      <pubDate>Tue, 18 Oct 2011 09:28:04 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:f8eb9dd4-2643-4622-9c6e-ace0a10784f3</guid>
      <link>http://www.chuckvose.com/articles/2008/01/07/concurrent-code-in-ruby-1-8-6-through-inlining#comment-1730</link>
    </item>
    <item>
      <title>"Concurrent code in Ruby 1.8.6 through inlining" by red bottoms</title>
      <description>&lt;p&gt;red bottoms&lt;/p&gt;</description>
      <pubDate>Fri, 07 Oct 2011 22:23:22 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:c5fc42f8-ccb0-4a86-acc9-50097e3ed18c</guid>
      <link>http://www.chuckvose.com/articles/2008/01/07/concurrent-code-in-ruby-1-8-6-through-inlining#comment-1631</link>
    </item>
    <item>
      <title>"Concurrent code in Ruby 1.8.6 through inlining" by ralph lauren</title>
      <description>&lt;p&gt;ralph lauren cai bu guan ni&lt;/p&gt;</description>
      <pubDate>Fri, 07 Oct 2011 22:20:57 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:c01e5614-4084-4bbf-8d1e-5d282abf8ff2</guid>
      <link>http://www.chuckvose.com/articles/2008/01/07/concurrent-code-in-ruby-1-8-6-through-inlining#comment-1629</link>
    </item>
    <item>
      <title>"Concurrent code in Ruby 1.8.6 through inlining" by christian louboutin</title>
      <description>&lt;p&gt;christian louboutin&lt;/p&gt;</description>
      <pubDate>Fri, 07 Oct 2011 22:17:44 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:2e68899a-b7d0-4780-ad4c-b9a13e9c1514</guid>
      <link>http://www.chuckvose.com/articles/2008/01/07/concurrent-code-in-ruby-1-8-6-through-inlining#comment-1625</link>
    </item>
    <item>
      <title>"Concurrent code in Ruby 1.8.6 through inlining" by superdry uk</title>
      <description>&lt;p&gt;authorities of Harvard this morning. I am overwhelmed, as a matter of fact, and I am rather fearful of my inability&lt;/p&gt;</description>
      <pubDate>Mon, 19 Sep 2011 01:58:07 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:9e0bb56b-f901-4038-8319-b5ffbde3d3c1</guid>
      <link>http://www.chuckvose.com/articles/2008/01/07/concurrent-code-in-ruby-1-8-6-through-inlining#comment-1560</link>
    </item>
    <item>
      <title>"Concurrent code in Ruby 1.8.6 through inlining" by online marketing</title>
      <description>&lt;p&gt;I love what you guys tend to be up too. This kind of clever work and reporting! Keep up the wonderful works guys I&amp;#8217;ve  you guys to our blog roll.&lt;/p&gt;</description>
      <pubDate>Wed, 06 Jul 2011 05:44:32 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:06908815-7cf4-4fdf-8371-df6dec84f4c9</guid>
      <link>http://www.chuckvose.com/articles/2008/01/07/concurrent-code-in-ruby-1-8-6-through-inlining#comment-1281</link>
    </item>
    <item>
      <title>"Concurrent code in Ruby 1.8.6 through inlining" by http://www.tiffanyandcoonline.com/</title>
      <description>&lt;p&gt;These shoes are awesome! They are light weight and super comfortable.I am &lt;a href=" &lt;a href=" rel="nofollow"&gt;http://www.tiffanyandcoonline.com/&lt;/a&gt;"&gt;Tiffany And Co Outlet lover&lt;/p&gt;</description>
      <pubDate>Wed, 13 Apr 2011 22:02:10 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:5e378047-db5e-47f4-8a91-f2222d937462</guid>
      <link>http://www.chuckvose.com/articles/2008/01/07/concurrent-code-in-ruby-1-8-6-through-inlining#comment-800</link>
    </item>
    <item>
      <title>"Concurrent code in Ruby 1.8.6 through inlining" by tiffany and co outlet</title>
      <description>&lt;p&gt;I am profoundly grateful, touched by the great distinction and honor and great compliment accorded me by the&lt;/p&gt;


	&lt;p&gt;authorities of Harvard this morning. I am overwhelmed, as a matter of fact, and I am rather fearful of my inability&lt;/p&gt;


	&lt;p&gt;to maintain such a high rating as you&amp;#8217;ve been generous enough to accord to me. In these historic and lovely&lt;/p&gt;


	&lt;p&gt;surroundings, this perfect day, and this very wonderful assembly, it is a tremendously impressive thing to an&lt;/p&gt;


	&lt;p&gt;individual in my position.&lt;a href="http://www.tiffanyandcooutlet.net/" rel="nofollow"&gt;tiffany and co outlet&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 11 Apr 2011 21:28:10 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:2d4b3195-e87e-45e9-91e6-bd4e739a7aed</guid>
      <link>http://www.chuckvose.com/articles/2008/01/07/concurrent-code-in-ruby-1-8-6-through-inlining#comment-775</link>
    </item>
    <item>
      <title>"Concurrent code in Ruby 1.8.6 through inlining" by car rental india</title>
      <description>&lt;p&gt;Thanks dude, this is absolutely fantastic post&amp;#8230;. I like it&lt;/p&gt;</description>
      <pubDate>Sat, 26 Mar 2011 10:32:04 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:02f28385-b321-410b-87f3-226474206816</guid>
      <link>http://www.chuckvose.com/articles/2008/01/07/concurrent-code-in-ruby-1-8-6-through-inlining#comment-640</link>
    </item>
    <item>
      <title>"Concurrent code in Ruby 1.8.6 through inlining" by skin tag removal at home</title>
      <description>&lt;p&gt;Good post thanks for the help .i was searching for this&amp;#8230;.&lt;/p&gt;</description>
      <pubDate>Mon, 28 Feb 2011 02:12:09 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:572dfb52-e6ce-4cfe-b817-79473d87d523</guid>
      <link>http://www.chuckvose.com/articles/2008/01/07/concurrent-code-in-ruby-1-8-6-through-inlining#comment-607</link>
    </item>
    <item>
      <title>"Concurrent code in Ruby 1.8.6 through inlining" by Pittsburgh events</title>
      <description>&lt;p&gt;I am absolutely amazed at how terrific the stuff is on this site. I have saved this webpage and I truly intend on visiting the site in the upcoming days. Keep up the excellent work!&lt;/p&gt;</description>
      <pubDate>Fri, 25 Feb 2011 04:34:03 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:c998da4e-5ca1-4ca0-ade7-16c09cd9b415</guid>
      <link>http://www.chuckvose.com/articles/2008/01/07/concurrent-code-in-ruby-1-8-6-through-inlining#comment-598</link>
    </item>
    <item>
      <title>"Concurrent code in Ruby 1.8.6 through inlining" by mma fight gear</title>
      <description>&lt;p&gt;I found this website very interesting and the post content the good updated information thanks a lot.&lt;/p&gt;</description>
      <pubDate>Sat, 19 Feb 2011 00:42:46 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:6c1d688f-498e-4af9-9b50-fbec06ade83d</guid>
      <link>http://www.chuckvose.com/articles/2008/01/07/concurrent-code-in-ruby-1-8-6-through-inlining#comment-575</link>
    </item>
    <item>
      <title>"Concurrent code in Ruby 1.8.6 through inlining" by knock off watches</title>
      <description>&lt;p&gt;the whole day just to drink too little, then it can be a problem if they get just before the meal thirst. Th&lt;/p&gt;</description>
      <pubDate>Sun, 10 Oct 2010 03:48:02 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:7a8d026f-3a2d-48af-8ad1-c818f8b47590</guid>
      <link>http://www.chuckvose.com/articles/2008/01/07/concurrent-code-in-ruby-1-8-6-through-inlining#comment-386</link>
    </item>
    <item>
      <title>"Concurrent code in Ruby 1.8.6 through inlining" by coupon codes</title>
      <description>&lt;p&gt;This is produced by the sun enough vitamin D for a week in the body. It may be that the children get the whole day just to drink too little, then it can be a problem if they get just before the meal thirst. This one has good health, you need good, healthy food, good digestion, good elimination.&lt;/p&gt;</description>
      <pubDate>Sat, 02 Oct 2010 15:24:24 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:686a5a4c-6b49-481b-8c0e-611bac994ce7</guid>
      <link>http://www.chuckvose.com/articles/2008/01/07/concurrent-code-in-ruby-1-8-6-through-inlining#comment-384</link>
    </item>
  </channel>
</rss>

