Skip to content
Register Sign in Wishlist

Real World OCaml: Functional Programming for the Masses

2nd Edition

£34.99

  • Date Published: October 2022
  • availability: Available
  • format: Paperback
  • isbn: 9781009125802

£ 34.99
Paperback

Add to cart Add to wishlist

Other available formats:
eBook


Looking for an inspection copy?

This title is not currently available on inspection

Description
Product filter button
Description
Contents
Resources
Courses
About the Authors
  • 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.

    • Learn the foundations of the OCaml language, such as higher-order functions, algebraic data types, and modules
    • Explore advanced features such as functors, first-class modules, GADTs, and objects
    • Leverage Base, a comprehensive general-purpose standard library for OCaml
    • Design effective and reusable libraries, making the most of OCaml's approach to abstraction and modularity
    • Tackle practical programming problems from command-line parsing to asynchronous network programming
    • Examine profiling and interactive debugging techniques
    • This book is also available as open access
    Read more

    Reviews & endorsements

    '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

    See more reviews

    Customer reviews

    Not yet reviewed

    Be the first to review

    Review was not posted due to profanity

    ×

    , create a review

    (If you're not , sign out)

    Please enter the right captcha value
    Please enter a star rating.
    Your review must be a minimum of 12 words.

    How do you rate this item?

    ×

    Product details

    • Edition: 2nd Edition
    • Date Published: October 2022
    • format: Paperback
    • isbn: 9781009125802
    • length: 512 pages
    • dimensions: 243 x 169 x 25 mm
    • weight: 0.95kg
    • availability: Available
  • Table of Contents

    1. Prologue
    Part I. Language Concepts:
    2. A guided tour
    3. Variables and functions
    4. Lists and patterns
    5. Files, modules, and programs
    6. Records
    7. Variants
    8. Error handling
    9. Imperative programming
    10. GADTs
    11. Functors
    12. First-class Modules
    13. Objects
    14. Classes
    Part II. Tools and Techniques:
    15. Maps and hash tables
    16. Command-line parsing
    17. Concurrent programming with Async
    18. Testing
    19. Handling JSON data
    20. Parsing with Ocamllex and Menhir
    21. Data serialization with S-expressions
    22. The OCaml platform
    Part III. The Compiler and Runtime System:
    23. Foreign function interface
    24. Memory representation of values
    25. Understanding the garbage collector
    26. The compiler frontend: parsing and type checking
    27. The compiler backend: bytecode and native code
    References
    Index.

  • Resources for

    Real World OCaml: Functional Programming for the Masses

    Anil Madhavapeddy, Yaron Minsky

    General Resources

    Find resources associated with this title

    Type Name Unlocked * Format Size

    Showing of

    Back to top

    This title is supported by one or more locked resources. Access to locked resources is granted exclusively by Cambridge University Press to lecturers whose faculty status has been verified. To gain access to locked resources, lecturers should sign in to or register for a Cambridge user account.

    Please use locked resources responsibly and exercise your professional discretion when choosing how you share these materials with your students. Other lecturers may wish to use locked resources for assessment purposes and their usefulness is undermined when the source files (for example, solution manuals or test banks) are shared online or via social networks.

    Supplementary resources are subject to copyright. Lecturers are permitted to view, print or download these resources for use in their teaching, but may not change them or use them for commercial gain.

    If you are having problems accessing these resources please contact [email protected].

  • Authors

    Anil Madhavapeddy, University of Cambridge
    Anil Madhavapeddy is Associate Professor in the Department of Computer Science and Technology at the University of Cambridge. He has used OCaml professionally for over two decades in numerous ventures, such as XenSource/Citrix and Unikernel Systems/Docker, and co-founded the MirageOS unikernel project. He is a member of the OCaml development team.

    Yaron Minsky, Jane Street Group
    Yaron Minsky is Co-head of Technology at Jane Street, a major quantitative trading firm, where he introduced OCaml, and helped it become the firm's primary development platform. He is also the host of Jane Street's tech podcast, Signals & Threads, and has worked on everything from developer tools to trading strategies.

Related Books

Sorry, this resource is locked

Please register or sign in to request access. If you are having problems accessing these resources please email [email protected]

Register Sign in
Please note that this file is password protected. You will be asked to input your password on the next screen.

» Proceed

You are now leaving the Cambridge University Press website. Your eBook purchase and download will be completed by our partner www.ebooks.com. Please see the permission section of the www.ebooks.com catalogue page for details of the print & copy limits on our eBooks.

Continue ×

Continue ×

Continue ×
warning icon

Turn stock notifications on?

You must be signed in to your Cambridge account to turn product stock notifications on or off.

Sign in Create a Cambridge account arrow icon
×

Find content that relates to you

Join us online

This site uses cookies to improve your experience. Read more Close

Are you sure you want to delete your account?

This cannot be undone.

Cancel

Thank you for your feedback which will help us improve our service.

If you requested a response, we will make sure to get back to you shortly.

×
Please fill in the required fields in your feedback submission.
×