𝔖 Bobbio Scriptorium
✦   LIBER   ✦

Dynamic algorithm selection for runtime concepts

✍ Scribed by Peter Pirkelbauer; Sean Parent; Mat Marcus; Bjarne Stroustrup


Publisher
Elsevier Science
Year
2010
Tongue
English
Weight
473 KB
Volume
75
Category
Article
ISSN
0167-6423

No coin nor oath required. For personal study only.

✦ Synopsis


A key benefit of generic programming is its support for producing modules with clean separation. In particular, generic algorithms are written to work with a wide variety of types without requiring modifications to them. The Runtime concept idiom extends this support by allowing unmodified concrete types to behave in a runtime polymorphic manner. In this paper, we describe one implementation of the runtime concept idiom, in the domain of the C++ standard template library (STL). We complement the runtime concept idiom with an algorithm library that considers both type and concept information to maximize performance when selecting algorithm implementations. We present two implementations, one in ISO C++ and one using an experimental language extension. We use our implementations to describe and measure the performance of runtimepolymorphic analogs of several STL algorithms. The tests demonstrate the effects of different compile-time vs. run-time algorithm selection choices.


πŸ“œ SIMILAR VOLUMES


Runtime Mechanisms for Efficient Dynamic
✍ Vijay Karamcheti; John Plevyak; Andrew A. Chien πŸ“‚ Article πŸ“… 1996 πŸ› Elsevier Science 🌐 English βš– 490 KB

High performance on distributed memory machines for programming models with dynamic thread creation and multithreading requires efficient thread management and communication. Traditional multithreading runtimes, consisting of few general-purpose, bundled mechanisms that assume minimal compiler and h

CONCEPTS: New dynamic algorithm for de n
✍ David A. Pearlman; Mark A. Murcko πŸ“‚ Article πŸ“… 1993 πŸ› John Wiley and Sons 🌐 English βš– 960 KB

We describe a new method for de novo design of molecules that bind to protein active sites. The method, CONCEPTS (Creation of Novel Compounds by Evaluation of Particles at Target Sites), places a group of atom-like particles in the site. The particles are free to move within the site to improve bind