Summary: An Architecture for Making Object-Oriented Systems
Available from Prolog
Jan Wielemaker and Anjo Anjewierden
Social Science Informatics (SWI),
University of Amsterdam,
Roetersstraat 15, 1018 WB Amsterdam, The Netherlands,
June 13, 2002
It is next to impossible to develop real-life applications in just pure Prolog. With XPCE  we
realised a mechanism for integrating Prolog with an external object-oriented system that turns this
OO system into a natural extension to Prolog. We describe the design and how it can be applied
to other external OO systems.
A wealth of functionality is available in object-oriented systems and libraries. This paper addresses
the issue of how such libraries can be made available in Prolog, in particular libraries for creating user
Almost any modern Prolog system can call routines in C and be called from C (or other impera-
tive languages). Also, most systems provide ready-to-use libraries to handle network communication.
These primitives are used to build bridges between Prolog and external libraries for (graphical) user-