Follow Slashdot blog updates by subscribing to our blog RSS feed


Forgot your password?

The State of Ruby VMs — Ruby Renaissance 89

igrigorik writes "In the short span of just a couple of years, the Ruby VM space has evolved to more than just a handful of choices: MRI, JRuby, IronRuby, MacRuby, Rubinius, MagLev, REE and BlueRuby. Four of these VMs will hit 1.0 status in the upcoming year and will open up entirely new possibilities for the language — Mac apps via MacRuby, Ruby in the browser via Silverlight, object persistence via Smalltalk VM, and so forth. This article takes a detailed look at the past year, the progress of each project, and where the community is heading. It's an exciting time to be a Rubyist."
This discussion has been archived. No new comments can be posted.

The State of Ruby VMs — Ruby Renaissance

Comments Filter:
  • Ruby Javascript (Score:3, Insightful)

    by Djupblue ( 780563 ) on Sunday November 22, 2009 @12:06PM (#30193908)

    It would be so nice to be able to use Ruby instead of Javascript.
    It is so much easier to write clean code in Ruby and since I use a lot of Ruby on Rails it would be great to be able to use the same code in the backend and in the browser. Go Ruby! :)

  • Re:Ruby at a sight (Score:1, Insightful)

    by Anonymous Coward on Sunday November 22, 2009 @12:26PM (#30194092)

    You didn't apparently look deeply. Ruby didn't resemble perl then, and it doesn't now. Ruby is far more powerful and expressive than Python.

    Ruby did borrow some things from Perl, but it borrowed far more from Smalltalk.

  • Good News (Score:5, Insightful)

    by RAMMS+EIN ( 578166 ) on Sunday November 22, 2009 @12:28PM (#30194102) Homepage Journal

    I'm glad to see so much work is being done on Ruby, and especially that people are working on compiling Ruby to native code. Ruby is a great language, but there is no denying that the old implementation (MRI 1.8 and before) is dog slow.

  • Re:Yawn. (Score:2, Insightful)

    by hey! ( 33014 ) on Sunday November 22, 2009 @12:50PM (#30194284) Homepage Journal

    Web 2.0 is still gay.

    To quote Mel Brooks' *The Producers*:

    If at the end you want them to cheer
    Keep it gay, keep it gay, keep it gay!

  • Re:Ruby Javascript (Score:2, Insightful)

    by obarthelemy ( 160321 ) on Sunday November 22, 2009 @01:46PM (#30194794)

    Something in your tone tells me you're not the open-minded type. Maybe you just failed to get into the language, expecting it instead to fit your own mindset+knowledge ?

  • by SanityInAnarchy ( 655584 ) <> on Sunday November 22, 2009 @02:52PM (#30195268) Journal

    I've worked with Ruby for over a year and a half, and I can say with absolute confidence that the language is horrible. You can flame back to this all you want...

    That might be an interesting discussion, actually, but:

    ...the fact remains that it's a slow blob and throwing more hardware at it is a stupid argument.

    See, that's a property of the implementation, not the language. You have noticed what's happened to Javascript lately, right? It used to be slower than Ruby. With v8, it's faster than Python.

    Also, you fail to address why throwing hardware at it is a stupid argument, and you don't provide any benchmarks that it's slow.

    No major VM is going to make it rival the top languages in raw processing power (C/C++/Java even Python).

    If you actually looked at benchmarks, you'd notice that if nothing else, Rails beats PHP, consistently, for performance.

    And Rails "automagic" combined with Ruby's inability to report exceptions in a meaninful way (the backtrace is 99% rubbish, and often reports the error in a place where it didn't even occur)

    It would help if you actually gave an example here, but you don't. In my experience, the backtrace is actually quite helpful, but use of unit tests and specs helps avoid it.

    As for Ruby in a browser - there's already projects that do that, and do it fairly well.

    Which is one of the things TFA is about. So what's your point?

    Some of them use Applets, which is where suddenly everyone has a hissie fit. Yeah, using a proprietary Windows-centric tech like Silverlight is a MUUUUCH better option.

    I suspect Silverlight is at least faster to load, but I haven't tried doing either. Javascript does what I want it to do well enough.

    Or writing a VM in JavaScript? Talk about MOLASSES!

    Again, benchmarks or it didn't happen. Make sure to test it in one of the better Javascript engines, like v8.

    If I want to use a quick scripting language with ample flexibility and power, I'll use Groovy, thank you very much. For one thing, Groovy and Grails gives me a LOT more choice as flexibility over RoR any day of the week.

    Can you give an example of how? I mean, for one, there only really seems to be Grails, whereas Ruby has more web frameworks than VMs, and that's saying something. Take Sinatra, for example:

    get '/' do
      'Hello, world!'

    That's right, a REST DSL. What has Groovy got, again?

    So, Rubyists, have your little childish flames now.

    That's the most literal example of flamebait I've ever seen. Unfortunately, it doesn't look like anyone's really flaming you back. I'm the closest, and I'm just asking for facts.

    And don't assume I'm a "n00b" - I've got over 15 years IT experience in more languages that I can list in this comment block.

    With all that experience, you couldn't figure out that the comment block seems to allow very, very long comments -- almost certainly longer than the total list of programming languages that exist?

    More importantly, you seem to have fallen into the same trap that Jerry Taylor [] did. I have no idea what your experience is, but it certainly doesn't seem to be reflected here.

  • Re:Ruby Javascript (Score:3, Insightful)

    by piquadratCH ( 749309 ) on Sunday November 22, 2009 @04:08PM (#30195866)

    I'm sure something similar is feasible for Ruby too.

    It certainly is [].

    And there's also a Python port of GWT, very aptly named pyjamas [].

  • Re:Ruby at a sight (Score:4, Insightful)

    by Hurricane78 ( 562437 ) <deleted.slashdot@org> on Monday November 23, 2009 @05:06AM (#30200210)

    Personally, I feel like metaprogramming is an integral part of Ruby programming, whereas, in Python, it runs contrary to the spirit of "one way to do it", but Python does support metaprogramming and plenty of people are putting it to good use.

    You have heard of the concept of functional programming, have you? If functions are first-class citizens in data-type world, there is no separation between functions and data (or algorithms and data structures) anymore. So there is no point in a word like “metaprogramming”. What those languages support, is metaprogramming. And it’s sometimes shocking how much it exactly looks like Haskell (where everybody steals from nowadays). ^^

    JavaScript also belongs into that family.

    As soon as you understand Haskell, suddenly, all those languages become much more intuitive, expressive and useful. (I love higher-order functions! ^^)

The last thing one knows in constructing a work is what to put first. -- Blaise Pascal