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
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
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