Practical OCaml - Joshua B. Smith

Practical OCaml

(Autor)

Buch | Softcover
462 Seiten
2014 | Softcover reprint of the original 1st ed.
Apress (Verlag)
978-1-4302-1194-5 (ISBN)
80,24 inkl. MwSt
This book teaches Objective Caml by showing all the features of this functional programming language by example. You'll create a simple database, do reporting, create a spam filter, do complex log file scanning, create a ShoutCast server, and a web crawler.
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.

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.

Why Objective Caml (OCaml)?.- Interacting with OCaml: The Toplevel.- Syntax and Semantics.- Understanding Functions.- Practical: Creating a Simple Database.- Primitive and Composite Types.- Practical: Simple Database Reports, Exports, and Imports.- Collections.- Files and File I/O.- Exception Handling.- Practical: A URI Library.- Using Ocamldoc.- Modules and Functors.- Practical: A Spam Filter.- Practical: A Network-Aware Scoring Function.- Ocamllex and Ocamlyacc.- Practical: Complex Log File Parsing.- The Objective Part of Caml.- Digression: OCaml Is Not Pure.- Digression: Functional Programming.- Practical: Web Programming.- Practical: A Shoutcast Server.- Using Threads.- Practical: A Concurrent Web Crawler.- Interfacing with OCaml.- Practical: Time and Logging Libraries.- Processing Binary Files.- OCaml Development Tools.- Camlp4.- Conclusion.

Erscheint lt. Verlag 8.12.2014
Zusatzinfo XXV, 462 p.
Verlagsort Berlin
Sprache englisch
Maße 191 x 235 mm
Themenwelt Mathematik / Informatik Informatik Betriebssysteme / Server
Mathematik / Informatik Informatik Programmiersprachen / -werkzeuge
Mathematik / Informatik Informatik Software Entwicklung
ISBN-10 1-4302-1194-6 / 1430211946
ISBN-13 978-1-4302-1194-5 / 9781430211945
Zustand Neuware
Haben Sie eine Frage zum Produkt?
Mehr entdecken
aus dem Bereich