<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Are you concerned about ruby being slow?</title>
	<link>http://www.rubyfleebie.com/are-you-concerned-about-ruby-being-slow/</link>
	<description>Because programming should be fun</description>
	<pubDate>Tue, 16 Mar 2010 23:23:09 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.2</generator>

	<item>
		<title>By: Dave</title>
		<link>http://www.rubyfleebie.com/are-you-concerned-about-ruby-being-slow/#comment-159</link>
		<author>Dave</author>
		<pubDate>Fri, 20 Apr 2007 16:18:23 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/are-you-concerned-about-ruby-being-slow/#comment-159</guid>
					<description>First, let me say that I'm a long time DotNet and MS technologies programmer.  I am also looking at RaR, with a couple other guys who are more proficient with it, for a potential startup project that we're looking at doing.  To say that I'm not troubled by the decision would be an understatement.  About half of that is performance related worries, the other half is a distinct dislike of Ruby syntax.

Furthermore, C# on .NET has available similar libraries to take a lot of the pain out of the programming, jut like Rails does.  I'm personally most familiar with a framework called Gentle which is an ORM that I've written extensions to to make it more "rails like" and take some of the grunt work out of building an application.  It still needs a lot of work, and the Gentle project appears nearly dead due to lack of support, further vexing my decision...

The other two guys are NOT MS types, so I can completely understand them not wanting to do the investment needed to get into .NET.  So, I am at a sort of cross roads of decisions, and I'm not comfortable with any answer.

I don't know enough about YARV to make any claims of faith.  I assume that most languages and technologies can be made to perform better, if enough effort it put into them.</description>
		<content:encoded><![CDATA[<p>First, let me say that I&#8217;m a long time DotNet and MS technologies programmer.  I am also looking at RaR, with a couple other guys who are more proficient with it, for a potential startup project that we&#8217;re looking at doing.  To say that I&#8217;m not troubled by the decision would be an understatement.  About half of that is performance related worries, the other half is a distinct dislike of Ruby syntax.</p>
<p>Furthermore, C# on .NET has available similar libraries to take a lot of the pain out of the programming, jut like Rails does.  I&#8217;m personally most familiar with a framework called Gentle which is an ORM that I&#8217;ve written extensions to to make it more &#8220;rails like&#8221; and take some of the grunt work out of building an application.  It still needs a lot of work, and the Gentle project appears nearly dead due to lack of support, further vexing my decision&#8230;</p>
<p>The other two guys are NOT MS types, so I can completely understand them not wanting to do the investment needed to get into .NET.  So, I am at a sort of cross roads of decisions, and I&#8217;m not comfortable with any answer.</p>
<p>I don&#8217;t know enough about YARV to make any claims of faith.  I assume that most languages and technologies can be made to perform better, if enough effort it put into them.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Chris B</title>
		<link>http://www.rubyfleebie.com/are-you-concerned-about-ruby-being-slow/#comment-168</link>
		<author>Chris B</author>
		<pubDate>Sat, 21 Apr 2007 17:48:32 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/are-you-concerned-about-ruby-being-slow/#comment-168</guid>
					<description>I thought... and I could well be completely wrong about this... that the new ruby 2.0 interpreter that matz and crew are working on is meant to be *much* faster. Like I say I could be wrong about that but from my various readings over the last year or so that is the impression I get.
I certainly agree that ruby is slow compared with other interpreted languages, but I think it is probably only a real-world issue in Rails apps for those people running seriously busy sites... again I could be wrong... ;o) wouldn't be the first or last time! ;o)</description>
		<content:encoded><![CDATA[<p>I thought&#8230; and I could well be completely wrong about this&#8230; that the new ruby 2.0 interpreter that matz and crew are working on is meant to be *much* faster. Like I say I could be wrong about that but from my various readings over the last year or so that is the impression I get.<br />
I certainly agree that ruby is slow compared with other interpreted languages, but I think it is probably only a real-world issue in Rails apps for those people running seriously busy sites&#8230; again I could be wrong&#8230; ;o) wouldn&#8217;t be the first or last time! ;o)</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.rubyfleebie.com/are-you-concerned-about-ruby-being-slow/#comment-170</link>
		<author>Frank</author>
		<pubDate>Sat, 21 Apr 2007 20:51:57 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/are-you-concerned-about-ruby-being-slow/#comment-170</guid>
					<description>@Dave

That's interesting. I have build web applications in .NET (VB) for the last 4 years. Even though I recognize that .NET is a powerful platform, I find that Rails is so much better. This last comment should be taken with a grain of salt however... since I only worked with version 1.1. I heard things have changed a little since then :) But, it's like I' m just fed up with .NET. My last full year as a .NET developer bored me to death, I swear. When I decided to try RoR, it was like my saving grace. 

Never heard about that Gentle framework. If it helps building .NET applications faster than it's good news.

@Chris

Well, if Ruby 2.0 becomes much faster like you said, it will be in part because of YARV which is planned to be integrated in this version. 

Btw, that's one awesome website! I just rated it on StumbleUpon... I hope it will bring you some well deserved traffic. Do you use AJAX to load content or is it only preloaded javascript?</description>
		<content:encoded><![CDATA[<p>@Dave</p>
<p>That&#8217;s interesting. I have build web applications in .NET (VB) for the last 4 years. Even though I recognize that .NET is a powerful platform, I find that Rails is so much better. This last comment should be taken with a grain of salt however&#8230; since I only worked with version 1.1. I heard things have changed a little since then <img src='http://www.rubyfleebie.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> But, it&#8217;s like I&#8217; m just fed up with .NET. My last full year as a .NET developer bored me to death, I swear. When I decided to try RoR, it was like my saving grace. </p>
<p>Never heard about that Gentle framework. If it helps building .NET applications faster than it&#8217;s good news.</p>
<p>@Chris</p>
<p>Well, if Ruby 2.0 becomes much faster like you said, it will be in part because of YARV which is planned to be integrated in this version. </p>
<p>Btw, that&#8217;s one awesome website! I just rated it on StumbleUpon&#8230; I hope it will bring you some well deserved traffic. Do you use AJAX to load content or is it only preloaded javascript?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Smokinn</title>
		<link>http://www.rubyfleebie.com/are-you-concerned-about-ruby-being-slow/#comment-174</link>
		<author>Smokinn</author>
		<pubDate>Mon, 23 Apr 2007 05:45:28 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/are-you-concerned-about-ruby-being-slow/#comment-174</guid>
					<description>I don't think presenting Twitter as a model of Ruby scaling is at all valid.

First, are you talking about Ruby or are you talking about Ruby on Rails? Two very separate things.

Ruby, like you say, is slower than Python. Whether this will still be true when Yarv comes along we don't know. Either way, I say it doesn't matter. It doesn't matter because the vast majority of a program isn't all that affected by computation speed, especially when talking about a web application. Not only that, but if your program is sluggish, you can easily profile your application and, if it's not possible to optimize it more, replace the bottleneck entirely with C. It's actually very easy to do in Ruby.

Now for Rails. The twitter case I'm not really happy about people using as an example of scalability. First off, they can get up to 12,000 hits/second. That's a massive amount of traffic. Their first bottleneck was computational but when they added more mongrel servers, this bottleneck was resolved. Their complaint is that it's difficult to connect one application to multiple databases with Rails. As DHH pointed out, this is true of any single-stack framework. This however, has nothing to do with the speed of Ruby. Twitter's bottleneck is the database connection. Changing to Yarv, even if Yarv is two, three or 100 times faster will do nothing for them since it won't affect their bottleneck. They might be able to run less mongrel servers but overall there will be no change. So really it's a Rails framework problem (the ability to easily connect to multiple database), not a Ruby problem.

And when thinking about whether you should adopt RoR or not based on scalability issues, consider when you'll be getting to 12,000 hits/second and whether by then the ability to connect to multiple databases will be included in Rails, either because the Twitter guys figured it out and published how or someone else did. Even the twitter guys didn't say it's impossible. I've never tried so I don't know myself. They just said it's not as easy as everything else in Rails and that's why they were complaining.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think presenting Twitter as a model of Ruby scaling is at all valid.</p>
<p>First, are you talking about Ruby or are you talking about Ruby on Rails? Two very separate things.</p>
<p>Ruby, like you say, is slower than Python. Whether this will still be true when Yarv comes along we don&#8217;t know. Either way, I say it doesn&#8217;t matter. It doesn&#8217;t matter because the vast majority of a program isn&#8217;t all that affected by computation speed, especially when talking about a web application. Not only that, but if your program is sluggish, you can easily profile your application and, if it&#8217;s not possible to optimize it more, replace the bottleneck entirely with C. It&#8217;s actually very easy to do in Ruby.</p>
<p>Now for Rails. The twitter case I&#8217;m not really happy about people using as an example of scalability. First off, they can get up to 12,000 hits/second. That&#8217;s a massive amount of traffic. Their first bottleneck was computational but when they added more mongrel servers, this bottleneck was resolved. Their complaint is that it&#8217;s difficult to connect one application to multiple databases with Rails. As DHH pointed out, this is true of any single-stack framework. This however, has nothing to do with the speed of Ruby. Twitter&#8217;s bottleneck is the database connection. Changing to Yarv, even if Yarv is two, three or 100 times faster will do nothing for them since it won&#8217;t affect their bottleneck. They might be able to run less mongrel servers but overall there will be no change. So really it&#8217;s a Rails framework problem (the ability to easily connect to multiple database), not a Ruby problem.</p>
<p>And when thinking about whether you should adopt RoR or not based on scalability issues, consider when you&#8217;ll be getting to 12,000 hits/second and whether by then the ability to connect to multiple databases will be included in Rails, either because the Twitter guys figured it out and published how or someone else did. Even the twitter guys didn&#8217;t say it&#8217;s impossible. I&#8217;ve never tried so I don&#8217;t know myself. They just said it&#8217;s not as easy as everything else in Rails and that&#8217;s why they were complaining.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Calamitous</title>
		<link>http://www.rubyfleebie.com/are-you-concerned-about-ruby-being-slow/#comment-175</link>
		<author>Calamitous</author>
		<pubDate>Mon, 23 Apr 2007 06:48:25 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/are-you-concerned-about-ruby-being-slow/#comment-175</guid>
					<description>1) Are you concerned about ruby being slow?
Short answer: no.  Machines are cheaper than people.
2) Do you have faith in YARV?
Again, no, because I don't think Ruby's performance is what's holding it back -- people's *concern* over Ruby's performance is.  Twitter's problems (11,000+ reqs/sec) are in a realm beyond what most of us will deal with, but my $JOB's primary application is written in Rails, and supports 200 employees and 7000-8000 users on one server.  Adding another server is as easy as setting up the new box and adding a line to my proxy balancer config.

Selling Ruby and Rails as a platform to mgmt was much, much harder than implementing it.</description>
		<content:encoded><![CDATA[<p>1) Are you concerned about ruby being slow?<br />
Short answer: no.  Machines are cheaper than people.<br />
2) Do you have faith in YARV?<br />
Again, no, because I don&#8217;t think Ruby&#8217;s performance is what&#8217;s holding it back &#8212; people&#8217;s *concern* over Ruby&#8217;s performance is.  Twitter&#8217;s problems (11,000+ reqs/sec) are in a realm beyond what most of us will deal with, but my $JOB&#8217;s primary application is written in Rails, and supports 200 employees and 7000-8000 users on one server.  Adding another server is as easy as setting up the new box and adding a line to my proxy balancer config.</p>
<p>Selling Ruby and Rails as a platform to mgmt was much, much harder than implementing it.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Peter Cooper</title>
		<link>http://www.rubyfleebie.com/are-you-concerned-about-ruby-being-slow/#comment-176</link>
		<author>Peter Cooper</author>
		<pubDate>Mon, 23 Apr 2007 14:43:38 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/are-you-concerned-about-ruby-being-slow/#comment-176</guid>
					<description>I'm as worried about Ruby's performance versus Python as I am about C's performance versus hand-written assembler. That is, not at all. There are some people in this world who live for benchmark numbers, and some of us who are pragmatic and live for actual results.

I've ported Perl scripts to Ruby which have then been significantly faster on Ruby, not because the language is faster but because the libraries used have been better written, have used C extensions, and any number of factors. A great coder in Ruby will kick an average Python programmer in the ass, so it's not always down to the speed of the language but the programmer.

One great example of this is in the land of SQL. It seems most developers have only a basic knowledge of SQL (particularly people who write forum software for some reason..) and design some absolutely hideous databases and queries and expect the RDBMS to sort it all out (which it doesn't). It's not rare for a semi-competent SQL developer's code to outperform crappy SQL code by 10 to 100 times or more, simply because they know what they're doing and can compress an operation into, say, 10 rapid database operations rather than 1 humongous join that takes five minutes to run.

So.. more Ruby performance is always a good thing, but more important is skill, understanding algorithms, and being able to see the big picture of optimization rather than the raw speed of the language.

If you threw me in a Formula 1 car, I bet I'd still drive like crap, and Michael Schumacher could probably beat me in a Mercedes SL no troubles. It's the skill, not the tool.</description>
		<content:encoded><![CDATA[<p>I&#8217;m as worried about Ruby&#8217;s performance versus Python as I am about C&#8217;s performance versus hand-written assembler. That is, not at all. There are some people in this world who live for benchmark numbers, and some of us who are pragmatic and live for actual results.</p>
<p>I&#8217;ve ported Perl scripts to Ruby which have then been significantly faster on Ruby, not because the language is faster but because the libraries used have been better written, have used C extensions, and any number of factors. A great coder in Ruby will kick an average Python programmer in the ass, so it&#8217;s not always down to the speed of the language but the programmer.</p>
<p>One great example of this is in the land of SQL. It seems most developers have only a basic knowledge of SQL (particularly people who write forum software for some reason..) and design some absolutely hideous databases and queries and expect the RDBMS to sort it all out (which it doesn&#8217;t). It&#8217;s not rare for a semi-competent SQL developer&#8217;s code to outperform crappy SQL code by 10 to 100 times or more, simply because they know what they&#8217;re doing and can compress an operation into, say, 10 rapid database operations rather than 1 humongous join that takes five minutes to run.</p>
<p>So.. more Ruby performance is always a good thing, but more important is skill, understanding algorithms, and being able to see the big picture of optimization rather than the raw speed of the language.</p>
<p>If you threw me in a Formula 1 car, I bet I&#8217;d still drive like crap, and Michael Schumacher could probably beat me in a Mercedes SL no troubles. It&#8217;s the skill, not the tool.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: juantar</title>
		<link>http://www.rubyfleebie.com/are-you-concerned-about-ruby-being-slow/#comment-177</link>
		<author>juantar</author>
		<pubDate>Mon, 23 Apr 2007 19:30:42 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/are-you-concerned-about-ruby-being-slow/#comment-177</guid>
					<description>1) Yes, I am very concerned. Some of us want to bring Game Programming to Ruby and for that we need a fast interpreter.

2) Yes I have faith in YARV. I have to have faith in it :).</description>
		<content:encoded><![CDATA[<p>1) Yes, I am very concerned. Some of us want to bring Game Programming to Ruby and for that we need a fast interpreter.</p>
<p>2) Yes I have faith in YARV. I have to have faith in it :).</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Jason Morrison</title>
		<link>http://www.rubyfleebie.com/are-you-concerned-about-ruby-being-slow/#comment-178</link>
		<author>Jason Morrison</author>
		<pubDate>Tue, 24 Apr 2007 01:21:27 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/are-you-concerned-about-ruby-being-slow/#comment-178</guid>
					<description>Maybe actual numbers will be more useful than guessing? .  Should be a few more articles on eigenclass on the topic iirc.  You can try also Rails on YARV for yourself, btw...</description>
		<content:encoded><![CDATA[<p>Maybe actual numbers will be more useful than guessing? .  Should be a few more articles on eigenclass on the topic iirc.  You can try also Rails on YARV for yourself, btw&#8230;</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Jason Morrison</title>
		<link>http://www.rubyfleebie.com/are-you-concerned-about-ruby-being-slow/#comment-179</link>
		<author>Jason Morrison</author>
		<pubDate>Tue, 24 Apr 2007 01:21:45 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/are-you-concerned-about-ruby-being-slow/#comment-179</guid>
					<description>comment form stole my link! : )

http://eigenclass.org/hiki/non-synthetic-benchmarks-for-yarv</description>
		<content:encoded><![CDATA[<p>comment form stole my link! : )</p>
<p><a href="http://eigenclass.org/hiki/non-synthetic-benchmarks-for-yarv" rel="nofollow">http://eigenclass.org/hiki/non-synthetic-benchmarks-for-yarv</a></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: syh</title>
		<link>http://www.rubyfleebie.com/are-you-concerned-about-ruby-being-slow/#comment-194</link>
		<author>syh</author>
		<pubDate>Thu, 03 May 2007 15:29:32 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/are-you-concerned-about-ruby-being-slow/#comment-194</guid>
					<description>it seems that YARV is good enough

http://shootout.alioth.debian.org/gp4sandbox/benchmark.php?test=all&#38;lang=ruby&#38;lang2=yarv

http://shootout.alioth.debian.org/gp4sandbox/benchmark.php?test=all&#38;lang=all</description>
		<content:encoded><![CDATA[<p>it seems that YARV is good enough</p>
<p><a href="http://shootout.alioth.debian.org/gp4sandbox/benchmark.php?test=all&amp;lang=ruby&amp;lang2=yarv" rel="nofollow">http://shootout.alioth.debian.org/gp4sandbox/benchmark.php?test=all&amp;lang=ruby&amp;lang2=yarv</a></p>
<p><a href="http://shootout.alioth.debian.org/gp4sandbox/benchmark.php?test=all&amp;lang=all" rel="nofollow">http://shootout.alioth.debian.org/gp4sandbox/benchmark.php?test=all&amp;lang=all</a></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: jesse</title>
		<link>http://www.rubyfleebie.com/are-you-concerned-about-ruby-being-slow/#comment-207</link>
		<author>jesse</author>
		<pubDate>Wed, 16 May 2007 20:09:36 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/are-you-concerned-about-ruby-being-slow/#comment-207</guid>
					<description>I had read this article a while ago, comparing the different VMs.
http://www.antoniocangiano.com/articles/2007/02/19/ruby-implementations-shootout-ruby-vs-yarv-vs-jruby-vs-gardens-point-ruby-net-vs-rubinius-vs-cardinal

He hasn't run the 2nd batch of tests like h said, but it'll be interesting to see those results too.

I'll be at RailsConf '07 and I'll have to say, this session:
http://conferences.oreillynet.com/cs/rails2007/view/e_sess/14480
on scaling Rails apps on Amazon's EC2 service has me quite excited.</description>
		<content:encoded><![CDATA[<p>I had read this article a while ago, comparing the different VMs.<br />
<a href="http://www.antoniocangiano.com/articles/2007/02/19/ruby-implementations-shootout-ruby-vs-yarv-vs-jruby-vs-gardens-point-ruby-net-vs-rubinius-vs-cardinal" rel="nofollow">http://www.antoniocangiano.com/articles/2007/02/19/ruby-implementations-shootout-ruby-vs-yarv-vs-jruby-vs-gardens-point-ruby-net-vs-rubinius-vs-cardinal</a></p>
<p>He hasn&#8217;t run the 2nd batch of tests like h said, but it&#8217;ll be interesting to see those results too.</p>
<p>I&#8217;ll be at RailsConf &#8216;07 and I&#8217;ll have to say, this session:<br />
<a href="http://conferences.oreillynet.com/cs/rails2007/view/e_sess/14480" rel="nofollow">http://conferences.oreillynet.com/cs/rails2007/view/e_sess/14480</a><br />
on scaling Rails apps on Amazon&#8217;s EC2 service has me quite excited.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: siroj</title>
		<link>http://www.rubyfleebie.com/are-you-concerned-about-ruby-being-slow/#comment-297</link>
		<author>siroj</author>
		<pubDate>Thu, 12 Jul 2007 09:45:38 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/are-you-concerned-about-ruby-being-slow/#comment-297</guid>
					<description>1. yes, I'm concerned about it. but what I concerned more is the fact that ruby's thread is plain suck, is modern age already, why still use process. I also disagree with DHH argument in this case, process does indeed easier to manage in code, because actually nothing to manage, but thread is more powerful because it is (quite) dangerous (code &#38; var sharing). I hope YARV will fix it
2. I've said it in my answer to the 1st question, yes I have (quite) high hope for YARV. but does anyone know about the progress of the project ??</description>
		<content:encoded><![CDATA[<p>1. yes, I&#8217;m concerned about it. but what I concerned more is the fact that ruby&#8217;s thread is plain suck, is modern age already, why still use process. I also disagree with DHH argument in this case, process does indeed easier to manage in code, because actually nothing to manage, but thread is more powerful because it is (quite) dangerous (code &amp; var sharing). I hope YARV will fix it<br />
2. I&#8217;ve said it in my answer to the 1st question, yes I have (quite) high hope for YARV. but does anyone know about the progress of the project ??</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Adam McClure</title>
		<link>http://www.rubyfleebie.com/are-you-concerned-about-ruby-being-slow/#comment-306</link>
		<author>Adam McClure</author>
		<pubDate>Fri, 20 Jul 2007 06:50:37 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/are-you-concerned-about-ruby-being-slow/#comment-306</guid>
					<description>I am not worried about speed.  I believe the Ruby development team will take Ruby to the next level regardless of whether YARV is used or not.

Connecting to multiple databases has been sorted out.</description>
		<content:encoded><![CDATA[<p>I am not worried about speed.  I believe the Ruby development team will take Ruby to the next level regardless of whether YARV is used or not.</p>
<p>Connecting to multiple databases has been sorted out.</p>
]]></content:encoded>
				</item>
</channel>
</rss>
