<?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: Tag rbridge</title>
    <link>http://www.chuckvose.com/articles/tag/rbridge</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>A Blog about Butter, Cheese, and Ruby on Rails</description>
    <item>
      <title>RBridge 0.2</title>
      <description>&lt;p&gt;RBridge has undergone a lot of bug fixes and I think it&amp;#8217;s worthy of a 0.2 release at long last.&lt;/p&gt;


	&lt;p&gt;1 major enhancement&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;Actually runs headless via the rulang command.&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;3 minor enhancements&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;Uses optparse for clearer command-line options.&lt;/li&gt;
		&lt;li&gt;Option to specify port, compile directory, mnesia directory, sname, and location of server file.&lt;/li&gt;
		&lt;li&gt;Some error checking, and debug output added. Checks to see if server is already running on specified port.&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;You can check it out &lt;a href="http://ruby-mnesia.rubyforge.org"&gt;here&lt;/a&gt; or just &lt;i&gt;gem install rbridge&lt;/i&gt;&lt;/p&gt;</description>
      <pubDate>Sat, 24 May 2008 02:12:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:e486a1c7-eb55-4bb4-9de2-3f9b6b133a2e</guid>
      <author>vosechu@create-on.com (Chuck Vose)</author>
      <link>http://www.chuckvose.com/articles/2008/05/24/rbridge-2-0</link>
      <category>Ruby</category>
      <category>Erlang</category>
      <category>rbridge</category>
      <category>Ruby</category>
      <category>Erlang</category>
    </item>
    <item>
      <title>RBridge-0.1.2 Announcement</title>
      <description>&lt;p&gt;Just wanted to poke my head in and let people know that a new version of rbridge has been released. New to this revision is a few little tweaks and bug fixes but the main point is that you can install the gem and just type &amp;#8216;rulang&amp;#8217; from anywhere to start the erlang server. This enabled us to build a little test suite which should improve quality.&lt;/p&gt;


	&lt;p&gt;Also, the end of quarter summary has been posted per our class requirements:
&lt;a href="http://www.chuckvose.com/pages/eoq_review"&gt;Review&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 10 Mar 2008 16:20:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:38349606-a616-426e-a984-65dc6dbe962e</guid>
      <author>vosechu@create-on.com (Chuck Vose)</author>
      <link>http://www.chuckvose.com/articles/2008/03/10/rbridge-0-1-2-announcement</link>
      <category>Ruby</category>
      <category>Erlang</category>
      <category>rbridge</category>
      <category>release</category>
      <category>Ruby</category>
      <category>Erlang</category>
      <category>announcement</category>
    </item>
    <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 -0600</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>
  </channel>
</rss>
