Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DSLs (Domain Specific Languages) in Finance

Tags:

finance

dsl

Has anyone worked with DSLs (Domain Specific Languages) in the finance domain? I am planning to introduce some kind of DSL support in the application that I am working on and would like to share some ideas.

I am in a stage of identifying which are the most stable domain elements and selecting the features which would be better implemented with the DSL. I have not yet defined the syntax for this first feature.

like image 650
Gustavo Avatar asked Aug 22 '08 20:08

Gustavo


People also ask

What is domain-specific language examples?

Domain-specific languages have been talked about, and used for almost as long as computing has been done. DSLs are very common in computing: examples include CSS, regular expressions, make, ant, SQL, many bits of Rails, expectations in JMock, graphviz's dot language, strut's configuration file....

What is meant by domain-specific language?

A Domain Specific Language is a programming language with a higher level of abstraction optimized for a specific class of problems. A DSL uses the concepts and rules from the field or domain.

What specific features of dynamic languages make them useful as DSLs?

Other features that usually appear in dynamic languages are also useful when building DSLs: closures, macros, and duck typing. The major advantage of an internal DSL is that it takes on all the power of the language it's written for.

Why SQL is a domain-specific language?

A Domain Specific Language (DSL) is a specialized language used for a specific purpose. It's used to solve a specific problem. While Java can be leveraged to write any number of programs, a DSL focuses on one task or is built to work on one platform. They can be made for programmers or general users.


1 Answers

Financial contracts have been modeled elegantly as a DSL by Simon Peyton Jones and Jean-Marc-Erby. Their DSL, embedded in Haskell, is presented in the paper How to write a financial contract.

like image 117
namin Avatar answered Oct 19 '22 17:10

namin