kirancodes.me
To Proof Maintenance & Beyond!

More Haste, Less Speed: Lazy Versus Eager Evaluation

Richard S. Bird, Geraint Jones, Oege de Moor

Abstract

Nicholas Pippenger has recently given a problem that, under two simple restrictions, can be solved in linear time by an impure Lisp program, but requires Ω( n log n ) steps to be solved by any eager pure Lisp program. By showing how to solve the problem in linear time with a lazy functional program, we demonstrate that – for some problems at least – lazy evaluators are strictly more powerful than eager ones.

Related papers