Article contents
Comparing Id and Haskell in a Monte Carlo photon transport code
Published online by Cambridge University Press: 07 November 2008
Abstract
In this paper we present functional Id and Haskell versions of a large Monte Carlo radiation transport code, and compare the two languages with respect to their expressiveness. Monte Carlo transport simulation exercises such abilities as parsing, input/output, recursive data structures and traditional number crunching, which makes it a good test problem for languages and compilers. Using some code examples, we compare the programming styles encouraged by the two languages. In particular, we discuss the effect of laziness on programming style. We point out that resource management problems currently prevent running realistically large problem sizes in the functional versions of the code.
- Type
- Research Article
- Information
- Copyright
- Copyright © Cambridge University Press 1995
References
- 6
- Cited by
Discussions
No Discussions have been published for this article.