publications: - title: "Generic Libraries in C++ with Concepts from High-Level Domain Descriptions in Haskell" author: - name: "Daniel Lincke" link: "http://www.pik-potsdam.de/members/lincke" - name: "Patrik Jansson" link: "http://www.chalmers.se/cse/EN/people/jansson-patrik" - name: "Marcin Zalewski" link: "http://www.google.com" - name: "Cezar Ionescu" link: "http://www.pik-potsdam.de/members/ionescu" year: "2009" doi: "http://dx.doi.org/10.1007/978-3-642-03034-5_12" abstract: "A class of closely related problems, a problem domain, can often be described by a domain-specific language, which consists of algorithms and combinators useful for solving that particular class of problems. Such a language can be of two kinds: it can form a new language or it can be embedded as a sublanguage in an existing one. We describe an embedded DSL in the form of a library which extends a general purpose language. Our domain is that of vulnerability assessment in the context of climate change, formally described at the Potsdam Institute for Climate Impact Research. The domain is described using Haskell, yielding a domain specific sublanguage of Haskell that can be used for prototyping of implementations. In this paper we present a generic C++ library that implements a domain-specific language for vulnerability assessment, based on the formal Haskell description. The library rests upon and implements only a few notions, most importantly, that of a monadic system, a crucial part in the vulnerability assessment formalisation. We describe the Haskell description of monadic systems and we show our mapping of the description to generic C++ components. Our library heavily relies on concepts, a C++ feature supporting generic programming: a conceptual framework forms the domain-specific type system of our library and parametrised types and functions, ``typed'' by the concepts in our conceptual framework, represent the combinators and algorithms of the domain. Furthermore, we discuss what makes our library a domain specific language and how our domain-specific library scheme can be used for other domains (concerning language design, software design, and implementation techniques). " links: doi: "http://dx.doi.org/10.1007/978-3-642-03034-5_12" tags: - "programming languages" - "object-oriented programming" - "rule-based" - "generic programming" - "software components" - "embedded software" - "design research" - "software component" - "language design" - "Haskell" - "type system" - "C++" - "DSL" - "programming" - "context-aware" - "design" - "feature-oriented programming" - "domain-specific language" researchr: "https://researchr.org/publication/LinckeJZI09" cites: 0 citedby: 0 pages: "236-261" booktitle: "Domain-Specific Languages, IFIP TC 2 Working Conference, DSL 2009, Oxford, UK, July 15-17, 2009, Proceedings" editor: - name: "Walid Mohamed Taha" link: "https://researchr.org/alias/walid-mohamed-taha" volume: "5658" series: "Lecture Notes in Computer Science" publisher: "Springer" isbn: "978-3-642-03033-8" kind: "inproceedings" key: "LinckeJZI09"