avb-econ-hs
所属分类:论文
开发工具:Haskell
文件大小:0KB
下载次数:0
上传日期:2018-02-18 05:23:08
上 传 者:
sh-1993
说明: 独立Haskell重新实现Aruoba Villaverde的论文“经济学中编程语言的比较”,
(Independent Haskell reimplementation of Aruoba-Villaverde s paper "A Comparison of Programming Languages in Economics",)
文件列表:
LICENSE (35106, 2018-02-17)
Main.lhs (7161, 2018-02-17)
Setup.hs (46, 2018-02-17)
aruoba-villaverde.cabal (2293, 2018-02-17)
stack.yaml (2178, 2018-02-17)
## Introduction
A Haskell implementation of the problem described
in Aruoba and Fernández-Villaverde's paper "A Comparison of Programming
Languages in Economics"
http://economics.sas.upenn.edu/~jesusfv/comparison_languages.pdf
The original code in various programming languages is at
https://github.com/jesusfv/Comparison-Programming-Languages-Economics
We use the Haskell library REPA and Data.Vector.Unboxed for our arrays
https://hackage.haskell.org/package/repa
The ST monad allows us to use mutable vectors in performance-critical
parts while keeping the rest of the program mutation free.
## Speed
Right now on my machine the Haskell code compiled with GHC's LLVM
backend takes about 80% more time than Auroba-Villaverde's C++ code
compiled with GCC.
## Building
The easiest way to build is using Cabal
cabal install --only-dependencies
cabal build
will build the package.
Our default configuration uses GHC's LLVM
backend. If you do not have LLVM installed run
cabal configure -f-llvm
before building.
To run the program
cabal run
## Contact
Author: Jyotirmoy Bhattacharya, jyotirmoy@jyotirmoy.net
近期下载者:
相关文件:
收藏者: