decades around here
TRANSCRIPT
![Page 1: Decades around here](https://reader036.vdocuments.pub/reader036/viewer/2022082808/5565f682d8b42a20158b50ca/html5/thumbnails/1.jpg)
10 年前の Ruby 、 10 年後のRuby
日本 Ruby の会 arton ( Akio Tajima )
![Page 2: Decades around here](https://reader036.vdocuments.pub/reader036/viewer/2022082808/5565f682d8b42a20158b50ca/html5/thumbnails/2.jpg)
自己紹介• Ruby 歴 12 年 ( 1999/12/ruby1.4 ~ )• ActiveScriptRuby– IActiveScript ラッパー for Ruby– Microsoft Installer Package
• Rjb ( Ruby Java Bridge)– gem install rjb
• Ruby コミッター
![Page 3: Decades around here](https://reader036.vdocuments.pub/reader036/viewer/2022082808/5565f682d8b42a20158b50ca/html5/thumbnails/3.jpg)
広告
![Page 4: Decades around here](https://reader036.vdocuments.pub/reader036/viewer/2022082808/5565f682d8b42a20158b50ca/html5/thumbnails/4.jpg)
10 年前の Ruby
• オブジェクト指向
![Page 5: Decades around here](https://reader036.vdocuments.pub/reader036/viewer/2022082808/5565f682d8b42a20158b50ca/html5/thumbnails/5.jpg)
現在の Ruby
• メタプログラミング
![Page 6: Decades around here](https://reader036.vdocuments.pub/reader036/viewer/2022082808/5565f682d8b42a20158b50ca/html5/thumbnails/6.jpg)
?10 年後の Ruby
![Page 7: Decades around here](https://reader036.vdocuments.pub/reader036/viewer/2022082808/5565f682d8b42a20158b50ca/html5/thumbnails/7.jpg)
ケーススタディ1 から 100 までの加算
![Page 8: Decades around here](https://reader036.vdocuments.pub/reader036/viewer/2022082808/5565f682d8b42a20158b50ca/html5/thumbnails/8.jpg)
ステートメント( B.R.)
x = 0for i in (1..10) x += iendp x
![Page 9: Decades around here](https://reader036.vdocuments.pub/reader036/viewer/2022082808/5565f682d8b42a20158b50ca/html5/thumbnails/9.jpg)
イテレータ (20 世紀 Ruby)
x = 01.upto(10) do |i| x += iendp x
![Page 10: Decades around here](https://reader036.vdocuments.pub/reader036/viewer/2022082808/5565f682d8b42a20158b50ca/html5/thumbnails/10.jpg)
Enumerable#inject (since 1.7)
x = 1.upto(10).inject do |r, e| r + eendp x
2002 – 10 年の歴史
![Page 11: Decades around here](https://reader036.vdocuments.pub/reader036/viewer/2022082808/5565f682d8b42a20158b50ca/html5/thumbnails/11.jpg)
Symbol#to_proc(since 1.9)
x = 1.upto(10).inject(:+)p x
2008- 5 年の歴史
![Page 12: Decades around here](https://reader036.vdocuments.pub/reader036/viewer/2022082808/5565f682d8b42a20158b50ca/html5/thumbnails/12.jpg)
10 年後
?
![Page 13: Decades around here](https://reader036.vdocuments.pub/reader036/viewer/2022082808/5565f682d8b42a20158b50ca/html5/thumbnails/13.jpg)
goruby
$./configure$make golf$goruby –e ‘p 1.up(10).inj:+’55
![Page 14: Decades around here](https://reader036.vdocuments.pub/reader036/viewer/2022082808/5565f682d8b42a20158b50ca/html5/thumbnails/14.jpg)
メタプログラミング• コードを生成するプログラムを作るのが
難しければ、コードを生成するプログラムを生成するプログラムをすればいいじゃないか
![Page 15: Decades around here](https://reader036.vdocuments.pub/reader036/viewer/2022082808/5565f682d8b42a20158b50ca/html5/thumbnails/15.jpg)
おもちゃとは• そこにあって• ちょっとした知識と技術と• 不足感=満ち足りた状態への想像力• 作って壊しての繰り返しが楽しめる• 楽しめなければ意味がない
例)家
![Page 16: Decades around here](https://reader036.vdocuments.pub/reader036/viewer/2022082808/5565f682d8b42a20158b50ca/html5/thumbnails/16.jpg)
プラットフォーム• コンピュータ– 軍用– 商用– 電卓 → マイクロプロセッサ– パーソナルコンピュータ– 楽しいおもちゃ– ビジネスツール– インターネット専用アプライアンス(電化製
品)
![Page 17: Decades around here](https://reader036.vdocuments.pub/reader036/viewer/2022082808/5565f682d8b42a20158b50ca/html5/thumbnails/17.jpg)
電話• 電話• 携帯電話• ここまでアプライアンス• スマートフォン– アップル → アプライアンス– Android → おもちゃっぽい
![Page 18: Decades around here](https://reader036.vdocuments.pub/reader036/viewer/2022082808/5565f682d8b42a20158b50ca/html5/thumbnails/18.jpg)
おもちゃとしてのアプライアンス
?
![Page 19: Decades around here](https://reader036.vdocuments.pub/reader036/viewer/2022082808/5565f682d8b42a20158b50ca/html5/thumbnails/19.jpg)
おもちゃとしてのアプライアンス
• 1950 GE 、 RCA• 1960 ~ 松下、日立、東芝
• 2000 ~ ハイアール
– もし携帯と同様な拡散があるならば• 安全性の要求
![Page 20: Decades around here](https://reader036.vdocuments.pub/reader036/viewer/2022082808/5565f682d8b42a20158b50ca/html5/thumbnails/20.jpg)
終わらない