Features
- Cover Type: Hard Cover with 488 pages
- Published by: Apress October 18, 2006
- Written in: English
- ISBN 10 Number: 159059620X
- ISBN 13 Number: 978-1590596203
-
Book Dimensions:
9.3 x 7.2 x 1.3 inches
- Weighs: 2.1 pounds
Product 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.
Key topics include
- Primitive and composite types
- Collections
- File and I/O
- Modules and functors
- Ocamllex and Ocamlyacc
- OCamldoc
- Threading
- The Camlp4 preprocessor and pretty printer
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 Smith is a consultant specializing in data problems and computing infrastructure. He got into computers while an undergraduate at Denison University and spends most of his programming time using Python, OCaml, and Java. Josh lives in Chicago with his wife, Carol, and their two cats.
Reader ReviewsThis is one of the worst books I've read. What a waste of money... The basic syntax issues are glossed over. Type polymorphism example is introduced with an error. I can go on and on -with statement, type statement etc . Author does nothing to guide the reader through a maze of jumbled syntax. Terrible waste of a really good idea.