![](https://s.togetter.com/static/web/img/placeholder.gif)
Rubyコアコミッター笹田耕一さん解説 Ruby3のための新しい並列実行モデル Guild #RubyKaigi #RubyKaigiA
![](https://s.togetter.com/static/web/img/placeholder.gif)
if an object blongs to Guild1, Guild2 can not touch to the object. #rubykaigi #rubykaigiA
2016-09-08 14:48:17![](https://s.togetter.com/static/web/img/placeholder.gif)
全てのmutableなオブジェクトはいずれかのGuild一つにのみ所属し、別のGuildのオブジェクトにはR/Wともアクセス不可。これにより、可変オブジェクトにアクセスできるのは1スレッドのみになるのでdata raceなどが起きない #rubykaigi #rubykaigiA
2016-09-08 14:48:18![](https://s.togetter.com/static/web/img/placeholder.gif)
今までThreadとかで並列プログラミングしてた時に気をつけてた事を適切に制約に落としこむことでGlobal Lockを適切に絞り込めるようにできました(できます)、みたいな話だと受け取った #rubykaigiA
2016-09-08 14:49:40![](https://s.togetter.com/static/web/img/placeholder.gif)
オブジェクトをギルド間で共有するときはdeep copyする。channelを通じてやりとりする。また、メンバーシップを移行することも可能。objectの所属するGuildが変化する。 #rubykaigi #rubykaigiA
2016-09-08 14:50:13![](https://s.togetter.com/static/web/img/placeholder.gif)
Object がどの Guild に所属しているか、Object が移動するとして、長いプロセスでそれを表現し続けるの難しそう #RubyKaigiA
2016-09-08 14:50:24![](https://s.togetter.com/static/web/img/placeholder.gif)
transferした後は、sourceのGuildではそのオブジェクトにアクセスできなくなる。readもwriteも例外になる。 #rubykaigi #rubykaigiA
2016-09-08 14:51:02![](https://s.togetter.com/static/web/img/placeholder.gif)
Immutableなobjectはどのguildでもシェアできると #rubykaigi #rubykaigiA
2016-09-08 14:52:08![](https://s.togetter.com/static/web/img/placeholder.gif)
If something is frozen, we can let it go! #RubyKaigi #RubyKaigiA
2016-09-08 14:52:40![](https://s.togetter.com/static/web/img/placeholder.gif)
transferされたオブジェクトがinvalidateされるの何か気持ち悪いなあ。オブジェクトそのものを扱ってるつもりがproxyだったみたいな #rubykaigiA
2016-09-08 14:53:10![](https://s.togetter.com/static/web/img/placeholder.gif)
[1, Object.new, 3].freeze した時は怒ってほしいというのは甘えでしょうか #rubykaigi #rubykaigiA
2016-09-08 14:53:13![](https://s.togetter.com/static/web/img/placeholder.gif)
Koichi Sasadaさん @ko1 による講演「A proposal of new concurrency model for Ruby 3」。 #rubykaigi #rubykaigia pic.twitter.com/5KQ6FJK0Lm
2016-09-08 14:53:21![](https://pbs.twimg.com/media/Crzylr9UEAAillP.jpg:medium)
![](https://pbs.twimg.com/media/CrzznyoUkAAlx4b.jpg:medium)
![](https://s.togetter.com/static/web/img/placeholder.gif)
Imuutable Objectはギルド間で共有可能。この場合はギルド間で参照のみを受け渡せばよい。Numeric, symbol, true, false, nilなどは「こんなこともあろうかと」Ruby2.0から不変になっている。 #rubykaigi #rubykaigiA
2016-09-08 14:53:32![](https://s.togetter.com/static/web/img/placeholder.gif)
Japanese Traditional Idiom "こんなこともあろうかと" #RubyKaigiA #rubykaigi
2016-09-08 14:53:44