TU Darmstadt / ULB / TUbiblio

Compiling Prolog to Idiomatic Java

Eichberg, Michael
Gallagher, John ; Gelfond, Michael (eds.) :

Compiling Prolog to Idiomatic Java.
[Online-Edition: http://drops.dagstuhl.de/opus/volltexte/2011/3176]
In: Technical Communications of the 27th International Conference on Logic Programming (ICLP'11), Lexington, KY, USA. In: Leibniz International Proceedings in Informatics (LIPIcs) , 11 . Schloss Dagstuhl--Leibniz-Zentrum fuer Informatik , Dagstuhl, Germany
[Konferenz- oder Workshop-Beitrag], (2011)

Offizielle URL: http://drops.dagstuhl.de/opus/volltexte/2011/3176

Kurzbeschreibung (Abstract)

Today, Prolog is often used to solve well-defined, domain-specific problems that are part of larger applications. In such cases, a tight integration of the Prolog program and the rest of the application, which is commonly written in a different language, is necessary. One common approach is to compile the Prolog code to (native) code in the target language. In this case, the effort necessary to build, test and deploy the final application is reduced. However, most of the approaches that achieve reasonable performance compile Prolog to object-oriented code that relies on some kind of virtual machine (VM). These VMs are libraries implemented in the target language and implement Prolog's execution semantics. This adds a significant layer to the object-oriented program and results in code that does not look and feel native to developers of object-oriented programs. Further, if Prolog's execution semantics is implemented as a library the potential of modern runtime environments for object-oriented programs, such as the Java Virtual Machine, to effectively optimize the program is more limited. In this paper, we report on our approach to compile Prolog to high-level, idiomatic object-oriented Java code. The generated Java code closely resembles code written by Java developers and is effectively optimized by the Java Virtual Machine.

Typ des Eintrags: Konferenz- oder Workshop-Beitrag (Keine Angabe)
Erschienen: 2011
Herausgeber: Gallagher, John ; Gelfond, Michael
Autor(en): Eichberg, Michael
Titel: Compiling Prolog to Idiomatic Java
Sprache: Englisch
Kurzbeschreibung (Abstract):

Today, Prolog is often used to solve well-defined, domain-specific problems that are part of larger applications. In such cases, a tight integration of the Prolog program and the rest of the application, which is commonly written in a different language, is necessary. One common approach is to compile the Prolog code to (native) code in the target language. In this case, the effort necessary to build, test and deploy the final application is reduced. However, most of the approaches that achieve reasonable performance compile Prolog to object-oriented code that relies on some kind of virtual machine (VM). These VMs are libraries implemented in the target language and implement Prolog's execution semantics. This adds a significant layer to the object-oriented program and results in code that does not look and feel native to developers of object-oriented programs. Further, if Prolog's execution semantics is implemented as a library the potential of modern runtime environments for object-oriented programs, such as the Java Virtual Machine, to effectively optimize the program is more limited. In this paper, we report on our approach to compile Prolog to high-level, idiomatic object-oriented Java code. The generated Java code closely resembles code written by Java developers and is effectively optimized by the Java Virtual Machine.

Reihe: Leibniz International Proceedings in Informatics (LIPIcs)
Band: 11
Ort: Dagstuhl, Germany
Verlag: Schloss Dagstuhl--Leibniz-Zentrum fuer Informatik
Fachbereich(e)/-gebiet(e): Fachbereich Informatik > Softwaretechnik
Fachbereich Informatik
Veranstaltungstitel: Technical Communications of the 27th International Conference on Logic Programming (ICLP'11)
Veranstaltungsort: Lexington, KY, USA
Hinterlegungsdatum: 28 Jul 2011 12:55
Offizielle URL: http://drops.dagstuhl.de/opus/volltexte/2011/3176
Verwandte URLs:
Export:

Optionen (nur für Redakteure)

Eintrag anzeigen Eintrag anzeigen