This repository has been archived by the owner on Mar 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsoenke.html
166 lines (116 loc) · 3.61 KB
/
soenke.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!DOCTYPE html>
<html>
<head>
<title>Title</title>
<meta charset="utf-8">
<style>
@import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz);
@import url(https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic);
@import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono:400,700,400italic);
body { font-family: 'Droid Serif'; }
h1, h2, h3 {
font-family: 'Yanone Kaffeesatz';
font-weight: normal;
}
.remark-code, .remark-inline-code { font-family: 'Ubuntu Mono'; }
img { height: 80%; width: 100%; }
.left-column60 {
width: 60%;
float: left;
}
.right-column40 {
width: 40%;
float: right;
}
</style>
</head>
<body>
<textarea id="source">
class: center, middle
# Highlights at ICFP 2015
### aka: Things I still remember...
### Sönke Hahn
## Presented on Haskell.SG
### Sep 22nd 2015
---
# Youtube Playlists
- ICFP: https://www.youtube.com/playlist?list=PLnqUlCo055hWNtUo1Haoq347VhCqIjs7u
- CUFP: https://www.youtube.com/playlist?list=PLnqUlCo055hXArE00SkORNiK9fk54de2a
- FARM: https://www.youtube.com/playlist?list=PLnqUlCo055hWmIvlbzE2zTghLlaeyHnfE
---
# Session Types for Rust
https://github.com/Munksgaard/session-types
https://www.youtube.com/watch?v=0wDSjpx1Wz0
``` rust
type Id = String;
type Atm = Recv<Id, Choose<Rec<AtmInner>, Eps>>;
type AtmInner = Offer<AtmDeposit,
Offer<AtmWithdraw,
Offer<AtmBalance,
Eps>>>;
type AtmDeposit = Recv<u64, Send<u64, Var<Z>>>;
type AtmWithdraw = Recv<u64, Choose<Var<Z>, Var<Z>>>;
type AtmBalance = Send<u64, Var<Z>>;
type Client = <Atm as HasDual>::Dual;
```
---
# A Typechecker Plugin for Units of Measure
http://hackage.haskell.org/package/uom-plugin
https://www.youtube.com/watch?v=0wDSjpx1Wz0
``` haskell
{-# OPTIONS_GHC -fplugin Data.UnitsOfMeasure.Plugin #-}
```
--
``` haskell
>>> :type [u| 5 m |]
[u| 5 m |] :: Quantity Int (Base "m")
>>> :type [u| 5 m / s |]
[u| 5 m / s |] :: Quantity Int (Base "m" /: Base "s")
>>> 2 *: [u| 5 m |]
[u| 10 m |]
>>> [u| 2 m / s |] +: [u| 5 m / s |]
[u| 7 m / s |]
>>> [u| 3 m |] -: [u| 1 s |]
-- Couldn't match type ‘Base "s"’ with ‘Base "m"’...
```
--
Allows for unit polymorphism:
``` haskell
>>> let f x y = (x *: y) +: (y *: x)
>>> :t f
f :: Num a => Quantity a v -> Quantity a u -> Quantity a (u *: v)
```
---
# An Introduction to Type-Level and Generic Programming in Haskell
http://hackage.haskell.org/package/generics-sop
---
# Web Programming with Servant
https://haskell-servant.github.io/
https://www.youtube.com/watch?v=vXRIXkbjLbU
---
# Diagrams -- A Functional EDSL for Vector Graphics
http://projects.haskell.org/diagrams
http://projects.haskell.org/diagrams/gallery.html
https://www.youtube.com/watch?v=oAz8AEf7WDA&index=4&list=PLnqUlCo055hWmIvlbzE2zTghLlaeyHnfE
---
# Coping with change: data schema migration in Haskell
http://hackage.haskell.org/package/api-tools
http://hackage.haskell.org/package/api-tools-0.5.2/docs/Data-API-Tutorial.html
https://www.youtube.com/watch?v=0XwCnRvQf0Q&list=PLnqUlCo055hXArE00SkORNiK9fk54de2a
---
# Fighting spam with Haskell at Facebook
http://hackage.haskell.org/package/haxl
https://www.youtube.com/watch?v=IOEGfnjh92o
- https://ghc.haskell.org/trac/ghc/wiki/ApplicativeDo
- Unloading code at runtime
---
# Thanks for your attention!
</textarea>
<script src="https://gnab.github.io/remark/downloads/remark-latest.min.js">
<!---script src="remark/src/remark.js"--->
</script>
<script>
var slideshow = remark.create();
</script>
</body>
</html>