Practical Scala DSLs

Real-World Applications Using Domain Specific Languages

  • Pierluigi Riti

Table of contents

  1. Front Matter
    Pages i-xv
  2. Pierluigi Riti
    Pages 1-28
  3. Pierluigi Riti
    Pages 29-43
  4. Pierluigi Riti
    Pages 45-57
  5. Pierluigi Riti
    Pages 59-69
  6. Pierluigi Riti
    Pages 71-96
  7. Pierluigi Riti
    Pages 97-112
  8. Pierluigi Riti
    Pages 113-137
  9. Pierluigi Riti
    Pages 139-158
  10. Pierluigi Riti
    Pages 159-179
  11. Pierluigi Riti
    Pages 181-207
  12. Pierluigi Riti
    Pages 209-220
  13. Back Matter
    Pages 221-226

About this book


Build domain specific languages (DSLs) using Java's most popular functional programming language: Scala. This book introduces the basics of Scala and DSLs using a series of practical examples. In each chapter of Practical Scala DSLs, you’ll learn to create pragmatic and complete code examples that explain the actual use of DSLs with Scala: a web API and microservices; a custom language; a mobile app; a Forex system; a game; and cloud applications.  

At the end of this unique book, you’ll be able to describe the differences between external and internal DSLs; understand when and how to apply DSLs; create DSLs using Scala; and even create a DSL using another programming language.

You will:
  • Build DSLs in Scala
  • Write a web API and microservices
  • Create a custom language
  • Apply DSLs to mobile apps development, a Forex trading system, game development, and more
  • Discover the role of DSLs in cloud development 
  • Integrate DSLs as part of a DevOps program or structure
  • Build internal and external DSLs


Scala DSLs domain-specific language functional programming functional Java java programming language code software

Authors and affiliations

  • Pierluigi Riti
    • 1
  1. 1.MullingarIreland

Bibliographic information

Industry Sectors
Finance, Business & Banking
IT & Software
Energy, Utilities & Environment