Haskell View

14
Haskell-楼上风景 byAlbert Lee 金山词霸数据挖掘([email protected] ) 2009年6月14日星期日

description

北京Python技术交流会,我的Haskll Topic

Transcript of Haskell View

Page 1: Haskell View

Haskell-楼上风景by:Albert Lee

金山词霸数据挖掘([email protected])

2009年6月14日星期日

Page 2: Haskell View

Agenda

又一种“新语言?”

What is Haskell?

Real World Haskell

Live Show

Go on

Books

2009年6月14日星期日

Page 3: Haskell View

Another New Lang?

我不是来踢场的……

楼上有风景 —— 圣严法师

每年学习一门新的编程语言 —— Martin Fowler

练武不练功,到头一场空 —— 拳谚

如何不用单元测试写出不出错的代码?!

2009年6月14日星期日

Page 4: Haskell View

Shit HappensAbout Test: Not about speed

Database

Network

File

IO!! Thee name is evil!

Pure Functional (Pure vs Impure) No Side Effect

Take a look: Monad

2009年6月14日星期日

Page 5: Haskell View

What is Haskell

History

Key words

2009年6月14日星期日

Page 6: Haskell View

What is HaskellHistory

lambda calculus (Alonzo Church)

(1958 (Lisp (John McCarthy)))

1970s ML (Robin Milner) Clean, Miranda

1980s Haskell Committee

1998 Haskell 98

2009年6月14日星期日

Page 7: Haskell View

What is Haskell?Key Words

! Pure functions ! Non-strict evaluation ! Immutable data ! Static, strong typing

2009年6月14日星期日

Page 8: Haskell View

Real World Haskell

Jolt Winner:

* Real World Haskell by Bryan O'Sullivan, John Goerzen and Don Stewart (O'Reilly Media)

Good News:中文版

Bad News:翻译……

2009年6月14日星期日

Page 9: Haskell View

Awesome !

XMonad

Pugs (陈凤女士)

Parsec

STM

2009年6月14日星期日

Page 10: Haskell View

Live Show

GHC

Hierarchical Libraries

Hoogle & Hayoo

Play some code

2009年6月14日星期日

Page 11: Haskell View

GHCi/GHC

functions

map/fold/filter

curry

types (拼图,unit test)

list (take,drop, zip, [1..] [x * y | x <- ....])

2009年6月14日星期日

Page 12: Haskell View

GHC

IO

Module

quicksort

2009年6月14日星期日

Page 13: Haskell View

Go on……Type

Typeclass

Monad

Monad Transformer

Parsec

Concurrent & Multicore Programming

STM

2009年6月14日星期日

Page 14: Haskell View

Go on, booksReal World Haskell (中文版,Lee合译)

Haskell 函数程序设计技艺(Simon Thompson) 乔海燕译

Haskell 趣学指南 (ssword译)

All About Monad (Lee 翻译部分)

Haskell Tutorials

Yet Another Haskell Tutorial

Write Yourself a Scheme in 48 Hours in Haskell

2009年6月14日星期日