SlideShare uma empresa Scribd logo
1 de 41
Baixar para ler offline
Pedro Henrique	
(@phinfonet/@unixman_)
Pedro Henrique	
(@phinfonet/@unixman_)
Um pouco de Haskell…
Um pouco de Haskell…
• Puramente funcional
Um pouco de Haskell…
• Puramente funcional
• Estaticamente tipada
Um pouco de Haskell…
• Puramente funcional
• Estaticamente tipada
• Preguiçosa, Elegante e Concisa
Syntaxe
Syntaxe
Operações Aritméticas
Syntaxe
1 4 * 2 - 2
2 4 - 3 * 2
3 6 / 7 + 8
4 10 * 2 ** 2
Operações Aritméticas
Syntaxe
1 4 * 2 - 2
2 4 - 3 * 2
3 6 / 7 + 8
4 10 * 2 ** 2
Operações Aritméticas
Funções
Syntaxe
1 4 * 2 - 2
2 4 - 3 * 2
3 6 / 7 + 8
4 10 * 2 ** 2
1 hello203 :: String -> String
2 hello203 user = "Hello, "++user++" Welcome to 203px“
Operações Aritméticas
Funções
Syntaxe
1 4 * 2 - 2
2 4 - 3 * 2
3 6 / 7 + 8
4 10 * 2 ** 2
1 hello203 :: String -> String
2 hello203 user = "Hello, "++user++" Welcome to 203px“
Operações Aritméticas
Funções
Listas
Syntaxe
1 4 * 2 - 2
2 4 - 3 * 2
3 6 / 7 + 8
4 10 * 2 ** 2
1 hello203 :: String -> String
2 hello203 user = "Hello, "++user++" Welcome to 203px“
Operações Aritméticas
Funções
1 last [80,30,40,50,3] !
2 init [80,30,40,50,3] !
3 tail [80,30,40,50,3]
4 head [80,30,40,50,3] !
5 sum [80,30,40,50,3] !
6 product [80,30,40,50,3] !
7 maximum [80,30,40,50,3] !
8 minimum [80,30,40,50,3]
Listas
Quem usa Haskell?
Quem usa Haskell?
• Google
Quem usa Haskell?
• Google
• Facebook
Quem usa Haskell?
• Google
• Facebook
• Intel
Quem usa Haskell?
• Google
• Facebook
• Intel
• NVIDIA
Quem usa Haskell?
• Google
• Facebook
• Intel
• NVIDIA
• The New York Times
Quem usa Haskell?
• Google
• Facebook
• Intel
• NVIDIA
• The New York Times
• ABN AMRO
Quem usa Haskell?
• Google
• Facebook
• Intel
• NVIDIA
• The New York Times
• ABN AMRO
• AT&T
Quem usa Haskell?
• Google
• Facebook
• Intel
• NVIDIA
• The New York Times
• ABN AMRO
• AT&T
• Qualcomm
Quem usa Haskell?
• Google
• Facebook
• Intel
• NVIDIA
• The New York Times
• ABN AMRO
• AT&T
• Qualcomm
• Barclays Capital
Quantitative Analytics
Group
Mas pera aí…
Mas pera aí…
Mas pera aí…
Então a web ficou
de fora?
Yesod Framework
Yesod Framework
• Escalável e de Alta Performance
Yesod Framework
• Escalável e de Alta Performance
• Seguro
Yesod Framework
• Escalável e de Alta Performance
• Seguro
• Syntaxe Simples
Yesod Framework
• Escalável e de Alta Performance
• Seguro
• Syntaxe Simples
• Shakesperean Templates = {hamlet,cassius,julius}
“You know the power of the dark side.”
Ask’s time…

Mais conteúdo relacionado

Destaque

Come Leggere il Contatore Elettrico
Come Leggere il Contatore ElettricoCome Leggere il Contatore Elettrico
Come Leggere il Contatore Elettrico
Enegan
 
Marks vacation
Marks vacationMarks vacation
Marks vacation
Joe Marks
 

Destaque (8)

Come Leggere il Contatore Elettrico
Come Leggere il Contatore ElettricoCome Leggere il Contatore Elettrico
Come Leggere il Contatore Elettrico
 
[Sidang] TippyDB: Pengembangan Prototipe Geographically-Aware Distributed NoSQL
[Sidang] TippyDB: Pengembangan Prototipe Geographically-Aware Distributed NoSQL[Sidang] TippyDB: Pengembangan Prototipe Geographically-Aware Distributed NoSQL
[Sidang] TippyDB: Pengembangan Prototipe Geographically-Aware Distributed NoSQL
 
Il Risparmio energetico nelle PMI in Italia
Il Risparmio energetico nelle PMI in ItaliaIl Risparmio energetico nelle PMI in Italia
Il Risparmio energetico nelle PMI in Italia
 
Marks vacation
Marks vacationMarks vacation
Marks vacation
 
Bpr
BprBpr
Bpr
 
755
755755
755
 
Systematization and Reinforcement Guidelines Sudan Training WS
Systematization and Reinforcement Guidelines Sudan Training WSSystematization and Reinforcement Guidelines Sudan Training WS
Systematization and Reinforcement Guidelines Sudan Training WS
 
La filiera Gas
La filiera GasLa filiera Gas
La filiera Gas
 

A bit of Haskell