Computing Reviews
Today's Issue Hot Topics Search Browse Recommended My Account Log In
Review Help
Search
Design and evaluation of C++ open multi-methods
Pirkelbauer P., Solodkyy Y., Stroustrup B. Science of Computer Programming75 (7):638-667,2010.Type:Article
Date Reviewed: May 13 2011

The fact that Bjarne Stroustrup, the creator of C++, is one of the authors suggests that this paper on the C++ open multi-methods approach has validity. The authors ensure that the new approach supports C++ call-resolution semantics. Additionally, the work includes the changes to the C++ compiler, which are required for implementation.

The paper addresses how object-oriented languages determine the method to invoke using a single runtime parameter. However, situations exist when the choice of function/method relies on two or more parameters. Additionally, these methods must be declared within class definitions, and programmers who design classes do not usually have enough information regarding the program’s future use to address all issues that might arise at runtime. The authors believe that by separating classes and operations, static or dynamic dispatch can be chosen for each parameter at runtime.

The authors discuss the following:

  • Open-methods programming styles;
  • Their function call for open methods and ambiguity resolution;
  • Open methods in relation to other language characteristics;
  • Required C++ compiler changes and extensions to the IA-64 object model;
  • Other techniques that support multi-methods for C++; and
  • Open multi-methods and the visitor pattern.

The results show that the authors’ open multi-methods approach is a significant improvement over existing techniques. Furthermore, the open multi-methods approach is only 16 percent slower than a current single dispatch approach. Open multi-methods can be applied to both hard real-time systems and embedded systems.

Reviewer:  Susan Shepherd Ferebee Review #: CR139055 (1111-1184)
Bookmark and Share
  Featured Reviewer  
 
C++ (D.3.2 ... )
 
 
Generic (D.3.2 ... )
 
 
Object-Oriented Constructs (F.3.3 ... )
 
 
Object-Oriented Programming (D.2.3 ... )
 
 
Object-Oriented Programming (D.1.5 )
 
Would you recommend this review?
yes
no
Other reviews under "C++": Date
A C++ toolkit
Shapiro J., Prentice-Hall, Inc., Upper Saddle River, NJ, 1991. Type: Book (9780131276635)
Dec 1 1991
Borland C++ handbook
Pappas C., William H. I., McGraw-Hill, Inc., New York, NY, 1991. Type: Book (9780078810152)
Feb 1 1993
Going from C to C++
Traister R., Academic Press Prof., Inc., San Diego, CA, 1993. Type: Book (9780126974126)
Apr 1 1994
more...

E-Mail This Printer-Friendly
Send Your Comments
Contact Us
Reproduction in whole or in part without permission is prohibited.   Copyright 1999-2024 ThinkLoud®
Terms of Use
| Privacy Policy