- Paperback: 216 pages
- Publisher: Coherent Press (August 26, 2014)
- Language: English
- ISBN-10: 0957671113
- ISBN-13: 978-0957671119
- Product Dimensions: 7.5 x 0.5 x 9.2 inches
- Shipping Weight: 1.1 pounds (View shipping rates and policies)
- Average Customer Review: 3 customer reviews
- Amazon Best Sellers Rank: #955,643 in Books (See Top 100 in Books)
Enter your mobile number or email address below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.
To get the free app, enter your mobile phone number.
Other Sellers on Amazon
+ $3.75 shipping
+ $3.00 shipping
More OCaml: Algorithms, Methods, and Diversions Paperback – August 26, 2014
|New from||Used from|
Frequently bought together
Customers who bought this item also bought
About the Author
John Whitington founded a software company which uses OCaml extensively. He teaches functional programming to students of Computer Science at the University of Cambridge.
Try the Kindle edition and experience these great reading features:
Showing 1-3 of 3 reviews
There was a problem filtering reviews right now. Please try again later.
Building on the ground work of « OCaml from the very Beginning », the book introduces a few new language level concepts: laziness, records, labelled arguments and starts to introduce some elements of the module system. Regarding the latter there is no treatment of functors yet, which only raises the hopes that the book series is not over.
As its subtitle hints, the book is not only about OCaml but also about programming techniques. Using engaging examples – but without falling in the trap of only teaching how to deal with the latest technological fad – the book also unknowingly instructs you how to design data structures and programs using a non-dogmatic mix of imperative and functional programming techniques. Writing codecs, compressing data, searching data, implementing and comparing a set data structure using different approaches, analyzing the rules of a game through its game trees are a few examples of the tasks that are addressed. The book ends by showing how to generate and typeset PDFs from scratch, a topic the www can be surprisingly quiet about when one considers the widespread usage of the file format.
By the end of the book you should be able to understand how to write an OCaml program to generate PDF files, a non trivial problem whose solution exercises a pretty wide gamut of OCaml features and idioms.
After finishing this book you will probably find yourself asking a lot of questions about the language... that's because "MO" (as OFTVB before it) is an introductory book that does not go in depth about every detail of the language and its ecosystem. Depending on were you are in your journey of learning OCaml that could actually be a good thing.
The book starts with a handy summary of OCaml, enough to get started right away. The first half of the book walks the reader through a series of chapters introducing language features (lists, user-defined datatypes, records, labels, modules) by way of applied examples and exercises. The second half of the book covers an extended example of PDF generation, that gives a glimpse inside the PDF format. Throughout the book, useful part of the standard library are covered.
I found the exposition very pragmatic (with a mix of imperative and functional techniques) and effective. The programs used as example and exercises are fun and challenging. Extending and running programs that exercise new knowledge is very enlightening and empowering.
All exercises come with hints and answers, and all the code is available online, there is even a section, at the end, documenting common error messages.
I heartily recommend this book to anybody willing to start learning OCaml, it is the best on-ramp to more advanced material.