Java Language Specification, Second Edition: The Java Series
Java Language Specification, Second Edition: The Java Series
Proceedings of the sixth workshop on Declarative aspects of multicore programming
Reconciling method overloading and dynamically typed scripting languages
Computer Languages, Systems and Structures
Integrated symbol table, engine and heap memory management in multi-engine prolog
Proceedings of the international symposium on Memory management
Theory and Practice of Logic Programming - Prolog Systems
Hi-index | 0.00 |
In the context of direct and reflection based extension mechanisms for the Jinni 2000 Java based Prolog system, we discuss the design and the implementation of a reflection based Prolog to Java interface. While the presence of dynamic type information on both the Prolog and the Java sides allows us to automate data conversion between method parameters, the presence of subtyping and method overloading makes finding the most specific method corresponding to a Prolog call pattern fairly difficult. We describe a run-time algorithm which closely mimics Java's own compile-time method dispatching mechanism and provides accurate handling of overloaded methods beyond the reflection package's limitations. As an application of our interfacing technique, a complete GUI library is built in Prolog using only 10 lines of application specific Java code.