-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathindex.html
More file actions
165 lines (140 loc) · 4.68 KB
/
Copy pathindex.html
File metadata and controls
165 lines (140 loc) · 4.68 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>OCaml training</title>
<link rel="stylesheet" href="reveal.js/css/reveal.css">
<link rel="stylesheet" href="reveal.js/css/theme/simple.css">
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<h2>OCaml training</h2>
<p>John Else</p>
<p>john.else@citrix.com</p>
<p>
<a href="http://johnelse.github.io/ocaml-training">
johnelse.github.io/ocaml-training
</a>
</p>
</section>
<section>
<h2>OCaml Features</h2>
<ul>
<li>Static type system</li>
<li>Type inference</li>
<li>Pattern matching</li>
<li>Expressive type definitions</li>
<li>First-class functions</li>
</ul>
</section>
<section>
<h2>Tools - OPAM</h2>
<ul>
<li>Source-based package manager</li>
<li>git/http backends</li>
<li>Easy to create repos for testing and installing your own packages</li>
<li>Easy to try out new compilers</li>
</ul>
<p><a href="http://opam.ocaml.org/">opam.ocaml.org</a></p>
</section>
<section>
<h2>Tools - utop</h2>
<ul>
<li>User-friendly REPL</li>
<li>Tab-completion</li>
<li>readline support</li>
<li>Much more user-friendly than the standard OCaml toplevel!</li>
</ul>
<p>opam install utop</p>
<p><a href="https://github.com/diml/utop">github.com/diml/utop</a></p>
</section>
<section>
<h2>Tools - IOCaml</h2>
<ul>
<li>OCaml mode for IPython</li>
<li>REPL in a web browser, with embedded markdown</li>
<li>Used to display the code samples in this presentation</li>
</ul>
<p>opam install iocaml</p>
<p><a href="https://github.com/andrewray/iocaml">github.com/andrewray/iocaml</a></p>
</section>
<section>
<h2>Tools - Merlin</h2>
<ul>
<li>Code completion and type lookup engine</li>
<li>Plugins for vim, emacs</li>
</ul>
<p>opam install merlin</p>
<p><a href="https://github.com/the-lambda-church/merlin">github.com/the-lambda-church/merlin</a></p>
<p><a href="https://github.com/the-lambda-church/merlin/wiki/emacs-from-scratch">emacs installation instructions</a></p>
<p><a href="https://github.com/the-lambda-church/merlin/wiki/vim-from-scratch">vim installation instructions</a></p>
<p><a href="http://anil.recoil.org/2013/10/03/merlin-and-vim.html">Another vim guide</a></p>
</section>
<section>
<h2>Libraries - Unix</h2>
<p>Functions for handling:
<ul>
<li>Files</li>
<li>Pipes</li>
<li>Sockets (unix/network)</li>
<li>Processes</li>
<li>etc...</li>
</ul>
<p><a href="http://caml.inria.fr/pub/docs/manual-ocaml/libref/Unix.html">INRIA docs</a></p>
<p><a href="http://pleac.sourceforge.net/pleac_ocaml/sockets.html">Sockets examples</a></p>
</section>
<section>
<h2>Libraries - Sys</h2>
<ul>
<li>Access to command-line arguments</li>
<li>Signal handling</li>
<li>Filesystem operations</li>
</ul>
<p><a href="http://caml.inria.fr/pub/docs/manual-ocaml/libref/Sys.html">INRIA docs</a></p>
</section>
<section>
<h2>Libraries - stdext</h2>
<p>Citrix's extensions to the OCaml standard library</p>
<ul>
<li>Stringext, Listext, Unixext, etc...</li>
<li>We'd like to deprecate it eventually, but it's used all over our legacy code.</li>
</ul>
<p><a href="https://github.com/xapi-project/xen-api-libs/tree/master/stdext">Github link</a></p>
</section>
<section>
<h2>Libraries - rpclib</h2>
<ul>
<li>Create RPC marshalling functions from types</li>
<li>Create RPC client and server modules from interfaces</li>
</ul>
<p><a href="https://github.com/samoht/ocaml-rpc">github.com/samoht/ocaml-rpc</a></p>
</section>
<section>
<h2>Further reading</h2>
<ul>
<li><a href="http://caml.inria.fr/pub/docs/manual-ocaml-4.01/">INRIA manual</a></li>
<li><a href="https://realworldocaml.org/">Real World OCaml</a></li>
<li><a href="http://ocamlunix.forge.ocamlcore.org/">Unix system programming in OCaml</a></li>
</ul>
</section>
<section>
<h2>Help?!</h2>
<ul>
<li>irc.freenode.com - #ring3 (private), #ocaml</li>
<li><a href="https://sympa.inria.fr/sympa/info/caml-list">caml-list</a></li>
</ul>
</section>
</div>
</div>
<script src="reveal.js/lib/js/head.min.js"></script>
<script src="reveal.js/js/reveal.js"></script>
<script>
Reveal.initialize({transition: 'none'});
</script>
</body>
</html>