Journal of Functional Programming · 2004 · 24 citations · 12 references
ComputingComputer ScienceCompilersProgramming LanguagesTheory Of ComputationAbstract Syntax TreesCompiler ConstructionFunctional ProgrammingType CheckingType SystemsComplexityCurryingData Type InferenceHigher-order FunctionsHigher-order Type CheckingPolymorphic TypesSubtype PolymorphismType Inference
We describe the FC++ library, a rich library supporting functional programming in C++. Prior approaches to encoding higher order functions in C++ have suffered with respect to polymorphic functions from either lack of expressiveness or high complexity. In contrast, FC++ offers full and concise support for higher-order polymorphic functions through a novel use of C++ type inference. The FC++ library has a number of useful features, including a generalized mechanism to implement currying in C++, a “lazy list” class which enables the creation of “infinite data structures”, a subtype polymorphism facility, and an extensive library of useful functions, including a large part of the Haskell Standard Prelude. The FC++ library has an efficient implementation. We show the results of a number of experiments which demonstrate the value of optimizations we have implemented. These optimizations have improved the run-time performance by about an order of magnitude for some benchmark programs that make heavy use of FC++ lazy lists. We also make an informal performance comparison with similar programs written in Haskell.
12
Ralph E. Johnson, Brian Foote · Journal of Object-oriented Programming · 1988 · 1.1K citations
Computing, Computer Science, Design +15
Report on the programming language Haskell
Paul Hudak, Simon Peyton Jones, Philip Wadler et al. · ACM SIGPLAN Notices · 1992 · 1K citations · Full text
Philip Wadler · 1990 · 575 citations · Full text
Martin Odersky, Philip Wadler · 1997 · 419 citations · Full text
Alexander A. Stepanov, Meng Lee · 1998 · 409 citations