Apress Access

Practical OCaml

By Joshua B. Smith

  • eBook Price: $48.99
Buy eBook Buy Print Book

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

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

Related Titles

  • Go Recipes
  • MVVM in Delphi
  • Certified OpenStack Administrator Study Guide
  • Python Recipes Handbook
  • Beginning Elastic Stack
  • Beginning Hibernate, 4th Edition
  • Practical LPIC-1 Linux Certification Study Guide
  • Learn CakePHP, Second Edition
  • PHP Development Tool Essentials
  • Practical GameMaker: Studio
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.


If you think that you've found an error in this book, please let us know by emailing to editorial@apress.com . You will find any confirmed erratum below, so you can check if your concern has already been addressed.
No errata are currently published


    1. R Recipes


      View Book

    2. Beginning Haskell


      View Book

    3. Practical Clojure


      View Book