ACM SIGPLAN Notices · 2006 · 35 citations · 32 references
ComputingComputer ScienceAlgorithmsProgramming LanguagesSystems ProgrammingGeneric ProgrammingType CheckingType SystemsGeneric AlgorithmsGenerics ImplementationSoftware Libraries
Generic programming has recently emerged as a paradigm for developing highly reusable software libraries, most notably in C++. We have designed and implemented a constrained generics extension for C++ to support modular type checking of generic algorithms and to address other issues associated with unconstrained generics. To be as broadly applicable as possible, generic algorithms are defined with minimal requirements on their inputs. At the same time, to achieve a high degree of efficiency, generic algorithms may have multiple implementations that exploit features of specific classes of inputs. This process of algorithm specialization relies on non-local type information and conflicts directly with the local nature of modular type checking. In this paper, we review the design and implementation of our extensions for generic programming in C++, describe the issues of algorithm specialization and modular type checking in detail, and discuss the important design tradeoffs in trying to accomplish both.We present the particular design that we chose for our implementation, with the goal of hitting the sweet spot in this interesting design space.
32
Information and Software Technology · 1992 · 994 citations
How to make ad-hoc polymorphism less ad hoc
Philip Wadler, Stephen Blott · 1989 · 770 citations · Full text
Modern software tools for scientific computing
Choice Reviews Online · 1997 · 516 citations
An Overview of the Scala Programming Language
Martin Odersky, Philippe Altherr, Vincent Cremet et al. · Infoscience (Ecole Polytechnique Fédérale de Lausanne) · 2004 · 511 citations · Full text
Alexander A. Stepanov, Meng Lee · 1998 · 409 citations