SlideShare une entreprise Scribd logo
1  sur  82
Télécharger pour lire hors ligne
Thinking in Cats
eugene yokota (@eed3si9n)
Typesafe
March 2016, ScalaMatsuri
文字数制限あり。折りたたみやエンコーディングは無し。
• Reactive Platform team at Typesafe
• a commercial development platform for pros
• tech lead of
Typesafe で仕事しています
About me
文字数制限あり。折りたたみやエンコーディングは無し。Cats というライブラリの話
Cats
Cats は Scala プログラミング言語で関数型プログラミングを
するための抽象化を提供するライブラリ
Cats is a library to provide abstraction
for functional programming in
the Scala programming language.
Cats: Scala の型システムを利用して式を用いたプログラミン
グの支援するためのライブラリ
Cats is a library to provide
abstraction for programming
with expressions (functional
programming) making use of
the type system (in the Scala
programming language).
文字数制限あり。折りたたみやエンコーディングは無し。
hard cats
soft cats
2種類の猫
software doesn’t exist in a vacuum
ソフトウェアは真空状態に存在するものではない
software doesn’t exist in a vacuum
水、酸素、光、土壌など
• water
• oxygen
• light
• soil (nutrients, pH)
software doesn’t exist in a vacuum
継続的にメンテ(進化)するための開発リソース、セオリー、
コミュニティ、周辺プラグイン、ドキュメンテーション
• development resource to

maintain/evolve the system
• underlying theory
• user community
• surrounding plugins/libraries
• documentation
60 contributors + 547 pull requests in an
year.
コントリビュータは色んな所から集まってきてる
pull req も一年で 547 本と活発
d6 (also known as non, Erik)
d6 の人柄みたいなのが、ライブラリの方針に反映されている
motivations
とっつきやすさ、モジュール性、ドキュメンテーション、
効率性
•Approachability
•Modularity
•Documentation
•Efficiency
see also Principles for Modular, Functional,
Approachable Libraries (video, slides)
goals
関数型、安全、高速、ドキュメントが整備されている、
モジュラー、慣用的、実用的、協調、友好的
•Functional
•Safe
•Fast
•Documented
•Modular
•Idiomatic
•Pragmatic
•Collaborative
•Welcoming
see also Principles for Modular, Functional,
Approachable Libraries (video, slides)
goals
Scala で関数型プログラムをおこなう障壁を取り除く
“Remove barriers to doing functional programming in
Scala.”
see also Principles for Modular, Functional,
Approachable Libraries (video, slides)
barriers
技術的な障壁: 複雑さ、職場での障壁: 未知への恐怖、
社会的な障壁: 「これは僕のためのものじゃない」
• technical barriers: complexity (e.g. typeclass is not
first class)
• barriers at work: fear of the unknown (e.g.
performance concerns)
• social barriers: “This is not for me” (e.g. imposter
syndrome and delayed feelings of mastery)
see also Principles for Modular, Functional,
Approachable Libraries (video, slides)
we should
安定した長期的で協力的なコミュニティを促進するために、
新境地を開拓しつつ、高品質なライブラリを提供する
• be willing to break new ground (e.g. build-your-own-
runtime)
• provide high-quality libraries (e.g. documentation,
benchmarks)
• foster a stable, long-term, supportive community
• model good technical and social practices
• reach out and welcome newcomers
• acknowledge the limits of our own knowledge
• provide opportunities for new work
• accept responsibility for education and codes of
conduct
プログラマが行う作業: 問題ドメインをモデル化して、
コンピュータで実行させる
problem domain
model
computer
what we do
fp では問題ドメインから時系列を抜いて、
データ型と演算子に分け、それを計算機で評価する
problem domain computer
fp
datatype
operators
合成可能性、論理的な推論可能性
problem domain computer
fp
datatype
operators
•composability
•reasonable
演算子がデータ型の関係性を記述する
型クラスによる抽象化
problem domain computer
fp
datatype
operators
•composability
•reasonable
•typeclasses
評価器としてのインタプリタ
制御された作用、高性能化など
problem domain interpretor
fp
datatype
operators
evaluate
•controlled effects
「型システムとは、(中略) プログラムがある種の振る舞いを起
こさないことを保証する構文的手法である。」TAPL から
soundness
“A type system is a syntactic method for
automatically checking the absence of
certain erroneous behaviors…”
健全性: 論証が妥当であり、かつ前提の全てが真であること
soundness
•argument is valid (all cups are
green; Socrates is a cup; therefore,
Socrates is green.)
P→Q
•all premise is true
P ~ true
これはコンパイルが通るべきではない
soundness?
scala> "1" == 1
res0: Boolean = false
this should not compile
等価性はこのように定義されるべき
equality
trait Eq[A] {
  def equal(a1: A, a2: A): Boolean
}
Cats での等価性
equality
scala> import cats._, cats.std.all._,
cats.syntax.all._
scala> "1" === 1
<console>:26: error: type mismatch;
found : Int(1)
required: String
      "1" === 1
              ^
データ型と閉じた演算子という考え方に沿っている
problem domain computer
fp
datatype
operators
see also Constraints Liberate, Liberties
Constrain (video)
Delphi にプリンタドライバが無かったので直に通信していた
プリンタを変えると使えないプログラムになった
see also Constraints Liberate, Liberties
Constrain (video)
一度中間値を生成して、そこからプリンタに出力するべき
see also Constraints Liberate, Liberties
Constrain (video)
別の例としてはマインクラフトの爆発物
複数使うことでより強力な爆発を起こすことができる
see also Constraints Liberate, Liberties
Constrain (video)
一度こうなってしまうと合成しようが無い
副作用のメンタルイメージとなる
see also Constraints Liberate, Liberties
Constrain (video)
よくある2 つの間違いは早すぎる具現化、
合成可能性を設計段階で考慮しないこと
• concretizing too early
• not designing for compositionality
mistakes we make
see also Constraints Liberate, Liberties
Constrain (video)
具象的なシグネチャ
42億 * 42億通りの実装
def foo(a: Int): Int
see also Constraints Liberate, Liberties
Constrain (video)
型を変えることを許すことで、型を抽象化できる
def foo[A](a: A): A
see also Constraints Liberate, Liberties
Constrain (video)
あるレイヤーでの制約は別のレイヤーでの自由と力になる
a constraint at one level leads to
freedom and power at another level.
finite set and arrow
有限集合と射
これは射の内部図式
internal diagram of an arrow
finite set and arrow
ドメインとコドメイン
有限集合の射は Scala では関数として書ける
val favoriteBreakfast: Person => Breakfast = {
case John => Eggs
case Mary => Coffee
case Sam => Coffee
}
domain codomain
finite set and arrow
これも射の内部図式
Sam が片想いになってる
internal diagram of another arrow
finite set and arrow
ドメインとコドメインが同一の対象の射を自己準同型射と呼ぶ
val favoritePerson: Person => Person = {
case John => Mary
case Mary => John
case Sam => Sam
}
endomorphism: An arrow in which the domain and
codomain are the same object.
finite set and arrow
恒等射: ドメインとコドメインが同一の集合 A で、かつ A 内
の全ての a において f(a) = a であるもの
identity arrow, 1A: An arrow, in which the domain
and codomain are the same set A, and for each of a
in A, f(a) = a
scala> identity(John)
res0: John.type = John
finite set and arrow
これまで見た射の外部図式
external diagrams of the arrows
finite set and arrow
射の合成
composition of arrows
finite set and arrow
射の合成
composition of arrows
finite set and arrow
f ∘ g は「f マル g」、または「f と g の合成射」と読む
composition of arrows
“f following g”, or “f of g”
• objects: A, B, C
• arrows: f: A B
• identity arrows: 1A: A A
• composition of arrows
category
圏は対象、射、恒等射、射の合成から構成される
これらのデータは単位元律と結合律を満たす必要がある
• left identity law: If 1A: A A, g: A B, then g ∘ 1A = g
• right identity law: If f: A B, 1B: B B, then 1A ∘ f = f
• associative law: If f: A B, g: B C, h: C D, then

h ∘ (g ∘ f) = (h ∘ g) ∘ f
laws
genericity
「抽象」という言葉を正確に定義できる
圏論から得られる概念にのみよる定義を抽象とする
cat theory gives us tool to think in generic
terms, and precise meaning to “abstract.”
abstract (in cat theory):
The definition uses only of the category
theoric notions, rather than some
additional information about about the
objects and arrows.
genericity
同型射は抽象概念の一例
逆射 g が定義できる射 f は同型射。A と B は同型。
cat theory gives us tool to think in generic
terms, and precise meaning to “abstract.”
abstract (in cat theory): uses only
category theoric notions. for example:
isomorphism: an arrow f: A ⇒ B is called
an isomorphism, if there is an arrow
g: B ⇒ A, for which
g ∘ f = 1A and f ∘ g = 1B
universal mapping property (UMP)
普遍写像性 (UMP; 普遍性)
ある図式があるとき、別の図式を可換とする一意な x がある
given a diagram abc, there exists a unique
x that makes another diagram xyz
commute.
universal mapping property (UMP)
積の一意性: 任意の圏 C において、上の図が可換となる
一意の射 u: X ⇒ P が存在する。
uniqueness of products
Given any category C, there exists a unique
u: X ⇒ P, making the diagram commute.
universal mapping property (UMP)
自由モノイド: 任意のモノイド N と任意の関数 f があるとき、
一意の準同型写像が存在する。
uniqueness of free monoids
Given any monoid N and any function f there exists a unique
monoid homomorphism f_hom: M(X) ⇒ N.
f_hom(x • y) = f_hom(x) •’ f_hom(y), and f_hom(e) = e’
universal mapping property (UMP)
積: (A, B) と同型
自由モノイド: List[A] と同型
free monoid ≅ List[A]
product ≅ (A, B)
monads
モナドはフラクタルだ
monads are fractals.
monads
List は ++ に関してモナドを形成する
List forms a monad over ++.
scala> List(List(1), List(2, 3), List(4)).
foldLeft(List(): List[Int]) { _ ++ _ }
res0: List[Int] = List(1, 2, 3, 4)
monads
Option は (_, _)._2 に関してモナドを形成する
Option forms a monad over (_, _)_2.
scala> (Some(None: Option[Int]): Option[Option[Int]]).
foldLeft(None: Option[Int]) { (_, _)._2 }
res20: Option[Int] = None
scala> (Some(Some(1): Option[Int]): Option[Option[Int]]).
foldLeft(None: Option[Int]) { (_, _)._2 }
res21: Option[Int] = Some(1)
scala> (None: Option[Option[Int]]).
foldLeft(None: Option[Int]) { (_, _)._2 }
res22: Option[Int] = None
monads
両方のデータ型とも自己相似的な構造をフラットに潰すことが
できる。
Both datatypes can crunch the self-similar
structure into a flat one.
monads
どの 2項演算の上に join が実装されているかが、
そのモナドの意味論を決定する
Both datatypes can crunch the self-similar
structure into a flat one.
What binary operation the flattening is
implemented over determines the
semantics of a monad.
boxes (kinds)
箱について考えることができる
cat theory gives us tool to think about
boxes.
boxes (kinds)
箱について考えることができる
cat theory gives us tools to think about
boxes.
boxes (kinds)
箱について考えることができる
cat theory gives us tools to think about
boxes.
boxes (kinds)
Scala lets you abstract over a monadic datatype
モナディックなデータ型に関して抽象なコードを書ける
trait UserServices[F[_]] { this: UserRepos[F] =>
  def userService: UserService = new UserService
  class UserService {
    import example.MonadSyntax._
    def isFriends(user1: Long, user2: Long): F[Boolean] =
      actM[F, Boolean] {
        val a = userRepo.followers(user1).next
        val b = userRepo.followers(user2).next
        a.exists(_.id == user2) && b.exists(_.id == user1)
      }
  }
}
scala> val testService = new TestUserRepos with
UserServices[Id] {}
testService: TestUserRepos with UserServices[cats.Id] = ..
Scala lets you abstract over a monadic datatype
例えば、ここでは XorT[Future, Error, ?] を渡している
..
scala> val testService = new TestUserRepos with
UserServices[Id] {}
testService: TestUserRepos with UserServices[cats.Id] = ..
scala> val service1 = {
  import ExecutionContext.Implicits._
  new UserRepos1 with UserServices[XorT[Future, Error, ?]] {}
}
service1: UserRepos1 with
UserServices[[γ]cats.data.XorT[scala.concurrent.Future,Error,γ]] =
$anon$1@ff10590
thank you
猫番と独習 Scalaz
• herding cats - http://eed3si9n.com/herding-cats/
• learning Scalaz - http://eed3si9n.com/learning-scalaz/
Programming in
Scala, 2nd ed
Odersky, Spoon,
Venners
Learn You a
Haskell for Great
Good!
Lipovača
Functional
Programming in
Scala
Chiusano and
Rúnar
Category Theory
Awodey
Scala in Depth
Suereth
Types and
Programming
Languages
Pierce
Conceptual
Mathematics, 2nd ed
Lawvere, Schanuel

Contenu connexe

Tendances

実務者のためのかんたんScalaz
実務者のためのかんたんScalaz実務者のためのかんたんScalaz
実務者のためのかんたんScalazTomoharu ASAMI
 
How wonderful to be (statically) typed 〜型が付くってスバラシイ〜
How wonderful to be (statically) typed 〜型が付くってスバラシイ〜How wonderful to be (statically) typed 〜型が付くってスバラシイ〜
How wonderful to be (statically) typed 〜型が付くってスバラシイ〜Hiromi Ishii
 
Scala の関数型プログラミングを支える技術
Scala の関数型プログラミングを支える技術Scala の関数型プログラミングを支える技術
Scala の関数型プログラミングを支える技術Naoki Aoyama
 
15分でざっくり分かるScala入門
15分でざっくり分かるScala入門15分でざっくり分かるScala入門
15分でざっくり分かるScala入門SatoYu1ro
 
Scalaで萌える関数型プログラミング[完全版]
Scalaで萌える関数型プログラミング[完全版]Scalaで萌える関数型プログラミング[完全版]
Scalaで萌える関数型プログラミング[完全版]Ra Zon
 
Algebraic DP: 動的計画法を書きやすく
Algebraic DP: 動的計画法を書きやすくAlgebraic DP: 動的計画法を書きやすく
Algebraic DP: 動的計画法を書きやすくHiromi Ishii
 
【java8 勉強会】 怖くない!ラムダ式, Stream API
【java8 勉強会】 怖くない!ラムダ式, Stream API【java8 勉強会】 怖くない!ラムダ式, Stream API
【java8 勉強会】 怖くない!ラムダ式, Stream APIdcomsolution
 
たのしい高階関数
たのしい高階関数たのしい高階関数
たのしい高階関数Shinichi Kozake
 
これから Haskell を書くにあたって
これから Haskell を書くにあたってこれから Haskell を書くにあたって
これから Haskell を書くにあたってTsuyoshi Matsudate
 
Scala2.8への移行
Scala2.8への移行Scala2.8への移行
Scala2.8への移行guest5f4320
 
純粋関数型アルゴリズム入門
純粋関数型アルゴリズム入門純粋関数型アルゴリズム入門
純粋関数型アルゴリズム入門Kimikazu Kato
 
60分で体験する Stream / Lambda
 ハンズオン
60分で体験する Stream / Lambda
 ハンズオン60分で体験する Stream / Lambda
 ハンズオン
60分で体験する Stream / Lambda
 ハンズオンHiroto Yamakawa
 
rpscala35-scala2.9.0
rpscala35-scala2.9.0rpscala35-scala2.9.0
rpscala35-scala2.9.0Kenji Yoshida
 
BOF1-Scala02.pdf
BOF1-Scala02.pdfBOF1-Scala02.pdf
BOF1-Scala02.pdfHiroshi Ono
 
はてなブックマークにおけるアクセス制御 - 半環構造に基づくモデル化
はてなブックマークにおけるアクセス制御 - 半環構造に基づくモデル化はてなブックマークにおけるアクセス制御 - 半環構造に基づくモデル化
はてなブックマークにおけるアクセス制御 - 半環構造に基づくモデル化Lintaro Ina
 

Tendances (20)

実務者のためのかんたんScalaz
実務者のためのかんたんScalaz実務者のためのかんたんScalaz
実務者のためのかんたんScalaz
 
Phantom Type in Scala
Phantom Type in ScalaPhantom Type in Scala
Phantom Type in Scala
 
How wonderful to be (statically) typed 〜型が付くってスバラシイ〜
How wonderful to be (statically) typed 〜型が付くってスバラシイ〜How wonderful to be (statically) typed 〜型が付くってスバラシイ〜
How wonderful to be (statically) typed 〜型が付くってスバラシイ〜
 
Scala の関数型プログラミングを支える技術
Scala の関数型プログラミングを支える技術Scala の関数型プログラミングを支える技術
Scala の関数型プログラミングを支える技術
 
15分でざっくり分かるScala入門
15分でざっくり分かるScala入門15分でざっくり分かるScala入門
15分でざっくり分かるScala入門
 
Scalaで萌える関数型プログラミング[完全版]
Scalaで萌える関数型プログラミング[完全版]Scalaで萌える関数型プログラミング[完全版]
Scalaで萌える関数型プログラミング[完全版]
 
Lisp講義1
Lisp講義1Lisp講義1
Lisp講義1
 
Algebraic DP: 動的計画法を書きやすく
Algebraic DP: 動的計画法を書きやすくAlgebraic DP: 動的計画法を書きやすく
Algebraic DP: 動的計画法を書きやすく
 
【java8 勉強会】 怖くない!ラムダ式, Stream API
【java8 勉強会】 怖くない!ラムダ式, Stream API【java8 勉強会】 怖くない!ラムダ式, Stream API
【java8 勉強会】 怖くない!ラムダ式, Stream API
 
たのしい高階関数
たのしい高階関数たのしい高階関数
たのしい高階関数
 
これから Haskell を書くにあたって
これから Haskell を書くにあたってこれから Haskell を書くにあたって
これから Haskell を書くにあたって
 
Scala2.8への移行
Scala2.8への移行Scala2.8への移行
Scala2.8への移行
 
純粋関数型アルゴリズム入門
純粋関数型アルゴリズム入門純粋関数型アルゴリズム入門
純粋関数型アルゴリズム入門
 
講座Java入門
講座Java入門講座Java入門
講座Java入門
 
ATN No.2 Scala事始め
ATN No.2 Scala事始めATN No.2 Scala事始め
ATN No.2 Scala事始め
 
60分で体験する Stream / Lambda
 ハンズオン
60分で体験する Stream / Lambda
 ハンズオン60分で体験する Stream / Lambda
 ハンズオン
60分で体験する Stream / Lambda
 ハンズオン
 
rpscala35-scala2.9.0
rpscala35-scala2.9.0rpscala35-scala2.9.0
rpscala35-scala2.9.0
 
BOF1-Scala02.pdf
BOF1-Scala02.pdfBOF1-Scala02.pdf
BOF1-Scala02.pdf
 
たのしい関数型
たのしい関数型たのしい関数型
たのしい関数型
 
はてなブックマークにおけるアクセス制御 - 半環構造に基づくモデル化
はてなブックマークにおけるアクセス制御 - 半環構造に基づくモデル化はてなブックマークにおけるアクセス制御 - 半環構造に基づくモデル化
はてなブックマークにおけるアクセス制御 - 半環構造に基づくモデル化
 

En vedette

Scala Matsuri 2016: Japanese Text Mining with Scala and Spark
Scala Matsuri 2016: Japanese Text Mining with Scala and SparkScala Matsuri 2016: Japanese Text Mining with Scala and Spark
Scala Matsuri 2016: Japanese Text Mining with Scala and SparkEduardo Gonzalez
 
How Scala code is expressed in the JVM
How Scala code is expressed in the JVMHow Scala code is expressed in the JVM
How Scala code is expressed in the JVMKoichi Sakata
 
Scala Refactoring for Fun and Profit (Japanese subtitles)
Scala Refactoring for Fun and Profit (Japanese subtitles)Scala Refactoring for Fun and Profit (Japanese subtitles)
Scala Refactoring for Fun and Profit (Japanese subtitles)Tomer Gabel
 
Functional Programming For All - Scala Matsuri 2016
Functional Programming For All - Scala Matsuri 2016Functional Programming For All - Scala Matsuri 2016
Functional Programming For All - Scala Matsuri 2016Zachary Abbott
 
Contributing to Scala OSS from East Asia #ScalaMatsuri
 Contributing to Scala OSS from East Asia #ScalaMatsuri Contributing to Scala OSS from East Asia #ScalaMatsuri
Contributing to Scala OSS from East Asia #ScalaMatsuriKazuhiro Sera
 
バッチを Akka Streams で再実装したら100倍速くなった話 #ScalaMatsuri
バッチを Akka Streams で再実装したら100倍速くなった話 #ScalaMatsuriバッチを Akka Streams で再実装したら100倍速くなった話 #ScalaMatsuri
バッチを Akka Streams で再実装したら100倍速くなった話 #ScalaMatsuriKazuki Negoro
 
The state of sbt 0.13, sbt server, and sbt 1.0 (ScalaSphere ver)
The state of sbt 0.13, sbt server, and sbt 1.0 (ScalaSphere ver)The state of sbt 0.13, sbt server, and sbt 1.0 (ScalaSphere ver)
The state of sbt 0.13, sbt server, and sbt 1.0 (ScalaSphere ver)Eugene Yokota
 
The state of sbt 0.13, sbt server, and sbt 1.0 (ScalaMatsuri ver)
The state of sbt 0.13, sbt server, and sbt 1.0 (ScalaMatsuri ver)The state of sbt 0.13, sbt server, and sbt 1.0 (ScalaMatsuri ver)
The state of sbt 0.13, sbt server, and sbt 1.0 (ScalaMatsuri ver)Eugene Yokota
 
Getting Started with Deep Learning using Scala
Getting Started with Deep Learning using ScalaGetting Started with Deep Learning using Scala
Getting Started with Deep Learning using ScalaTaisuke Oe
 
Make your programs Free
Make your programs FreeMake your programs Free
Make your programs FreePawel Szulc
 
What is doobie? - database access for scala -
What is doobie? - database access for scala -What is doobie? - database access for scala -
What is doobie? - database access for scala -chibochibo
 
色んなScalaを調べてみた
色んなScalaを調べてみた色んなScalaを調べてみた
色んなScalaを調べてみたJiro Hiraiwa
 
Scala採用の背景とその後 @ hitomedia night #5
Scala採用の背景とその後 @ hitomedia night #5Scala採用の背景とその後 @ hitomedia night #5
Scala採用の背景とその後 @ hitomedia night #5Jiro Hiraiwa
 
OpenFlow OAM ツール - OKINAWA Open Days 2014 Day1
OpenFlow OAM ツール - OKINAWA Open Days 2014 Day1OpenFlow OAM ツール - OKINAWA Open Days 2014 Day1
OpenFlow OAM ツール - OKINAWA Open Days 2014 Day1Satoshi KOBAYASHI
 
ある工場の Redmine 2016
ある工場の Redmine 2016ある工場の Redmine 2016
ある工場の Redmine 2016Kohei Nakamura
 
Refactoring to Java 8 (Devoxx BE)
Refactoring to Java 8 (Devoxx BE)Refactoring to Java 8 (Devoxx BE)
Refactoring to Java 8 (Devoxx BE)Trisha Gee
 
Reducing Boilerplate and Combining Effects: A Monad Transformer Example
Reducing Boilerplate and Combining Effects: A Monad Transformer ExampleReducing Boilerplate and Combining Effects: A Monad Transformer Example
Reducing Boilerplate and Combining Effects: A Monad Transformer ExampleConnie Chen
 
Deadly Code! (seriously) Blocking &amp; Hyper Context Switching Pattern
Deadly Code! (seriously) Blocking &amp; Hyper Context Switching PatternDeadly Code! (seriously) Blocking &amp; Hyper Context Switching Pattern
Deadly Code! (seriously) Blocking &amp; Hyper Context Switching Patternchibochibo
 
20. Object-Oriented Programming Fundamental Principles
20. Object-Oriented Programming Fundamental Principles20. Object-Oriented Programming Fundamental Principles
20. Object-Oriented Programming Fundamental PrinciplesIntro C# Book
 

En vedette (20)

Scala Matsuri 2016: Japanese Text Mining with Scala and Spark
Scala Matsuri 2016: Japanese Text Mining with Scala and SparkScala Matsuri 2016: Japanese Text Mining with Scala and Spark
Scala Matsuri 2016: Japanese Text Mining with Scala and Spark
 
How Scala code is expressed in the JVM
How Scala code is expressed in the JVMHow Scala code is expressed in the JVM
How Scala code is expressed in the JVM
 
Scala Refactoring for Fun and Profit (Japanese subtitles)
Scala Refactoring for Fun and Profit (Japanese subtitles)Scala Refactoring for Fun and Profit (Japanese subtitles)
Scala Refactoring for Fun and Profit (Japanese subtitles)
 
Functional Programming For All - Scala Matsuri 2016
Functional Programming For All - Scala Matsuri 2016Functional Programming For All - Scala Matsuri 2016
Functional Programming For All - Scala Matsuri 2016
 
Contributing to Scala OSS from East Asia #ScalaMatsuri
 Contributing to Scala OSS from East Asia #ScalaMatsuri Contributing to Scala OSS from East Asia #ScalaMatsuri
Contributing to Scala OSS from East Asia #ScalaMatsuri
 
バッチを Akka Streams で再実装したら100倍速くなった話 #ScalaMatsuri
バッチを Akka Streams で再実装したら100倍速くなった話 #ScalaMatsuriバッチを Akka Streams で再実装したら100倍速くなった話 #ScalaMatsuri
バッチを Akka Streams で再実装したら100倍速くなった話 #ScalaMatsuri
 
Zen of Akka
Zen of AkkaZen of Akka
Zen of Akka
 
The state of sbt 0.13, sbt server, and sbt 1.0 (ScalaSphere ver)
The state of sbt 0.13, sbt server, and sbt 1.0 (ScalaSphere ver)The state of sbt 0.13, sbt server, and sbt 1.0 (ScalaSphere ver)
The state of sbt 0.13, sbt server, and sbt 1.0 (ScalaSphere ver)
 
The state of sbt 0.13, sbt server, and sbt 1.0 (ScalaMatsuri ver)
The state of sbt 0.13, sbt server, and sbt 1.0 (ScalaMatsuri ver)The state of sbt 0.13, sbt server, and sbt 1.0 (ScalaMatsuri ver)
The state of sbt 0.13, sbt server, and sbt 1.0 (ScalaMatsuri ver)
 
Getting Started with Deep Learning using Scala
Getting Started with Deep Learning using ScalaGetting Started with Deep Learning using Scala
Getting Started with Deep Learning using Scala
 
Make your programs Free
Make your programs FreeMake your programs Free
Make your programs Free
 
What is doobie? - database access for scala -
What is doobie? - database access for scala -What is doobie? - database access for scala -
What is doobie? - database access for scala -
 
色んなScalaを調べてみた
色んなScalaを調べてみた色んなScalaを調べてみた
色んなScalaを調べてみた
 
Scala採用の背景とその後 @ hitomedia night #5
Scala採用の背景とその後 @ hitomedia night #5Scala採用の背景とその後 @ hitomedia night #5
Scala採用の背景とその後 @ hitomedia night #5
 
OpenFlow OAM ツール - OKINAWA Open Days 2014 Day1
OpenFlow OAM ツール - OKINAWA Open Days 2014 Day1OpenFlow OAM ツール - OKINAWA Open Days 2014 Day1
OpenFlow OAM ツール - OKINAWA Open Days 2014 Day1
 
ある工場の Redmine 2016
ある工場の Redmine 2016ある工場の Redmine 2016
ある工場の Redmine 2016
 
Refactoring to Java 8 (Devoxx BE)
Refactoring to Java 8 (Devoxx BE)Refactoring to Java 8 (Devoxx BE)
Refactoring to Java 8 (Devoxx BE)
 
Reducing Boilerplate and Combining Effects: A Monad Transformer Example
Reducing Boilerplate and Combining Effects: A Monad Transformer ExampleReducing Boilerplate and Combining Effects: A Monad Transformer Example
Reducing Boilerplate and Combining Effects: A Monad Transformer Example
 
Deadly Code! (seriously) Blocking &amp; Hyper Context Switching Pattern
Deadly Code! (seriously) Blocking &amp; Hyper Context Switching PatternDeadly Code! (seriously) Blocking &amp; Hyper Context Switching Pattern
Deadly Code! (seriously) Blocking &amp; Hyper Context Switching Pattern
 
20. Object-Oriented Programming Fundamental Principles
20. Object-Oriented Programming Fundamental Principles20. Object-Oriented Programming Fundamental Principles
20. Object-Oriented Programming Fundamental Principles
 

Similaire à Thinking in Cats

Scalaプログラミング・マニアックス
Scalaプログラミング・マニアックスScalaプログラミング・マニアックス
Scalaプログラミング・マニアックスTomoharu ASAMI
 
関数型言語&形式的手法セミナー(3)
関数型言語&形式的手法セミナー(3)関数型言語&形式的手法セミナー(3)
関数型言語&形式的手法セミナー(3)啓 小笠原
 
オブジェクト指向開発におけるObject-Functional Programming
オブジェクト指向開発におけるObject-Functional Programmingオブジェクト指向開発におけるObject-Functional Programming
オブジェクト指向開発におけるObject-Functional ProgrammingTomoharu ASAMI
 
すごいHaskell読書会 第7章 (前編)
すごいHaskell読書会 第7章 (前編)すごいHaskell読書会 第7章 (前編)
すごいHaskell読書会 第7章 (前編)Suguru Hamazaki
 
Nds meetup8 lt
Nds meetup8 ltNds meetup8 lt
Nds meetup8 ltushiboy
 
ピクサー USD 入門 新たなコンテンツパイプラインを構築する
ピクサー USD 入門 新たなコンテンツパイプラインを構築するピクサー USD 入門 新たなコンテンツパイプラインを構築する
ピクサー USD 入門 新たなコンテンツパイプラインを構築するTakahito Tejima
 
Introduction to NumPy & SciPy
Introduction to NumPy & SciPyIntroduction to NumPy & SciPy
Introduction to NumPy & SciPyShiqiao Du
 
Cookpad Summer Intern 2015 - Programming Paradigm
Cookpad Summer Intern 2015 - Programming ParadigmCookpad Summer Intern 2015 - Programming Paradigm
Cookpad Summer Intern 2015 - Programming ParadigmMinero Aoki
 
関数モデル 【クラウドアプリケーションのためのオブジェクト指向分析設計講座 第8回】
関数モデル 【クラウドアプリケーションのためのオブジェクト指向分析設計講座 第8回】関数モデル 【クラウドアプリケーションのためのオブジェクト指向分析設計講座 第8回】
関数モデル 【クラウドアプリケーションのためのオブジェクト指向分析設計講座 第8回】Tomoharu ASAMI
 
Ekmett勉強会発表資料
Ekmett勉強会発表資料Ekmett勉強会発表資料
Ekmett勉強会発表資料時響 逢坂
 
Introduction to Categorical Programming
Introduction to Categorical ProgrammingIntroduction to Categorical Programming
Introduction to Categorical ProgrammingMasahiro Sakai
 
つくってあそぼ ラムダ計算インタプリタ
つくってあそぼ ラムダ計算インタプリタつくってあそぼ ラムダ計算インタプリタ
つくってあそぼ ラムダ計算インタプリタ京大 マイコンクラブ
 
第1回R勉強会@東京
第1回R勉強会@東京第1回R勉強会@東京
第1回R勉強会@東京Yohei Sato
 
中3女子が狂える本当に気持ちのいい constexpr
中3女子が狂える本当に気持ちのいい constexpr中3女子が狂える本当に気持ちのいい constexpr
中3女子が狂える本当に気持ちのいい constexprGenya Murakami
 
とあるFlashの自動生成
とあるFlashの自動生成とあるFlashの自動生成
とあるFlashの自動生成Akineko Shimizu
 
Node.jsでつくるNode.js ミニインタープリター&コンパイラー
Node.jsでつくるNode.js ミニインタープリター&コンパイラーNode.jsでつくるNode.js ミニインタープリター&コンパイラー
Node.jsでつくるNode.js ミニインタープリター&コンパイラーmganeko
 
LastaFluteでKotlinをはじめよう
LastaFluteでKotlinをはじめようLastaFluteでKotlinをはじめよう
LastaFluteでKotlinをはじめようShinsuke Sugaya
 
BOF1-Scala02.pdf
BOF1-Scala02.pdfBOF1-Scala02.pdf
BOF1-Scala02.pdfHiroshi Ono
 
BOF1-Scala02.pdf
BOF1-Scala02.pdfBOF1-Scala02.pdf
BOF1-Scala02.pdfHiroshi Ono
 

Similaire à Thinking in Cats (20)

Scalaプログラミング・マニアックス
Scalaプログラミング・マニアックスScalaプログラミング・マニアックス
Scalaプログラミング・マニアックス
 
関数型言語&形式的手法セミナー(3)
関数型言語&形式的手法セミナー(3)関数型言語&形式的手法セミナー(3)
関数型言語&形式的手法セミナー(3)
 
オブジェクト指向開発におけるObject-Functional Programming
オブジェクト指向開発におけるObject-Functional Programmingオブジェクト指向開発におけるObject-Functional Programming
オブジェクト指向開発におけるObject-Functional Programming
 
すごいHaskell読書会 第7章 (前編)
すごいHaskell読書会 第7章 (前編)すごいHaskell読書会 第7章 (前編)
すごいHaskell読書会 第7章 (前編)
 
Nds meetup8 lt
Nds meetup8 ltNds meetup8 lt
Nds meetup8 lt
 
ピクサー USD 入門 新たなコンテンツパイプラインを構築する
ピクサー USD 入門 新たなコンテンツパイプラインを構築するピクサー USD 入門 新たなコンテンツパイプラインを構築する
ピクサー USD 入門 新たなコンテンツパイプラインを構築する
 
 
  
 
 
Introduction to NumPy & SciPy
Introduction to NumPy & SciPyIntroduction to NumPy & SciPy
Introduction to NumPy & SciPy
 
Cookpad Summer Intern 2015 - Programming Paradigm
Cookpad Summer Intern 2015 - Programming ParadigmCookpad Summer Intern 2015 - Programming Paradigm
Cookpad Summer Intern 2015 - Programming Paradigm
 
関数モデル 【クラウドアプリケーションのためのオブジェクト指向分析設計講座 第8回】
関数モデル 【クラウドアプリケーションのためのオブジェクト指向分析設計講座 第8回】関数モデル 【クラウドアプリケーションのためのオブジェクト指向分析設計講座 第8回】
関数モデル 【クラウドアプリケーションのためのオブジェクト指向分析設計講座 第8回】
 
Ekmett勉強会発表資料
Ekmett勉強会発表資料Ekmett勉強会発表資料
Ekmett勉強会発表資料
 
Introduction to Categorical Programming
Introduction to Categorical ProgrammingIntroduction to Categorical Programming
Introduction to Categorical Programming
 
つくってあそぼ ラムダ計算インタプリタ
つくってあそぼ ラムダ計算インタプリタつくってあそぼ ラムダ計算インタプリタ
つくってあそぼ ラムダ計算インタプリタ
 
第1回R勉強会@東京
第1回R勉強会@東京第1回R勉強会@東京
第1回R勉強会@東京
 
中3女子が狂える本当に気持ちのいい constexpr
中3女子が狂える本当に気持ちのいい constexpr中3女子が狂える本当に気持ちのいい constexpr
中3女子が狂える本当に気持ちのいい constexpr
 
とあるFlashの自動生成
とあるFlashの自動生成とあるFlashの自動生成
とあるFlashの自動生成
 
Node.jsでつくるNode.js ミニインタープリター&コンパイラー
Node.jsでつくるNode.js ミニインタープリター&コンパイラーNode.jsでつくるNode.js ミニインタープリター&コンパイラー
Node.jsでつくるNode.js ミニインタープリター&コンパイラー
 
LastaFluteでKotlinをはじめよう
LastaFluteでKotlinをはじめようLastaFluteでKotlinをはじめよう
LastaFluteでKotlinをはじめよう
 
BOF1-Scala02.pdf
BOF1-Scala02.pdfBOF1-Scala02.pdf
BOF1-Scala02.pdf
 
BOF1-Scala02.pdf
BOF1-Scala02.pdfBOF1-Scala02.pdf
BOF1-Scala02.pdf
 

Plus de Eugene Yokota

Equality in Scala (ScalaMatsuri 2020)
Equality in Scala (ScalaMatsuri 2020)Equality in Scala (ScalaMatsuri 2020)
Equality in Scala (ScalaMatsuri 2020)Eugene Yokota
 
sbt: core concepts and updates (Scala Love 2020)
sbt: core concepts and updates (Scala Love 2020)sbt: core concepts and updates (Scala Love 2020)
sbt: core concepts and updates (Scala Love 2020)Eugene Yokota
 
Analysis of Zinc (nescala 2020)
Analysis of Zinc (nescala 2020)Analysis of Zinc (nescala 2020)
Analysis of Zinc (nescala 2020)Eugene Yokota
 
Analysis of Zinc (ScalaSphere 2019)
Analysis of Zinc (ScalaSphere 2019)Analysis of Zinc (ScalaSphere 2019)
Analysis of Zinc (ScalaSphere 2019)Eugene Yokota
 
sbt core concepts (ScalaMatsuri 2019)
sbt core concepts (ScalaMatsuri 2019)sbt core concepts (ScalaMatsuri 2019)
sbt core concepts (ScalaMatsuri 2019)Eugene Yokota
 
pull requests I sent to scala/scala (ny-scala 2019)
pull requests I sent to scala/scala (ny-scala 2019)pull requests I sent to scala/scala (ny-scala 2019)
pull requests I sent to scala/scala (ny-scala 2019)Eugene Yokota
 
sbt server (LSP discussion, 2018 Jan)
sbt server (LSP discussion, 2018 Jan)sbt server (LSP discussion, 2018 Jan)
sbt server (LSP discussion, 2018 Jan)Eugene Yokota
 
sbt, history of JSON libraries, microservices, and schema evolution (Tokyo ver)
sbt, history of JSON libraries, microservices, and schema evolution (Tokyo ver)sbt, history of JSON libraries, microservices, and schema evolution (Tokyo ver)
sbt, history of JSON libraries, microservices, and schema evolution (Tokyo ver)Eugene Yokota
 
Road to sbt 1.0: Paved with server (2015 Amsterdam)
Road to sbt 1.0: Paved with server (2015 Amsterdam)Road to sbt 1.0: Paved with server (2015 Amsterdam)
Road to sbt 1.0: Paved with server (2015 Amsterdam)Eugene Yokota
 
Road to sbt 1.0 paved with server
Road to sbt 1.0   paved with serverRoad to sbt 1.0   paved with server
Road to sbt 1.0 paved with serverEugene Yokota
 

Plus de Eugene Yokota (11)

Equality in Scala (ScalaMatsuri 2020)
Equality in Scala (ScalaMatsuri 2020)Equality in Scala (ScalaMatsuri 2020)
Equality in Scala (ScalaMatsuri 2020)
 
sbt: core concepts and updates (Scala Love 2020)
sbt: core concepts and updates (Scala Love 2020)sbt: core concepts and updates (Scala Love 2020)
sbt: core concepts and updates (Scala Love 2020)
 
Analysis of Zinc (nescala 2020)
Analysis of Zinc (nescala 2020)Analysis of Zinc (nescala 2020)
Analysis of Zinc (nescala 2020)
 
Analysis of Zinc (ScalaSphere 2019)
Analysis of Zinc (ScalaSphere 2019)Analysis of Zinc (ScalaSphere 2019)
Analysis of Zinc (ScalaSphere 2019)
 
sbt core concepts (ScalaMatsuri 2019)
sbt core concepts (ScalaMatsuri 2019)sbt core concepts (ScalaMatsuri 2019)
sbt core concepts (ScalaMatsuri 2019)
 
pull requests I sent to scala/scala (ny-scala 2019)
pull requests I sent to scala/scala (ny-scala 2019)pull requests I sent to scala/scala (ny-scala 2019)
pull requests I sent to scala/scala (ny-scala 2019)
 
sbt 1
sbt 1sbt 1
sbt 1
 
sbt server (LSP discussion, 2018 Jan)
sbt server (LSP discussion, 2018 Jan)sbt server (LSP discussion, 2018 Jan)
sbt server (LSP discussion, 2018 Jan)
 
sbt, history of JSON libraries, microservices, and schema evolution (Tokyo ver)
sbt, history of JSON libraries, microservices, and schema evolution (Tokyo ver)sbt, history of JSON libraries, microservices, and schema evolution (Tokyo ver)
sbt, history of JSON libraries, microservices, and schema evolution (Tokyo ver)
 
Road to sbt 1.0: Paved with server (2015 Amsterdam)
Road to sbt 1.0: Paved with server (2015 Amsterdam)Road to sbt 1.0: Paved with server (2015 Amsterdam)
Road to sbt 1.0: Paved with server (2015 Amsterdam)
 
Road to sbt 1.0 paved with server
Road to sbt 1.0   paved with serverRoad to sbt 1.0   paved with server
Road to sbt 1.0 paved with server
 

Thinking in Cats