Learn Programming with OCaml

This may be interesting for some as Tezos is written in Ocaml:

Recently, the OCaml Software Foundation funded its translation to English. The book is available here:

Learn Programming with OCaml

Many thanks to Urmila for a translation of high quality.

The book is available as a PDF file, under the CC-BY-SA license. The source code for the various programs contained in the book are available for download, under the same license.

The book is structured in two parts. The first part is a tutorial-like introduction to OCaml through 14 small programs, covering many aspects of the language. The second part focuses on fundamental algorithmic concepts, with data structures and algorithms implemented in OCaml. This is also a nice way to learn a language!

3 Likes

fun fact: There are more lines of Ocaml comments in Tezos than there are lines of Ocaml code in the Ocaml compiler.

In case someone needs an excuse/motivation to write more about Tezos.

4 Likes

Didn’t know about this before :joy: —pretty good hahaha

1 Like