OCaml from the Very Beginning now free in HTML and PDF formats

Thanks to a grant from the OCaml Software Foundation (ocaml-sf.org), I am able to release my 2013 book OCaml from the Very Beginning free-of-charge in the existing PDF format, and in a new HTML format:

https://johnwhitington.net/ocamlfromtheverybeginning/

The book continues to be available in paperback and Kindle formats from Amazon.

The book has been updated for OCaml 4.14 in all formats.

"More OCaml" updated to support OCaml 4.06 immutable strings

OCaml 4.06 has, by default, immutable strings. This necessitates some changes to "More OCaml" ("OCaml from the Very Beginning" is unaffected).

The paper and kindle books (on Amazon), as well as the PDF e-book here, have been updated, together with the online resources. The new code works on any version of OCaml starting from 4.02.0.

If you are an existing customer, and have not received an update email, please contact the author using the form on this website.

More OCaml: Algorithms, Methods & Diversions

More OCaml: Algorithms, Methods & Diversions is now available on Amazon at $39.99 or less, or as a DRM-free PDF eBook for $19.99 at ocaml-book.com, where you will also find sample chapters, and the exercises and examples to download.

Here's the blurb:

 

In More OCaml John Whitington takes a meandering tour of functional programming with OCaml, introducing various language features and describing some classic algorithms. The book ends with a large worked example dealing with the production of PDF files. There are questions for each chapter together with worked answers and hints.

More OCaml will appeal both to existing OCaml programmers who wish to brush up their skills, and to experienced programmers eager to explore functional languages such as OCaml. It is hoped that each reader will find something new, or see an old thing in a new light. For the more casual reader, or those who are used to a different functional language, a summary of basic OCaml is provided at the front of the book.

 

If you buy the book, please do consider leaving a review on Amazon, which you can do even if you buy just the PDF eBook.

 

Reprinting of "OCaml from the Very Beginning"

Owing to the print-on-demand process we're using, it's simple to update the book to fix the few errata which have been pointed out by kind readers since publication. The new text is now live on Amazon, the Kindle Store, and our website

To update the Kindle copy, go to "Manage My Kindle" on Amazon (there is no automatic update process). 

If you have purchased a PDF e-book, just email us for an updated PDF (it is possible to notify customers of an updated version by email, but since none of the errata are serious, we've opted not to do so). 

If you have a physical book, you can fix the errata yourself from the errata page on the website. In addition, if you have purchased the physical book, and would like a copy of the new PDF, please forward your amazon receipt to contact@coherentgraphics.co.uk 

And finally, if you have found mistakes in the book (or have any suggestions for the next edition), please do tell us, using the contact form on the website. 

 

OCaml tutorial videos now available

I've made a few little tutorial videos to go with the book. Just seven for now, covering the first four chapters, but more to come:

  1. Evaluating an expression
  2. True and false
  3. Making decisions
  4. Names and functions
  5. Patterns
  6. Lists
  7. Take and drop
  8. Appending two lists

They're not really a substitute for the book but, when learning, it's always helpful to go over things twice, particularly using a different medium.

The videos are available here

 

Now available on Amazon

OCaml from the Very Beginning (204pp, paperback) is now available on Amazon for $39.99 / €29.99 / £24.99, as well as an e-book from ocaml-book.com for $19.99. Here are preview chapters and a .zip of the examples and exercises

Here's the blurb: 

In OCaml from the Very Beginning John Whitington takes a no-prerequisites approach to teaching a modern general-purpose programming language. Each small, self-contained chapter introduces a new topic, building until the reader can write quite substantial programs. There are plenty of questions and, crucially, worked answers and hints.

OCaml from the Very Beginning will appeal both to new programmers, and experienced programmers eager to explore functional languages such as OCaml. It is suitable both for formal use within an undergraduate or graduate curriculum, and for the interested amateur.

Please do review the book on Amazon if you have the chance.