インフラをチョメチョメしている佐野です。今日はRubyを現最新バージョンの2.3.1にアップデートしたのでその効果について書きます(2.0、とっくにEOLですしね...)。gemのバージョンアップはserizawaニキがやってくれました。結論から言いますと、 CPU使用率が劇的に下がり、メモリ使用率が少し上がった。 サーバ台数削減できる。 です。 CPU 9/6の昼過ぎくらいに2.3に切り替えたのですがそれ以降、CPUが下がっていることがわかります。 メモリ メモリについては使用率が上がっています。 2.3 2.0 何が使っているのかというと、Ruby2.3なプロセスのメモリ使用量が全体的に増えました。次のtopコマンドは左ペインが2.3、右ペインが2.0なのですが、rubyないしbundleとなっているものがunicorn, sidekiqになります。これら全般的に2.3の方がメモリ使用
Shared mutable state is the source of a lot of bugs. When two or more objects use the same piece of mutable data, they all have the ability to break each other in ways that can be hard to debug. If the shared data is immutable, however, these objects can not affect each other, and are effectively decoupled. This article is a review of the options available to Rubyists regarding immutability. We’ll
Happy Holidays from Heroku. Congratulations to the ruby-core team on a successful 2.3.0 release, which is now available on Heroku -- you can learn more about Ruby on Heroku at heroku.com/ruby. We had the pleasure of speaking with Matz (Yukihiro Matsumoto), the creator of Ruby and Chief Ruby Architect at Heroku, about the release. What’s New in Ruby 2.3: Interview with Matz Ruby releases happen eve
RubyKaigiで尻の耐久試験をしてきました。 Ruby3.0は1.9以来の大変革になりそうですね。並列性を持たせるためにどういう仕組みが導入されるのか、本当に3倍速くなるのか、楽しみでなりません。 RubyMotionやmrubyに関してもかなり興味深い話を聞きました。クライアントもサーバもRubyで書く、Rubyistに(だけ)優しい世界はもうそこまで来ているのかもしれません。 未来への興味も尽きないわけですが、現在の話。 Kaigiの初日に合わせてRuby 2.3.0-preview2がリリースされました。 早速ダウンロードしましたが、新機能の中でもsafe navigation operatorはうれしいですね。 それと、ArrayとHashのdigもコードの削減にはかなり効きそうです。 が、試してみて一つ地味に驚いたことが。
Posted by nagachika on 26 Apr 2016 Ruby 2.3.1 has been released. This is the first TEENY version release of the stable 2.3 series. There are many bugfixes. See the ChangeLog for details. Download https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.1.tar.bz2 SIZE: 14432088 bytes SHA1: 4ee76c7c1b12d5c5b0245fc71595c5635d2217c9 SHA256: 4a7c5f52f205203ea0328ca8e1963a7a88cf1f7f0e246f857d595b209eac0a4d SHA
A closer look at Enumerable's grep_v and chunk_while You may have heard Ruby 2.3 dropped on Christmas this past year. Two new Enumerable instance methods were added, grep_v and chunk_while, both of which are variations on other Enumerable methods. We'll dissect both here below. Triple Lindey Grep allows you to select members of a collection that match an expression. That expression is some_object
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く