25 Dec '15, 8am

Ruby 2.3 發佈! https://t.co/bIKuKttqjg

由 naruse 發表於 2015-12-25 翻譯: Juanito Fatas 我們很高興的宣佈 Ruby 2.3.0 發佈了。 Ruby 2.3.0 是 Ruby 2.3.0 版本的第一個穩定版。 包含了許多新功能,譬如: 新增冰凍字串常量編譯指示(Frozen String Literal Pragma) 。Ruby 2.1 針對了 "str".freeze 進行優化,減少了物件的佔用空間。Ruby 2.3 引入了新的魔法註解以及命令行選項,用來指定一個檔案裡的字串,全部默認為無法修改的字串(Frozen String)。除此之外,在除錯時也可以透過使用 --debug=frozen-string-literal 來找到 "can't modify frozen String" 錯誤發生的地方。 安全調用運算子 (又稱孤獨運算子 &. ),引入了 C#、Groovy 以及 Swift 都有的安全調用運算子,用來簡化 nil 的處理:obj&.foo 。另新增了 Array#dig 和 Hash#dig 方法。注意,安全調用運算子的行為和 ActiveSupport 的 try! 一樣,僅處理 nil 。 did_you_mean 納入標準函式庫 。did_you_mean gem 針對 NameError 以及 NoMethodError 會顯示可能的正確拼寫,進而簡化除錯。 引入 RubyVM::InstructionSequence#to_binary 和 .load_from_binary 作為實驗性的功能,用來實作 ISeq(bytecode)預編譯系統。 Ruby 2.3 包含了效能優化。比如, 重理了方法進入點的資料結構 , 引入了新的資料表結構 , 優化了 Proc#call , machine code level tuning for object allocation and method calling code, 實體變數使用了更智能的資料結構 , Socket 和 I/O 允許使用 “exceptions”...

Full article: https://www.ruby-lang.org/zh_tw/news/2015/12/25/ruby-2-3-...

Tweets

Ruby 2.3.0 Released

ruby-lang.org 25 Dec '15, 7am

Posted by naruse on 25 Dec 2015 We are pleased to announce the release of Ruby 2.3.0. This is the first stable release of ...

Ruby 2.3.0 リリース: Ruby 2.3 シリーズの最初の安定版である、Ruby

ruby-lang.org 26 Dec '15, 3pm

Posted by naruse on 25 Dec 2015 Translated by sorah Ruby 2.3 シリーズの最初の安定版である、Ruby 2.3.0 のリリースをお知らせします。 Ruby 2.3.0 には以下に示すよう...

Merry Ruby Christmas!

ruby-lang.org 25 Dec '15, 9am

Posted by naruse on 25 Dec 2015 We are pleased to announce the release of Ruby 2.3.0. This is the first stable release of ...

Upgrading Server Ruby to 2.3.0 on VPS using Moo...

rubyflow.com 26 Dec '15, 3am

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...

#calling ruby method in rails controller raises...

abizy.com 31 Dec '15, 12am

We do not share, store or cache any illegal files on this blog. We only share digital contents those are licensed under “C...

Ruby Weekly: Ruby 2.3, Rails 5 beta1, and Ruby ...

rubyweekly.com 31 Dec '15, 11am

Senior and Mid Ruby Engineers at HouseTrip (London UK) One of the world’s largest holiday rental marketplaces, we’re looki...

Teaching my sister-in-law how to program with R...

adventofcode.com 24 Dec '15, 11pm

Pick a day from the advent calendar to begin:

ruby: homebrew+rbenv+gemでrailsを入れた時の謎 - しんのきダイア...

sinki.hateblo.jp 25 Dec '15, 12am

Rails is not currently installed on this system. To get the latest version, simply type : $ sudo gem install rails You can...

恒例の北陸鉄道石川線の初詣輸送。文字通り終日37分間隔で朝まで運行されるところは、他の地方私鉄...

hokutetsu.co.jp 31 Dec '15, 12pm

個人情報保護方針 | リンク集 | サイトのご利用にあたって | バス緊急時の皆様へのお願い Copyright(C)HOKURIKU RAILROAD Co.,Ltd. All rights reserved.

Multiline strings in Ruby 2.3 - The Squiggly He...

rubyflow.com 22 Dec '15, 10am

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...

Today in #Ruby, #Rails, & #Python is out!

paper.li 25 Dec '15, 12pm

Today in #Ruby, #Rails, & #Python Today in #Ruby, #Rails, & #Python, by David Young: News from Rubyists and Pythonistas Pl...

Double Shot #1612: Ruby 2.3.0 Released - A Chri...

afreshcup.com 28 Dec '15, 2pm

Ruby 2.3.0 Released - A Christmas present from the Ruby team. A few related links: rbenv 1.0.0 - The first "non-beta" vers...

なんかよくわからんライブラリを作った。iTunesに流れている曲をTwitterに垂れ流すため...

rubygems.org 24 Dec '15, 10am

RubyGems.org is the Ruby community’s gem hosting service. Instantly publish your gems and install them. Use the API to int...