Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×
Ruby Programming

Ruby 2.1.0 Released 65

Today marks the release of Ruby version 2.1.0. A brief list of changes since 2.0.0 has been posted, and file downloads are available. Here are some of the changes:
  • Now the default values of keyword arguments can be omitted. Those 'required keyword arguments" need giving explicitly at the call time.
  • Added suffixes for integer and float literals: 'r', 'i', and 'ri'.
  • def-expr now returns the symbol of its name instead of nil.
  • rb_profile_frames() added. Provides low-cost access to the current ruby stack for callstack profiling.
  • introduced the generational GC a.k.a RGenGC (PDF).
This discussion has been archived. No new comments can be posted.

Ruby 2.1.0 Released

Comments Filter:
  • Red title? (Score:3, Insightful)

    by c++ ( 25427 ) on Wednesday December 25, 2013 @02:53PM (#45783203)

    Why does Ruby get its own color?

  • Bbut netcraft confirmed it! I go tell!
  • by ohnocitizen ( 1951674 ) on Wednesday December 25, 2013 @02:57PM (#45783221)
    What comedic timing: Is Ruby Dying [slashdot.org].
  • Too bad (Score:4, Insightful)

    by filmorris ( 2466940 ) on Wednesday December 25, 2013 @03:01PM (#45783245)
    Wow, just yesterday it was dying, and today they release a new version! I guess they didn't get the memo
    • by Anonymous Coward

      Wow, just yesterday it was dying, and today they release a new version! I guess they didn't get the memo

      Unless this is one of those unbelievably rare events, it has nothing to do with memos. It's an orchestrated marketing technique, sometimes referred to as salting.

  • I started programming Ruby a year or two ago. I was using jruby and watir-webdriver to automating firefox. I love the syntax of Ruby.

    • by Sarin ( 112173 ) on Wednesday December 25, 2013 @03:11PM (#45783287) Homepage Journal

      And I accidently sent my comment away. The syntax is great, but I don't like the way Ruby hasn't crystallized yet. Every new version they somehow remove compatibility with the old versions, that's bad. My scripts stop working and I have to fix everything, this is not userfriendly.

      Documation is scattered and incomplete. It's something that needs to fixed if they want to get to version 4

      • Re: (Score:1, Informative)

        by Anonymous Coward

        Are you sure you mean what you say? The last release to appreciably break compatibility was the jump from 1.8 to 1.9, when they replaced the interpreter with a JIT VM (this should have been called 2.0, IMO). That was back in 2007. Every release since then has preserved backwards compatibility.

        If you actually meant Rails, well, then I understand that. At least they're improving.

      • Ha, I feel your pain.

        This kills languages, Python took a hit with 3. Yes there is 2to3 and maybe other tools but Ruby may suffer the same fate if they keep mucking with common libs and grammar.

        • You make it sound as if Python 2.X was dead. They handled the major, breaking changes in a rather nice way. Python 2.7 is still supported to this day, has many backported features from 3, and doesn't break compatibility.

          In fact, you make it sound like the mere existence of Python 3.0 killed it. I wasn't aware it was dead.
      • by Jane Q. Public ( 1010737 ) on Wednesday December 25, 2013 @06:02PM (#45784109)

        "My scripts stop working and I have to fix everything, this is not userfriendly."

        That's not a problem with Ruby, it's a problem with jruby.

        "Documation is scattered and incomplete. It's something that needs to fixed if they want to get to version 4"

        No, it isn't. [ruby-lang.org]

        And if you want more documentation get your hands on the book "Programming Ruby" (often incorrectly called "the pickaxe book"), like everybody else does. It is frequently updated for the latest ruby versions. Since it's from Pragmatic Programmers, purchase once and get the (pdf) updates whenever they come out.

      • I can't speak to upgrading; I've been using ruby 1.9 the entire time. But, you are wrong, IMO, about documentation. First things I looked up in a modern scripting language, the data structures, and os interactions, were awesome. Take a look at these, and then, you can even click on them to see their c header!

        http://www.ruby-doc.org/core-2.1.0/String.html [ruby-doc.org]
        http://www.ruby-doc.org/core-2.1.0/Hash.html [ruby-doc.org]
        http://www.ruby-doc.org/core-2.1.0/Array.html [ruby-doc.org]

        http://www.ruby-doc.org/core-2.1.0/Dir.html [ruby-doc.org]
        http://www.ruby-doc.org [ruby-doc.org]

    • Everyone knows only node.js is webscale [youtube.com].

    • "I started programming Ruby a year or two ago. I was using jruby and watir-webdriver to automating firefox. I love the syntax of Ruby."

      I can appreciate your love for the Ruby language, but out of curiosity, why do you hate English?

  • Ruby is dead!

    Proof: was on /. yesterday!

"The great question... which I have not been able to answer... is, `What does woman want?'" -- Sigmund Freud

Working...