<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Global Nerdy &#187; update</title>
	<atom:link href="http://www.globalnerdy.com/tag/update/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.globalnerdy.com</link>
	<description>Tech Evangelist Joey deVilla on software development, tech news and other nerdy stuff</description>
	<lastBuildDate>Fri, 19 Mar 2010 00:24:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Take the New Ruby for a Spin</title>
		<link>http://www.globalnerdy.com/2007/11/28/take-the-new-ruby-for-a-spin/</link>
		<comments>http://www.globalnerdy.com/2007/11/28/take-the-new-ruby-for-a-spin/#comments</comments>
		<pubDate>Wed, 28 Nov 2007 17:28:30 +0000</pubDate>
		<dc:creator>Joey deVilla</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://globalnerdy.com/2007/11/28/take-the-new-ruby-for-a-spin/</guid>
		<description><![CDATA[TURBOCHARGE! It&#8217;s assrockets all over again. What is it with people and sticking objects up their butts?
The real point to take from Antonio Cangiano&#8217;s article, Holy Shmoly, Ruby 1.9 smokes Python away!, is not that Ruby 1.9 runs circles around Python, but that Ruby 1.9&#8217;s performance appears to be dramatically better than Ruby 1.8&#8217;s.
Keep in [...]]]></description>
			<content:encoded><![CDATA[<p></p><p style="text-align:center;"><img src='http://globalnerdy.com/wordpress/wp-content/uploads/2007/11/turbocharged_motorcycle.jpg' alt='Man on motorbike with beans by the handlebars and a large nozzle up his butt.' width="440" height="294" /><br /><span class="caption"><strong><em>TURBOCHARGE!</em> It&#8217;s <a href="http://globalnerdy.com/2007/11/25/assrockets-and-opportunities-or-why-i-changed-jobs/">assrockets</a> all over again.</strong> What is it with people and sticking objects up their butts?</span></p>
<p>The real point to take from Antonio Cangiano&#8217;s article, <a href="http://antoniocangiano.com/2007/11/28/holy-shmoly-ruby-19-smokes-python-away/"><strong><cite>Holy Shmoly, Ruby 1.9 smokes Python away!</cite></strong></a>, is not that Ruby 1.9 runs circles around Python, but that Ruby 1.9&#8217;s performance <em>appears</em> to be dramatically better than Ruby 1.8&#8217;s.</p>
<p>Keep in mind that the article cites only one benchmark, a simple Fibonacci script:</p>
<pre><code>
def fib(n)
  if n == 0 || n == 1
    n
  else
    fib(n-1) + fib(n-2)
  end
end

36.times do |i|
  puts "n=#{i} => #{fib(i)}"
end
</code></pre>
<p>On Cangiano&#8217;s machine, Ruby 1.8 took <strong>159 seconds</strong> to run the script. Ruby 1.9 completed the task 13 times faster, clocking in at just under <strong>12 seconds</strong>.</p>
<p>I&#8217;ll repeat what I said earlier: <strong>this is just one test.</strong> If you want to give Ruby 1.9 a proper performance shakedown, you&#8217;ll need to install it on your machine and compare its performance with Ruby 1.8 using a number of scripts. Luckily, the <cite>Ruby Inside</cite> blog has an article titled <a href="http://www.rubyinside.com/how-to-start-playing-with-ruby-19-right-now-661.html"><strong><cite>How to Start Playing with Ruby 1.9 Right Now!</cite></strong></a> that provides easy instructions for acquiring and installing Ruby 1.9 in its own separate directory. I may just have to take 1.9 for a spin soon.</p>
<h3>Links</h3>
<ul>
<li><a href="http://antoniocangiano.com/"><cite>Zen and the Art of Ruby Programming:</cite></a> <a href="http://antoniocangiano.com/2007/11/28/holy-shmoly-ruby-19-smokes-python-away/"><strong><cite>Holy Shmoly, Ruby 1.9 smokes Python away!</cite></strong></a></li>
<li><a href="http://www.rubyinside.com/"><cite>Ruby Inside:</cite></a> <a href="http://www.rubyinside.com/how-to-start-playing-with-ruby-19-right-now-661.html"><strong><cite>How to Start Playing with Ruby 1.9 Right Now!</cite></strong></a></li>
<li><a href="http://eigenclass.org/"><cite>Eigenclass:</cite></a> <a href="http://eigenclass.org/hiki.rb?Changes+in+Ruby+1.9"><strong><cite>Changes in Ruby 1.9</cite></strong></a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.globalnerdy.com/2007/11/28/take-the-new-ruby-for-a-spin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
