Multilanguage Interoperability

Authors

  • G. Attardi
  • M. Gaspari

Abstract

We present an approach to the interoperability of programming languages, based on a Common Runtime Support (CRS), which provides general mechanisms for storage management, symbol table management and concurrent execution, for modern high level languages. We focus in particular on the CRS approach to the interoperability of AI languages, in particular Prolog and Common Lisp. The CRS provides support for logic variables, so that both a Lisp Abstract Machine and a subset of the Warren Abstract Machine, including all the unification primitives, are implemented on it. We present and compare two alternative implementations of non/determinism and backtracking, through success continuations and failure continuations. Both Lisp and Prolog programs are compiled to C code to run on the C/based CRS. The interoperability is achieved with minimal overhead and this allows programmers to select the most appropriate programming paradigm for each task: functional, logic and object-oriented. Finally, we show how an efficient theorem prover for first order predicates can be implemented on the CRS obtaining interesting performances.

Downloads

Download data is not yet available.

Published

2012-03-05

How to Cite

Attardi, G., & Gaspari, M. (2012). Multilanguage Interoperability. Computing and Informatics, 15(6), 531–554. Retrieved from http://147.213.75.17/ojs/index.php/cai/article/view/678