From: Zachary Vance Date: Thu, 13 Feb 2025 16:06:53 +0000 (-0500) Subject: OCaml book X-Git-Url: https://git.za3k.com/?a=commitdiff_plain;h=49468c980303b327a6aa252c3bda3ae540e81d5e;p=blog.git OCaml book --- diff --git a/images/ocaml-front.jpg b/images/ocaml-front.jpg new file mode 100644 index 0000000..2eaf22d Binary files /dev/null and b/images/ocaml-front.jpg differ diff --git a/images/ocaml-open.jpg b/images/ocaml-open.jpg new file mode 100644 index 0000000..d495616 Binary files /dev/null and b/images/ocaml-open.jpg differ diff --git a/images/ocaml-side.jpg b/images/ocaml-side.jpg new file mode 100644 index 0000000..7cac972 Binary files /dev/null and b/images/ocaml-side.jpg differ diff --git a/images/text-editor.png b/images/text-editor.png new file mode 100644 index 0000000..268a0f5 Binary files /dev/null and b/images/text-editor.png differ diff --git a/posts/ocaml-book.md b/posts/ocaml-book.md new file mode 100644 index 0000000..a7c7062 --- /dev/null +++ b/posts/ocaml-book.md @@ -0,0 +1,25 @@ +--- +author: admin +categories: +- Technical +date: 2025-02-13 +tags: +- ocaml +- books +title: 'OCaml Manual' +--- +Recently I've been teaching myself new programming languages with books. I got one for D, Elixir, Erlang, and Go. + +OCaml was also on my list of languages to learn, but there is no good OCaml book available. I started reading an online course textbook (for Cornell's [CS 3110](https://cs3110.github.io/textbook/cover.html)), only to find it painfully slow, beginner-level, and aimed at course tools besides. Eventually, I found the official OCaml manual to be the best source of information. + +Unforunately, there is no published version of the manual. It is [available online](https://ocaml.org/manual/5.3/index.html) as HTML, PDF, or even a text file, but that's all. So, I went to [Lulu](https://www.lulu.com/) and published my own copy of their PDF. + +![alt: front cover of volume 1](ocaml-front.jpg) +![alt: spine view of both volumes](ocaml-side.jpg) +![alt: interior view of the table of contents in one book, and a random page in the other](ocaml-open.jpg) + +The PDF is so long I split it into two volumes. I'm pleased by how the manual turned out, though I haven't actually used it much for reference -- I've already spent two weeks programming OCaml before it arrived (Lulu is not fast). + +![caption: I've been working on a text editor](text-editor.png) + +I've been working on a terminal text editor in OCaml for two weeks. I'll post about that in more detail if and when I finish it.