Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Streem
Search
Yukihiro Matsumoto
May 28, 2016
Programming
8
3.6k
Streem
東京Ruby会議11 招待講演
Yukihiro Matsumoto
May 28, 2016
Tweet
Share
More Decks by Yukihiro Matsumoto
See All by Yukihiro Matsumoto
30 Years of Ruby
matz
0
320
mruby VM
matz
0
62
Contribute to Ruby (RubyKaigi 2022)
matz
0
190
Ruby_through_Reserved_Words.pdf
matz
0
120
Ruby after 25 years
matz
1
1k
What is software made of?
matz
0
590
world-of-languages.pdf
matz
8
1.3k
Ruby Everywhere
matz
11
120k
Other Decks in Programming
See All in Programming
rails stats で紐解く ANDPAD のイマを支える技術たち
andpad
1
290
Итераторы в Go 1.23: зачем они нужны, как использовать, и насколько они быстрые?
lamodatech
0
610
menu基盤チームによるGoogle Cloudの活用事例~Application Integration, Cloud Tasks編~
yoshifumi_ishikura
0
110
Effective Signals in Angular 19+: Rules and Helpers @ngbe2024
manfredsteyer
PRO
0
130
コンテナをたくさん詰め込んだシステムとランタイムの変化
makihiro
1
120
From Translations to Multi Dimension Entities
alexanderschranz
2
130
複雑な仕様に立ち向かうアーキテクチャ
myohei
0
170
layerx_20241129.pdf
kyoheig3
2
290
htmxって知っていますか?次世代のHTML
hiro_ghap1
0
330
急成長期の品質とスピードを両立するフロントエンド技術基盤
soarteclab
0
920
プロダクトの品質に コミットする / Commit to Product Quality
pekepek
2
760
CSC509 Lecture 14
javiergs
PRO
0
130
Featured
See All Featured
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
8.3k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Speed Design
sergeychernyshev
25
670
How STYLIGHT went responsive
nonsquared
95
5.2k
Rails Girls Zürich Keynote
gr2m
94
13k
How to train your dragon (web standard)
notwaldorf
88
5.7k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.9k
The Cost Of JavaScript in 2023
addyosmani
45
7k
Statistics for Hackers
jakevdp
796
220k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Measuring & Analyzing Core Web Vitals
bluesmoon
4
170
How to Ace a Technical Interview
jacobian
276
23k
Transcript
Powered by Rabbit 2.1.8 Streem 日経Linuxライター @yukihiro_matz まつもと ゆきひろ Yukihiro
"Matz" Matsumoto
Powered by Rabbit 2.1.8 まつもとゆきひろ
Powered by Rabbit 2.1.8 Ruby
Powered by Rabbit 2.1.8 プログラマ
Powered by Rabbit 2.1.8 言語デザイナー
Powered by Rabbit 2.1.8 日経Linuxライター
Powered by Rabbit 2.1.8 作りながら学ぶプログラミング言語
Powered by Rabbit 2.1.8 言語デザイン
Powered by Rabbit 2.1.8 言語実装
Powered by Rabbit 2.1.8 プロ(?)デザイナーの技
Powered by Rabbit 2.1.8 書ける人が他にいない
Powered by Rabbit 2.1.8 Streem
Powered by Rabbit 2.1.8 教材・例題
Powered by Rabbit 2.1.8 言語デザイン
Powered by Rabbit 2.1.8 言語実装
Powered by Rabbit 2.1.8 どんな言語?
Powered by Rabbit 2.1.8 ポジション
Powered by Rabbit 2.1.8 汎用言語を目指さない
Powered by Rabbit 2.1.8 まつもと=Rubyのひと
Powered by Rabbit 2.1.8 「まつもとがRubyをあきらめた」
Powered by Rabbit 2.1.8 Rubyの発展の邪魔になりたくない
Powered by Rabbit 2.1.8 実験
Powered by Rabbit 2.1.8 教材
Powered by Rabbit 2.1.8 特定目的言語
Powered by Rabbit 2.1.8 可能であればRubyと変える
Powered by Rabbit 2.1.8 異なる設計判断
Powered by Rabbit 2.1.8 妥協できない点の明確化
Powered by Rabbit 2.1.8 20年の経験の反映
Powered by Rabbit 2.1.8 関数型(的)プログラミング
Powered by Rabbit 2.1.8 イミュータブルデータ
Powered by Rabbit 2.1.8 コンカレンシー
Powered by Rabbit 2.1.8 プログラミングモデル
Powered by Rabbit 2.1.8 ストリーミングプログラミング
Powered by Rabbit 2.1.8 ループがない
Powered by Rabbit 2.1.8 endがない
Powered by Rabbit 2.1.8 ピタゴラスイッチ・プログラミング Rube Goldberg Programming
Powered by Rabbit 2.1.8 実例
Powered by Rabbit 2.1.8 Cat
Powered by Rabbit 2.1.8 stdin | stdout cat pipeline
Powered by Rabbit 2.1.8 stdin = read I/O
Powered by Rabbit 2.1.8 stdout = write I/O
Powered by Rabbit 2.1.8 read I/O | write I/O
Powered by Rabbit 2.1.8 task(read I/O) | task(write I/O)
Powered by Rabbit 2.1.8 task(read I/O) producer epoll(2) read(2)
queue push
Powered by Rabbit 2.1.8 task(write I/O) consumer queue pop
write(2)
Powered by Rabbit 2.1.8 Hello World
Powered by Rabbit 2.1.8 ["Hello World"] | stdout hello
world
Powered by Rabbit 2.1.8 配列はproducerになる
Powered by Rabbit 2.1.8 Socket connection
Powered by Rabbit 2.1.8 # simple echo server on
port 8007 tcp_server(8007) | each{|sock| sock | sock } simple echo server
Powered by Rabbit 2.1.8 tcp_server = tcp_server task
Powered by Rabbit 2.1.8 each task
Powered by Rabbit 2.1.8 sock I/O | sock I/O
Powered by Rabbit 2.1.8 tcp_server task producer accept(2) create
socket I/O queue push
Powered by Rabbit 2.1.8 each task filter (consumer) queue
pop call function
Powered by Rabbit 2.1.8 # simple netcat on port
8007 sock = tcp_socket("localhost", 8007) stdin | sock sock | stdout simple netcat client
Powered by Rabbit 2.1.8 FizzBuzz
Powered by Rabbit 2.1.8 # seq(100) returns a stream
of numbers from 1 to 100. # stdout is an output destination. seq(100) | map{|x| if (x % 15 == 0) "FizzBuzz" else if (x % 3 == 0) "Fizz" else if (x % 5 == 0) "Buzz" else x } | stdout
Powered by Rabbit 2.1.8 スケジューラー
Powered by Rabbit 2.1.8 コア数のスレッド
Powered by Rabbit 2.1.8 スレッドループ ループ タスクキューから取り出し 実行 全ストリーム終了まで
Powered by Rabbit 2.1.8 FizzBuzz
Powered by Rabbit 2.1.8 # simple netcat on port
8007 sock = tcp_socket("localhost", 8007) stdin | sock sock | stdout simple netcat client
Powered by Rabbit 2.1.8 オブジェクト指向
Powered by Rabbit 2.1.8 foo.bar => bar(foo)
Powered by Rabbit 2.1.8 namespace
Powered by Rabbit 2.1.8 namespace { ... }
Powered by Rabbit 2.1.8 new namespace(args)
Powered by Rabbit 2.1.8 bar(foo)
Powered by Rabbit 2.1.8 bar(foo) fooのnamespaceにbarがあれば なければ変数barを実行
Powered by Rabbit 2.1.8 bar(foo) barが無名関数なら実行 barがC関数なら実行 barが配列ならx(0)で先頭要素
Powered by Rabbit 2.1.8 Lisp1.5
Powered by Rabbit 2.1.8 総称関数を導入したい
Powered by Rabbit 2.1.8 Lisp1
Powered by Rabbit 2.1.8 ライブラリ
Powered by Rabbit 2.1.8 少しずつ充実させてる
Powered by Rabbit 2.1.8 seq/repeat/rand map/each time csv stat/math/sort
Powered by Rabbit 2.1.8 seq/repeat/rand
Powered by Rabbit 2.1.8 Producers seq(10) rand(10) repeat(v, 10)
cycle([v1,v2], 10)
Powered by Rabbit 2.1.8 Producers zip(strm1,strm2) concat(strm1,strm2)
Powered by Rabbit 2.1.8 map/each
Powered by Rabbit 2.1.8 Filters map{|x| x*2} flatmap{|x| x*2}
filter{|x| x%2 == 0} each{|x| print(x)}
Powered by Rabbit 2.1.8 map=each+emit
Powered by Rabbit 2.1.8 def map(func) { each{|x| emit
func(x)} }
Powered by Rabbit 2.1.8 Filters reduce{|x,y| x*y} reduce_by_key{|x,y| x*y}
count min/max
Powered by Rabbit 2.1.8 time
Powered by Rabbit 2.1.8 now() time("2016-05-28T10:30 +0830") time(2016,5,28,10,30)
Powered by Rabbit 2.1.8 任意のタイムゾーンで生成・表示
Powered by Rabbit 2.1.8 csv
Powered by Rabbit 2.1.8 csv()
Powered by Rabbit 2.1.8 stat/math/sort
Powered by Rabbit 2.1.8 sum() average() stdev() variance() correl()
sample()
Powered by Rabbit 2.1.8 sort sort{|x,y| x.cmp(y)} sort_by{|x| x(2)}
median median{|x| x(2)}
Powered by Rabbit 2.1.8 今後の展開
Powered by Rabbit 2.1.8 総称関数
Powered by Rabbit 2.1.8 パターンマッチング
Powered by Rabbit 2.1.8 キーワード引数
Powered by Rabbit 2.1.8 なにができるの?
Powered by Rabbit 2.1.8 CSV処理
Powered by Rabbit 2.1.8 統計(っぽい)処理
Powered by Rabbit 2.1.8 シェルスクリプト(っぽい)処理
Powered by Rabbit 2.1.8 データ変換
Powered by Rabbit 2.1.8 おもちゃレベルのEmbulk
Powered by Rabbit 2.1.8 Web? Maybe
Powered by Rabbit 2.1.8 Game? Maybe
Powered by Rabbit 2.1.8 ワークフローエンジン?
Powered by Rabbit 2.1.8 今後も成長
Powered by Rabbit 2.1.8 楽しい!
Powered by Rabbit 2.1.8 自作言語の世界
Powered by Rabbit 2.1.8 Thank you