Practical OCaml

By Joshua B. Smith

Practical OCaml Cover Image

Practical OCaml is the first book to cover OCaml, a fast and efficient language with speed similar to that of C/C++. This book teaches OCaml in a straightforward and practical manner, and by the end, you'll be prepared to create your own applications with OCaml.

Full Description

  • ISBN13: 978-1-59059-620-3
  • 488 Pages
  • User Level: Beginner to Advanced
  • Publication Date: October 19, 2006
  • Available eBook Formats: PDF
  • Print Book Price: $69.99
  • eBook Price: $48.99
Buy eBook Buy Print Book Add to Wishlist

Related Titles

Full Description

Objective Caml (OCaml) is an open source programming language that allows you to utilize both functional and object-oriented programming. Sporting features such as a robust object system, type safety, and an expansive standard library, OCaml is a language that encourages pragmatic solutions instead of dogmatic ones. Boasting performance on par with the likes of C/C++, and having compilers available for a variety of platforms, including Windows, Unix, Linux, and Mac OS X, enterprise developers should consider adding this powerful language to their repertoire.

Written for experienced programmers, Practical OCaml teaches OCaml in a code-intensive fashion. Readers are encouraged to follow along with most examples using the OCaml top-level (the interactive interpreter), giving them the opportunity to consider the purpose and syntax of each line. The author's considerable knowledge of the Java, Python, and C++ languages allows him to present the material at a level and perspective that readers hailing from varied programming backgrounds will appreciate.

Language aficionados will be sure to enjoy the occasional digression into tangential topics such as OCaml's impurities from the functional programming perspective, with thoughts about how to overcome them using mutability, references, and classes.

In later chapters, you’ll put what you've learned to work, building applications capable of performing complex log-file processing, crawling the Web, filtering spam, and even broadcasting audio over a network using the Shoutcast protocol.

What you’ll learn

  • Primitive and composite types
  • Collections
  • File and I/O
  • Modules and functors
  • Ocamllex and Ocamlyacc
  • OCamldoc
  • Threading
  • The Camlp4 preprocessor and pretty printer

Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.

Errata

Please Login to submit errata.

No errata are currently published