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.
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....
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With