関数型言語のすすめ
DESCRIPTION
高専カンファレンス in 三重の発表資料です。TRANSCRIPT
![Page 1: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/1.jpg)
関数型言語のすすめ
bleis-tift
Marh, 26 2011
![Page 2: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/2.jpg)
自己紹介
id:bleis-tift / @bleis
名古屋 Scala勉強会 / F# User Group /TDDBC
Gitの人、SQLの人、C#の人鈴鹿高専電子情報工学科卒業生
元担当教官の前で発表とかどんな拷問・・・
![Page 3: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/3.jpg)
自己紹介
id:bleis-tift / @bleis
名古屋 Scala勉強会 / F# User Group /TDDBC
Gitの人、SQLの人、C#の人鈴鹿高専電子情報工学科卒業生元担当教官の前で発表とかどんな拷問・・・
![Page 4: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/4.jpg)
気を取り直して・・・
みなさん勉強会行きますよね?三重から名古屋って近いですよね?てことは・・・
名古屋の勉強会行きますよね?
![Page 5: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/5.jpg)
気を取り直して・・・
みなさん勉強会行きますよね?
三重から名古屋って近いですよね?てことは・・・
名古屋の勉強会行きますよね?
![Page 6: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/6.jpg)
気を取り直して・・・
みなさん勉強会行きますよね?三重から名古屋って近いですよね?
てことは・・・
名古屋の勉強会行きますよね?
![Page 7: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/7.jpg)
気を取り直して・・・
みなさん勉強会行きますよね?三重から名古屋って近いですよね?てことは・・・
名古屋の勉強会行きますよね?
![Page 8: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/8.jpg)
気を取り直して・・・
みなさん勉強会行きますよね?三重から名古屋って近いですよね?てことは・・・
名古屋の勉強会行きますよね?
![Page 9: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/9.jpg)
ようこそ、名古屋の勉強会へ!
名古屋の勉強会の特徴をお教えします!
![Page 10: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/10.jpg)
ようこそ、名古屋の勉強会へ!
名古屋の勉強会の特徴をお教えします!
![Page 11: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/11.jpg)
2月26日
名古屋Ruby会議 02開催!それと併設で名古屋Reject会議なる怪しい集い・・・
![Page 12: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/12.jpg)
2月26日
名古屋Ruby会議 02開催!
それと併設で名古屋Reject会議なる怪しい集い・・・
![Page 13: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/13.jpg)
2月26日
名古屋Ruby会議 02開催!それと併設で名古屋Reject会議なる怪しい集い・・・
![Page 14: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/14.jpg)
名古屋Reject会議@bleis「そうだ、bf処理系つくろう!もちろん SQLで!」
@sunflat「Amazon EC2にサーバを移転してみた」
@yoya「PHP: ZendEngineの話」
@terurou「CommonJSの話」
@nari3「GC本スピンオフ」
@mallowlabs「AsakusaSatelliteの紹介」
@yoshihiro503「初音ミクと Coqの類似性について」
@mzp「証明駆動の楽しみ」
@wof moriguchi「F#による関数プログラミング」
@keigoi「ocamljsの話」
@osiire「GADTブランチの今」
@kaizen nagoya「プログラミング教育の XYZ」
@dico leque「Meta-object Lisp」
![Page 15: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/15.jpg)
名古屋Reject会議@bleis「そうだ、bf処理系つくろう!もちろん SQLで!」
@sunflat「Amazon EC2にサーバを移転してみた」
@yoya「PHP: ZendEngineの話」
@terurou「CommonJSの話」
@nari3「GC本スピンオフ」
@mallowlabs「AsakusaSatelliteの紹介」
@yoshihiro503「初音ミクと Coqの類似性について」
@mzp「証明駆動の楽しみ」
@wof moriguchi「F#による関数プログラミング」
@keigoi「ocamljsの話」
@osiire「GADTブランチの今」
@kaizen nagoya「プログラミング教育の XYZ」
@dico leque「Meta-object Lisp」
![Page 16: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/16.jpg)
約半分が関数型言語にかかわる発表
![Page 17: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/17.jpg)
約半分が関数型言語にかかわる発表
![Page 18: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/18.jpg)
さらに本会まで侵略・・・
@mzp「Coq to Rubyによる証明駆動開発」
![Page 19: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/19.jpg)
さらに本会まで侵略・・・@mzp「Coq to Rubyによる証明駆動開発」
![Page 20: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/20.jpg)
名古屋では関数型言語が人気!
その中でも静的型付けの関数型言語が熱い!OCamlとかHaskellとかそのあたりTwitterにいる名古屋の関数型言語使いを見てみましょう
![Page 21: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/21.jpg)
名古屋では関数型言語が人気!
その中でも静的型付けの関数型言語が熱い!
OCamlとかHaskellとかそのあたりTwitterにいる名古屋の関数型言語使いを見てみましょう
![Page 22: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/22.jpg)
名古屋では関数型言語が人気!
その中でも静的型付けの関数型言語が熱い!OCamlとかHaskellとかそのあたり
Twitterにいる名古屋の関数型言語使いを見てみましょう
![Page 23: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/23.jpg)
名古屋では関数型言語が人気!
その中でも静的型付けの関数型言語が熱い!OCamlとかHaskellとかそのあたりTwitterにいる名古屋の関数型言語使いを見てみましょう
![Page 24: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/24.jpg)
![Page 25: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/25.jpg)
![Page 26: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/26.jpg)
![Page 27: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/27.jpg)
![Page 28: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/28.jpg)
このように
名古屋では静的型付けの関数型言語使いが圧倒的多数なので、名古屋で関数型言語と言えば静的型付けと思っていい面倒なので以降「静的型付けの」は省略
![Page 29: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/29.jpg)
このように
名古屋では静的型付けの関数型言語使いが圧倒的多数
なので、名古屋で関数型言語と言えば静的型付けと思っていい面倒なので以降「静的型付けの」は省略
![Page 30: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/30.jpg)
このように
名古屋では静的型付けの関数型言語使いが圧倒的多数なので、名古屋で関数型言語と言えば静的型付けと思っていい
面倒なので以降「静的型付けの」は省略
![Page 31: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/31.jpg)
このように
名古屋では静的型付けの関数型言語使いが圧倒的多数なので、名古屋で関数型言語と言えば静的型付けと思っていい面倒なので以降「静的型付けの」は省略
![Page 32: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/32.jpg)
動的型付けの関数型言語使いの方たちも・・・
![Page 33: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/33.jpg)
動的型付けの関数型言語使いの方たちも・・・
![Page 34: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/34.jpg)
動的型付けの関数型言語使いの方たちも・・・
![Page 35: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/35.jpg)
つまりどういうことだってばよ?
関数型言語が使えると名古屋の勉強会ライフが
より楽しく!
![Page 36: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/36.jpg)
つまりどういうことだってばよ?
関数型言語が使えると名古屋の勉強会ライフが
より楽しく!
![Page 37: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/37.jpg)
なんでこんなに人気なの?
![Page 38: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/38.jpg)
関数型言語が熱い理由
その1、型推論
![Page 39: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/39.jpg)
関数型言語が熱い理由
その1、型推論
![Page 40: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/40.jpg)
型推論
型に守られていながら、型推論によってみんなハッピー!
.
型推論(OCaml)
.
.
.
let f a = a + 10
(+)は intを 2つ取って intを返すつまり aは int型(+)の結果を返しているので fの戻り値の型は int
fは intを 1つ取って intを返す関数
型を書いていないのに関数の型を決定できた!
![Page 41: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/41.jpg)
型推論
型に守られていながら、型推論によってみんなハッピー!
.
型推論(OCaml)
.
.
.
let f a = a + 10
(+)は intを 2つ取って intを返すつまり aは int型(+)の結果を返しているので fの戻り値の型は int
fは intを 1つ取って intを返す関数
型を書いていないのに関数の型を決定できた!
![Page 42: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/42.jpg)
型推論
型に守られていながら、型推論によってみんなハッピー!
.
型推論(OCaml)
.
.
.
let f a = a + 10
(+)は intを 2つ取って intを返す
つまり aは int型(+)の結果を返しているので fの戻り値の型は int
fは intを 1つ取って intを返す関数
型を書いていないのに関数の型を決定できた!
![Page 43: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/43.jpg)
型推論
型に守られていながら、型推論によってみんなハッピー!
.
型推論(OCaml)
.
.
.
let f a = a + 10
(+)は intを 2つ取って intを返すつまり aは int型
(+)の結果を返しているので fの戻り値の型は int
fは intを 1つ取って intを返す関数
型を書いていないのに関数の型を決定できた!
![Page 44: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/44.jpg)
型推論
型に守られていながら、型推論によってみんなハッピー!
.
型推論(OCaml)
.
.
.
let f a = a + 10
(+)は intを 2つ取って intを返すつまり aは int型(+)の結果を返しているので fの戻り値の型は int
fは intを 1つ取って intを返す関数
型を書いていないのに関数の型を決定できた!
![Page 45: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/45.jpg)
型推論
型に守られていながら、型推論によってみんなハッピー!
.
型推論(OCaml)
.
.
.
let f a = a + 10
(+)は intを 2つ取って intを返すつまり aは int型(+)の結果を返しているので fの戻り値の型は int
fは intを 1つ取って intを返す関数
型を書いていないのに関数の型を決定できた!
![Page 46: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/46.jpg)
型推論
型に守られていながら、型推論によってみんなハッピー!
.
型推論(OCaml)
.
.
.
let f a = a + 10
(+)は intを 2つ取って intを返すつまり aは int型(+)の結果を返しているので fの戻り値の型は int
fは intを 1つ取って intを返す関数
型を書いていないのに関数の型を決定できた!
![Page 47: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/47.jpg)
関数型言語が熱い理由
その2、型が軽い
![Page 48: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/48.jpg)
型が軽い
気軽に型を定義することができてみんなハッピー!
![Page 49: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/49.jpg)
型が軽い
気軽に型を定義することができてみんなハッピー!
![Page 50: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/50.jpg)
C#のばあい
![Page 51: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/51.jpg)
C#のばあい
長い・・・
![Page 52: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/52.jpg)
C#のばあい
長い・・・
![Page 53: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/53.jpg)
Rubyのばあい
![Page 54: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/54.jpg)
Rubyのばあい
タイプ数は減ったけど行数は変わってない・・・
![Page 55: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/55.jpg)
Rubyのばあい
タイプ数は減ったけど行数は変わってない・・・
![Page 56: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/56.jpg)
F#のばあい
![Page 57: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/57.jpg)
F#のばあい
短い!
![Page 58: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/58.jpg)
F#のばあい
短い!
![Page 59: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/59.jpg)
型が軽い
こんな感じで気軽に型が作れる!
![Page 60: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/60.jpg)
関数型言語が熱い理由
その3、安全
![Page 61: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/61.jpg)
安全
NullPointerExceptionが発生しないからみんなハッピー!
![Page 62: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/62.jpg)
え、あ。もうすぐ時間ですか?
残念!続きは懇親会もしくは名古屋の勉強会で!
![Page 63: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/63.jpg)
え、あ。もうすぐ時間ですか?残念!続きは懇親会もしくは名古屋の勉強会で!
![Page 64: 関数型言語のすすめ](https://reader034.vdocuments.pub/reader034/viewer/2022051817/549079dfb47959a4028b4a0a/html5/thumbnails/64.jpg)
関数型言語を学んで名古屋の勉強会ライフを楽しもう!