Skip to main content Accessibility help
×
    • You have access
    • Open access
Publisher:
Cambridge University Press
Online publication date:
September 2022
Print publication year:
2022
Online ISBN:
9781009129220
Creative Commons:
Creative Common License - CC Creative Common License - BY Creative Common License - NC Creative Common License - ND
This content is Open Access and distributed under the terms of the Creative Commons Attribution licence CC-BY-NC-ND 4.0 https://creativecommons.org/creativelicenses

Book description

This fast-moving tutorial introduces you to OCaml, an industrial-strength programming language designed for expressiveness, safety, and speed. Through the book's many examples, you'll quickly learn how OCaml stands out as a tool for writing fast, succinct, and readable systems code using functional programming. Real World OCaml takes you through the concepts of the language at a brisk pace, and then helps you explore the tools and techniques that make OCaml an effective and practical tool. You'll also delve deep into the details of the compiler toolchain and OCaml's simple and efficient runtime system. This second edition brings the book up to date with almost a decade of improvements in the OCaml language and ecosystem, with new chapters covering testing, GADTs, and platform tooling. This title is also available as open access on Cambridge Core, thanks to the support of Tarides. Their generous contribution will bring more people to OCaml.

Reviews

‘An invaluable guide to effective OCaml programming! With extended and updated coverage of key libraries and tools, it covers the language concepts and will teach you not only how to program in OCaml, but also how to develop efficient systems applications in this language.’

Xavier Leroy - Collège de France and INRIA

‘OCaml is widely known as an elegant language based on cutting-edge ideas. But this book focuses on use of OCaml as a powerful tool for the software industry. Using a series of hands-on examples, it shows the reader how to use advanced features from the OCaml ecosystem (types, modules, testing frameworks, libraries, package management, build tools, etc.) to solve practical problems. Real World OCaml is my go-to reference for learning how to develop real-world software systems in OCaml.’

Nate Foster - Cornell University

Refine List

Actions for selected content:

Select all | Deselect all
  • View selected items
  • Export citations
  • Download PDF (zip)
  • Save to Kindle
  • Save to Dropbox
  • Save to Google Drive

Save Search

You can save your searches here and later view and run them again in "My saved searches".

Please provide a title, maximum of 40 characters.
×

Contents

Full book PDF

Page 1 of 2


  • Frontmatter
    pp i-iv
  • Dedication
    pp v-vi
  • Contents
    pp vii-xvi
  • 1 - Prologue
    pp 1-6
  • Part I - Language Concepts
    pp 7-8
  • 2 - A Guided Tour
    pp 9-30
  • 3 - Variables and Functions
    pp 31-49
  • 4 - Lists and Patterns
    pp 50-65
  • 5 - Files, Modules, and Programs
    pp 66-84
  • 6 - Records
    pp 85-98
  • 7 - Variants
    pp 99-118
  • 8 - Error Handling
    pp 119-133
  • 9 - Imperative Programming
    pp 134-165
  • 10 - GADTs
    pp 166-190
  • 11 - Functors
    pp 191-208
  • 12 - First-Class Modules
    pp 209-222
  • 13 - Objects
    pp 223-236
  • 14 - Classes
    pp 237-260
  • Part II - Tools and Techniques
    pp 261-262
  • 15 - Maps and Hash Tables
    pp 263-279
  • 16 - Command-Line Parsing
    pp 280-296
  • 17 - Concurrent Programming with Async
    pp 297-324
  • 18 - Testing
    pp 325-344
  • 19 - Handling JSON Data
    pp 345-360
  • 20 - Parsing with OCamllex and Menhir
    pp 361-373
  • 21 - Data Serialization with S-Expressions
    pp 374-387
  • 22 - The OCaml Platform
    pp 388-402
  • Part III - The Complier and Runtime System
    pp 403-404
  • 23 - Foreign Function Interface
    pp 405-423
  • 24 - Memory Representation of Values
    pp 424-434

Page 1 of 2


Metrics

Altmetric attention score

Full text views

Total number of HTML views: 0
Total number of PDF views: 0 *
Loading metrics...

Book summary page views

Total views: 0 *
Loading metrics...

* Views captured on Cambridge Core between #date#. This data will be updated every 24 hours.

Usage data cannot currently be displayed.