OCaml tutorial
Jon <[email protected]> Fri, 14 Nov 2003 17:57:12 -0800
| Newsgroups | gmane.org.ballistichelmet.devel |
|---|---|
| Message-ID | <[email protected]> |
So I finally decided to try out OCaml. Found this today searching
around. I likes.
http://www.merjis.com/richj/computers/ocaml/tutorial/
Learning OCaml, for C, C++, Perl and Java programmers
by Richard W.M. Jones (rich at annexia.org)
About this tutorial
This is a practical, detailed tutorial for people who already know an
imperative or OO-language and wish to learn OCaml.
OCaml is a fast, concise and powerful language for application
development - but I assume you already knew that, and I also assume
you've managed to install it. If not, you can find out more at the main
OCaml webpages here.
The first few sections are going to be very low-level mundane syntactic
stuff that you just need to know. After that we'll look at some real
programming examples and try converting them into OCaml.
Other tutorials
For a long time, OCaml didn't have good tutorials, or had tutorials
which only covered the very very basics. However, recently I have found
a worthwhile tutorial. The tutorial below is complementary to this one
(meaning you should read both together):
* http://www.csc.vill.edu/~dmatusze/resources/ocaml/ocaml.html
Contents
Chapter 1
In which the author talks about the basics, things which you really
must know.
Chapter 2
In which the author looks at the structure of OCaml programs.
Chapter 3
In which we talk about data structures and pattern matching.
Chapter 4
In which the author mentions some odds and ends.
Chapter 5
In which the author engages in a somewhat philosophical discussion
about the nature of functional programming.
Chapter 6
In which the author talks about if statements, loops and recursion,
and some other imperative features in OCaml.
Chapter 7 (mostly finished)
In which the author talks about more odds and ends including
exceptions.
Chapter 8
In which the author discusses object-oriented programming.
Chapter 9
In which the author mulls over garbage collection.
Chapter 10 (unfinished)
In which the author finds some interesting OCaml modules.
Chapter 11
In which the author talks about optimization and speed.
Chapter 12 and Chapter 13
(unfinished)
In which we get to write Gtk applications and talk about interfacing
with C libraries.
Acknowledgements
Here are some of the people who have helped me with this tutorial.
Apologies to anyone whom I might have missed by accident.
* Doug Bagley
* Nicolas Cannasse
* Eric C. Cooper
* Richard Donkin
* Jim Farrand
* Fabrice Le Fessant
* Jacques Garrigue
* Stephen Gilmore
* Flavio Grossi
* Brian Hurt
* Neel Krishnaswami
* Michel Levy
* Sven Luther
* John Gerard Malecki
* Luc Maranget
* Jean-Francois Monin
* Markis Mottl
* Thomas Mraz
* Wolfgang Mueller
* Lars Nilsson
* Jose Manuel Nunes
* Frederic van der Plancke
* Paul Steckler
* Fabian Sturm
* Ryan Tarpine
* Remi Vanicat
* Yamagata Yoriyuki
* Stefano Zacchiroli
* All members of caml-list and ocaml-beginners.