More OCaml (PragProg)

This book forgoes the abstract and instead provides concrete examples to help you better leverage the unique properties of Elixir, Erlang, and BEAM.

John Whitington

More OCaml picks up where OCaml from the Very Beginning left off. This intermediate-level book takes you deeper into functional programming with OCaml, exploring key language features and classic algorithms along the way. Each chapter includes exercises, hints, and worked answers to reinforce your understanding. You’ll wrap up by building a complete project that generates PDF files, a practical example that pulls everything together.

Whether you’re already working in OCaml and want to sharpen your skills, or you’re an experienced programmer exploring functional languages, you’ll find something new here, or even see an old idea in a new light.

A copy of OCaml from the Very Beginning is included without charge along with your purchase.

When I wrote OCaml from the Very Beginning, the goal was to create a book a bright newcomer to programming could follow without prerequisites. This book builds on the foundation laid in the first, but is written for readers with some experience, either from working through the earlier book or from programming in another functional language like Haskell or Standard ML.

In most real-world projects, you face two kinds of complexity: one kind comes from the problem itself, and the other kind comes from navigating a language’s ecosystem of third-party libraries. This book focuses entirely on the first. Using only the OCaml Standard Library, we’ll explore how to tackle complexity through abstraction.

The book is made up of sixteen short chapters that fall into three broad categories: Some introduce OCaml syntax and features through worked examples; others dig into practical topics like input and output; others take small detours into puzzles and diversions.

You’ll finish by building a complete project: a program that generates PDF files with drawings and text. Every chapter includes exercises with hints and full worked answers.

This work was written and produced entirely by the author. We are proud to be distributing it.


John Whitington founded a software company which uses OCaml to process PDF documents. For many years, he taught functional programming to students of Computer Science at the University of Cambridge, and continues educating through his books.



Don’t forget you can get 35% off with your Devtalk discount! Just use the coupon code “devtalk.com" at checkout :+1:

2 Likes

This looks interesting. I have been thinking of learning OCaml for quite sometime now.

2 Likes

Look how cute that camel calf is.

1 Like

The normal “devtalk com” coupon code doesn’t appear to work for this book…or am I just doing something wrong?

1 Like

If you put the dot in there, so devtalk.com, and it still doesn’t work, write to support@pragprog.com.

1 Like

Same here. Even with the dot it doesn’t work. I’ll write to support.

2 Likes

I just tried again and it’s not working for me either…

1 Like

Thanks for trying. Support tells me it is fixed if you want to try again.

1 Like

Works. Thanks!

1 Like

Is it easily to build backend services and web APIs with OCaml?

It has been a lot of years to see a new book from OCaml…

Is this an updated version since the 2017 changes or is it the same edition now distributed by prag? I have both OCaml From The Very Beginning and More OCaml but I had to focus on other things not long after starting More OCaml, so wondering if it is worth picking up any updates before I get back into it.

It’s the 2017 version. As far as I know, no language changes have happened to necessitate any further changes. PragProg distributes selected independent books published elsewhere.

3 Likes

Thanks for clarifying :slight_smile: