To all the shitheads saying "Ruby is slow" as fuck:
"Ruby is slow" is a myth. Ruby is slow for certain types of problems, but there are ways to fix this by being a competent programmer and also by using wrapper classes of fast C/C++ or Java libraries and also by not using Ruby for problems it is ill-suited to.
Name:
Anonymous2011-08-08 3:24
Ruby > Python
Name:
Anonymous2011-08-08 3:25
All accusations towards Ruby are just ridiculous and are factually inaccurate! It is important that as a community we debunk these myths and unjustified criticisms. An even better road to take would be to provide examples of how computationally complex problems can be dealt with efficiently in Ruby, highlighting the best practices and the existing workarounds.
A religious community is emotionally easy to attack and may produce inopportune responses in defense of whatever has been questioned. Over the past three years I’ve heard a few bad things about Ruby and I’ve seen all sorts of responses, which in some cases were simply overreactions.
Ruby is a wonderfully designed language. The Ruby and Ruby on Rails communities have a lot of passion. We love our language, created by a very cool guy (and maestro of humbleness) in Japan. We love our framework authored by a Danish GAP model, and we really enjoy the spirit in the community. We have the best non-paid marketing department in the world. We started the revolution which is powering most of the new social websites out there.
Ruby on Rails is the single most important and valuable technical solution, language and tool for software problems.
Name:
Anonymous2011-08-08 3:38
If Ruby isn't slow then why is Twitter porting to Java and Scala?
The problem with Ruby is that it doesn't excel at anything. It may do its job, but it won't do it any better than a language tailored for that purpose.
The other problem is that it uses an interpreter, which reduces code execution speed by a factor of 2-3x.
I'm sure there are more problems, however, in the name of brevity...
Why use a language that produces poorly executed code when you can use something like C?
With a time measuring device, a "clock" if you will.
Name:
Anonymous2011-08-08 4:18
The following function "life", written in Dyalog APL, takes a boolean matrix and calculates the new generation according to Conway's Game of Life. It demonstrates the power of APL to implement a complex algorithm in very little code
>>13
What kind of programmer? (unexperienced user, CS student, seasoned pro, academy professor)
What kind of implementation? (prototype, production code)
There is some truth in the claim that Ruby doesn’t really give us anything that wasn’t there long ago in Lisp and Smalltalk, but they weren’t bad languages. -- Matthew Huntbach
So Ruby is either less than or greater than slow? Does that mean that Ruby could be slower than slow?
Name:
Anonymous2011-08-08 7:37
Ruby is slow because it is poorly designed. It's overcomplicated semantics make for a difficult to optimize interpreter, and its silly irregular syntax makes for a slow parser/lexer.
If it ain't Lisp it's crap.
Name:
Anonymous2011-08-08 7:41
>and also by using wrapper classes of fast C/C++ or Java libraries
You know you hit the bottom of performance when you need to wrap "fast" java libraries.
>>23
... when you write in very primitive subset of java. Namely: no Vector<Integer> allowed. shootout is not what real java code looks and works like.
>>6 The other problem is that it uses an interpreter, which reduces code execution speed by a factor of 2-3x.
No, it's much slower than that.
Name:
Anonymous2011-08-08 10:19
Ruby was designed by one guy using yacc, you cant expect it to be a fast language. The Ruby community has to contract out to a company that makes compilers to get an industrial grade optimized compiler.
I dont think the problems that Twitter have had are anything to do with Ruby but rather how Rails handles database concurrency
Name:
Anonymous2011-08-08 10:35
Anyway, what's the point of Ruby and Python when Perl and Lisp dialects do everything they do and much more more efficiently and more cleanly?
Name:
Anonymous2011-08-08 10:43
>>34
Perl syntax cleaner than Python or Ruby? You have no idea what youre even talking about