Details

Practical OCaml


Practical OCaml



von: Joshua B. Smith

56,99 €

Verlag: Apress
Format: PDF
Veröffentl.: 03.01.2008
ISBN/EAN: 9781430202448
Sprache: englisch
Anzahl Seiten: 488

Dieses eBook enthält ein Wasserzeichen.

Beschreibungen

<p>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.</p>
<p>Written for experienced programmers, <i>Practical OCaml</i> 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.</p>
<p>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.</p>
<p>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.</p>
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.
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.
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
<P>Objective Caml (OCaml) is an open source programming language that utilizes both functional and object oriented programming. OCaml can be found in a variety of scientific applications and is used as a teaching language in universities. Practical OCaml teaches Objective Caml in a straightforward manner. All the features of this functional programming language are taught by example. You will learn how to utilize the OCaml language to create a simple database, do reporting, and create a spam filter. You will also learn how to do complex log file scanning, create your own network servers by creating a shoutcast server, and create a web crawler. By this book's conclusion, besides knowing when and why OCaml should be used, you will be well on your way to creating your own applications with OCaml.</P>

Diese Produkte könnten Sie auch interessieren:

Tuning the Snowflake Data Cloud
Tuning the Snowflake Data Cloud
von: Andrew Carruthers
PDF ebook
56,99 €
MLOps with Ray
MLOps with Ray
von: Hien Luu, Max Pumperla, Zhe Zhang
PDF ebook
62,99 €