(Quoted from LexiFi)
LexiFi found that a functional programming language was the most effective tool for developing compositional contract and scenario algebras.
LexiFi users derive important benefits from a functional programming approach, including:
- Lists. Functional programming languages offer powerful support for useful pre-defined types such as lists. Lists play a central role in finance where they are used extensively to define schedules. For example, a swap schedule or a Bermuda option exercise schedule may be defined recursively using a list.
- Specification. The declarative formalism of functional programming languages is well suited for specifying complex data structures and algorithms, and the interactions between complex data structures and algorithms. In contrast, imperative programming languages tend to reflect the actual behavior of computers: complex types may be extremely difficult to design and maintain. Object-oriented languages are better candidates than imperative languages for implementing a contract algebra. However, they suffer from certain limitations, especially with respect to pattern matching (see " What are the limitations of data-oriented and object-oriented approaches for modeling financial instruments?").
- Functions. Functions are "first-class citizens" in functional programming languages: they can be used as arguments of other functions. For example, a "sliding contract" used in a LexiFi simulation is a function that takes a date and a scenario argument and returns a contract. A list of sliding contracts—i.e., a list of functions—is passed to LexiFi's simulator function to run a simulation...
More generally, quoting Don Syme of Microsoft Research:
"Mixed functional/imperative programming is a fantastic paradigm for many programming tasks. Languages such as OCaml and Standard ML provide excellent general purpose programming languages suited to medium-advanced programmers who want simple yet highly expressive tools that boost their productivity, primarily by reducing the error rate, increasing their productivity through type inference, and basically letting them focus on the difficult parts of their applications. ...
Purely functional languages like Haskell are excellent within certain niches, but while laziness and Haskell's very strict control of effects do offer substantial benefits they also pose real problems for interoperability between lazy and strict languages. Purely imperative programming languages like C or Pascal do not provide satisfying mechanisms for abstraction or data manipulation. Purely object oriented languages like Smalltalk are excellent for some dynamic applications but do not provide static guarantees. Typed class-based languages like C# and Java contain a very large number of constructs, and it can sometimes be difficult for programmers to choose how to model their problem, and sometimes result in very large amounts of code just to solve quite simple problems. In contrast, the core constructs of the ML family of languages provide a smaller number of simple, orthogonal constructs which work together to allow for succinct yet efficient solutions to programming problems, and in particular permit common patterns of coding to be abstracted very easily."
分享到:
相关推荐
### 股权市场金融建模:从CAPM到协整 #### 一、引言 《股权市场的金融建模》是一本全面介绍如何构建股票投资组合模型的专业书籍。本书适用于广泛的定量分析师、金融从业者以及金融学学生。本书在保持数学严谨性的...
在"Programming Phase-Field Modeling"这个经典教程中,读者可以学习如何利用MATLAB来构建和解决相场模型。教程可能涵盖以下内容: 1. **基础理论**:介绍相场建模的基本概念,如Ginzburg-Landau能量泛函、Cahn-...
world sources in an easy-to-understand manner., Who this book is written for, This book is great for developers who are new to financial data modeling using Haskell. A basic knowledge of functional ...
The Handbook of Financial Modeling 英文mobi 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书
financial modeling on asset return. MBA class content
What You°re Going to Learn ? Win32 programming ? DirectX Foundation ? 2D graphics and algorithms ? Game programming techniques and data structures ? Multithreaded programming ? Artificial ...
The Handbook of Financial Modeling 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书
Financial Modeling Prep API 是一个强大的工具,为金融分析师、投资者和个人用户提供实时和历史的财经数据,包括股票价格、加密货币信息、外汇汇率等。这个API提供免费和付费版本,以满足不同用户的需求。以下是对...
Simon Benninga-Financial Modeling-The MIT Press (2014)
### 复杂系统建模与分析导论 #### 引言 《复杂系统建模与分析导论》一书由Hiroki Sayama撰写,旨在为学生提供在复杂系统科学这一新兴跨学科领域中的数学/计算建模及分析的基础知识。本书通过一系列深入浅出的章节,...
根据提供的文件信息,“Financial Modeling in Excel For Dummies”是一本专为希望在Excel中构建金融模型的初学者准备的指南书籍。以下是从标题、描述、标签以及部分内容中提取的关键知识点。 ### 一、金融建模的...
Clojure is well suited to financial modeling as it is a functional programming language. Such languages help developers work with high-level mathematical abstractions without having to implement low-...
A Student's Guide to Python for Physical Modeling aims to help you, the student, teach yourself enough of the Python programming language to get started with physical modeling. You will learn how to ...
财务建模准备此模块是免费的的节点包装。 该节点应用程序实现了FMP API的几乎所有方面。关于FinancialModelingPrep FMP API提供了各种类型的数据,从股票价格和历史数据到财务报表和市场表现。 完整的API文档可。...