Skip to main content
  • Book
  • © 2007

Practical OCaml

Apress

Authors:

  • The only book on the market covering the OCaml programming language

  • Functional programming is becoming rapidly popular

  • A great introduction for those wanting to learn a functional programming language

  • Presented in a practical nature, giving the reader projects and code they can immediately use and see results from

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 79.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book USD 54.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (30 chapters)

  1. Front Matter

    Pages i-xxv
  2. Syntax and Semantics

    Pages 21-32
  3. Collections

    Pages 89-111
  4. Files and File I/O

    Pages 113-122
  5. Exception Handling

    Pages 123-134
  6. Practical: A URI Library

    Pages 135-144
  7. Using Ocamldoc

    Pages 145-154
  8. Modules and Functors

    Pages 155-168
  9. Practical: A Spam Filter

    Pages 169-178
  10. Ocamllex and Ocamlyacc

    Pages 193-211

About this book

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.

About the author

Joshua B. Smith is a consultant specializing in data problems and computing infrastructure. He got into computers while an undergraduate at Denison University in Ohio and spends most of his programming time using Python, OCaml, and Java. Josh lives in Chicago with his wife, Carol, and their two cats.

Bibliographic Information

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 79.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book USD 54.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access