A semantics for imprecise exceptions
Simon Jones, Alastair Reid, Fergus Henderson et al. · Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation · 1999
Some modern superscalar microprocessors provide only imprecise exceptions. That is, they do not guarantee to report the same exception that would be encountered by a straightforward sequential execution of the program. In exchange, they offer increased performance or decreased chip area (which amount to much the same thing).This performance/precision tradeoff has not so far been much explored at the programming language level. In this paper we propose a design for imprecise exceptions in the lazy functional programming language Haskell. We discuss several designs, and conclude that imprecision is essential if the language is still to enjoy its current rich algebra of transformations. We sketch a precise semantics for the language extended with exceptions.The paper shows how to extend Haskell with exceptions without crippling the language or its compilers. We do not yet have enough experience of using the new mechanism to know whether it strikes an appropriate balance between expressiveness and performance.
Cited by 102 works. doi:10.1145/301618.301637
Authors
References
- The SPLASH-2 programs
- High performance Fortran language specification
- Imperative functional programming
- The High Performance Fortran Handbook
- Computational lambda-calculus and monads
- Why Functional Programming Matters
- The theory and practice of transforming call-by-need into call-by-value
- A parallel hashed Oct-Tree N-body algorithm
- Concurrent Haskell
- Run-time scheduling and execution of loops on message passing machines