Achieving multiple dispatch in hybrid statically and dynamically typed languages

4Citations
Citations of this article
4Readers
Mendeley users who have this article in their library.
Get full text

Abstract

Multiple dispatch is a feature provided by some programming languages, in which the actual method to be executed is dynamically determined by the runtime types of its arguments. Although some programming languages such as CLOS, Xtend and Dylan provide this feature, many widespread languages such as Java, C# and C++ only support single dispatch by means of dynamic binding. Therefore, different implementation techniques are commonly used to obtain multiple dispatch from within these single-dispatch languages. We propose a new approach to obtain multiple dispatch in single-dispatch hybrid static and dynamic typing languages. Using C# as an example, the proposed approach is compared with the existing ones, considering factors such as software maintainability and readability, code size, parameter generalization, compile-time type checking, and runtime performance. The example implementation of the hybrid statically and dynamically typed approach in .Net has shown a runtime performance 1.26 times lower than the statically typed approach, and 6.27 times higher than the dynamically type one. © 2013 Springer-Verlag.

Cite

CITATION STYLE

APA

Ortin, F., Garcia, M., Redondo, J. M., & Quiroga, J. (2013). Achieving multiple dispatch in hybrid statically and dynamically typed languages. In Advances in Intelligent Systems and Computing (Vol. 206 AISC, pp. 703–713). Springer Verlag. https://doi.org/10.1007/978-3-642-36981-0_65

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free