Ruby Ruby 2.2.0-preview1 is released

huacnlee · 2014年09月18日 · 最后由 ksec 回复于 2014年09月20日 · 2855 次阅读

We are pleased to announce the release of Ruby 2.2.0-preview1.

Ruby 2.2.0-preview1 is the first preview for the Ruby 2.2.0. Many new features and improvements are included forthe increasingly diverse and expanding demands for Ruby.

For example Symbol GC will decrease the risk of memory exhaustion (symbols are not garbage collected). Because if this Rails 5.0 will be released for Ruby 2.2+http://weblog.rubyonrails.org/2014/8/20/Rails-4-2-beta1/.

Incremental GC is also nice to decrease pause time. It will help running Rails applications.

The notable changes since 2.1.0 are:

  • Incremental GC
  • Symbol GC
  • core libraries:
    • support Unicode 7.0 #9092
    • New methods:
    • Enumerable#slice_after
    • Float#next_float, Float#prev_float
    • File.birthtime, File#birthtime
  • bundled libraries:
    • update Psych 2.0.6
    • update Rake 10.3.2+ (e47d0239)
    • update RDoc 4.2.0.alpha (21b241a)
    • update RubyGems 2.4.1+ (713ab65)
    • update test-unit 3.0.1 (removed from CRuby repository but bundled in tarball)
    • update minitest 5.4.1 (removed from CRuby repository but bundled in tarball)
    • deprecate mathn
  • C API
    • remove deprecated APIs

See NEWS in ruby repository(WIP) for detail.

With those changes, 1239 files changed, 98343 insertions(+), 61858 deletions(-).

Enjoy programming with Ruby 2.2.0-preview1!

Download

http://ruby.taobao.org/mirrors/ruby/2.2/

RVM 安装

更新 RVM

rvm get head

改变源

# Mac
sed -i .bak 's!cache.ruby-lang.org/pub/ruby!ruby.taobao.org/mirrors/ruby!' $rvm_path/config/db
# Linux
sed -i 's!cache.ruby-lang.org/pub/ruby!ruby.taobao.org/mirrors/ruby!' $rvm_path/config/db

然后安装

rvm install 2.2.0-preview1

Q. Ruby 3.0 で入れたい大きな変更は?A. Matz: 明日。

无责任中文翻译 Q:请问 Ruby 3.0 是否有想加入的大变动呢? A:尽情期待明天的演讲

@ywjno , 哪来的消息,ruby 3.0 ??

@KazumaAndoh
Ruby 3.0 への道筋については日経 Linux の来月 8 日発売号でより明らかになります。Ruby サブセットの新言語「Duck」を設計しています。(なんて編集担当者が勝手につぶやいていいのかしら。誰より早く読めるのは役得です(・ω・)

http://brewhouse.io/blog/2014/09/19/ruby-kaigi-2014-day-2

需要 登录 后方可回复, 如果你还没有账号请 注册新账号