Skip to content

Instantly share code, notes, and snippets.

@yutokyokutyo
Created December 1, 2014 07:03
Show Gist options
  • Save yutokyokutyo/8b796e2ea30e9519b30d to your computer and use it in GitHub Desktop.
Save yutokyokutyo/8b796e2ea30e9519b30d to your computer and use it in GitHub Desktop.
15:49 kyokutyo: 質問があります!
15:50 umazura has left IRC (Read error: Connection reset by peer)
15:50 kyokutyo: ruby 2.1.5 をインストールしたはずなのですが、/home/vagrant/sample_app/vendor/bundle/ruby/2.1.0 のように、bundle 以下の ruby のバージョンがディレクトリ名になる部分が2.1.0と表示されます。
15:50 umazura has joined (~umazura@natter.interq.or.jp)
15:50 kyokutyo: これはなぜなのでしょう?
15:50 kyokutyo: $ ~/.rbenv/shims/ruby -v
15:50 kyokutyo: ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-linux]
15:52 hsbt: ABI バージョンというものがあってじゃな
15:52 hsbt: http://ja.wikipedia.org/wiki/Application_Binary_Interface
15:52 hsbt: ABI バージョンと、Rubyのバージョンは別
15:52 hsbt: ABI バージョンが一致しているかぎり、そのバイナリは Ruby バージョンが違っても動く(ように Ruby コミッタは頑張っている)
15:52 kyokutyo: ABI!
15:52 hsbt: 厳密にはたまに壊す
15:53 hsbt: 2.1.0 は ABI バージョン
15:53 hsbt: 2.1.5 は Ruby バージョン
15:53 kyokutyo: なるほど〜!
15:54 hsbt: なるほど〜
15:54 chinsatz_ has left IRC (Remote host closed the connection)
15:54 chinsatz has joined (~chinsatz@221x246x62x10.ap221.ftth.ucom.ne.jp)
15:56 umazura has left IRC (Ping timeout: 180 seconds)
15:58 umazura has joined (~umazura@natter.interq.or.jp)
15:59 kyokutyo: バイナリレベルで保証しているのですね!解決しました!ありがとうございます!
15:59 hiroya: API ABI
15:59 hiroya: あぴ あび
15:59 hsbt: バイナリレベル = C の公開関数、定数、マクロってあたりだけど
15:59 hsbt: これを維持するのはすげー大変
16:00 hsbt: あと、Ruby が保証していても、native gem はそんなの知るかでバンバンぶっ壊すので
16:00 hsbt: 理想 = ABI が同じなら動く 現実 = 再コンパイル頑張る
16:02 kiha_mac_ has joined (~kiha@natter.interq.or.jp)
16:02 kyokutyo: うひゃあ。現実は厳しい。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment