• Cite Icon3
  • https://doi.org/10.4230/lipics.iclp.2011.84Copy DOI Icon

Compiling Prolog to Idiomatic Java

  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
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.

Similar Papers
  • Book Chapter
  • Citations31

Software Thread Level Speculation for the Java Language and Virtual Machine Environment

  • Jan 01, 2006
  • Christopher J F Pickett +1
  • Research Article

Using Binary Code Instrumentation in Computer Security

  • Dec 30, 2013
  • Informatica Economica
  • Marius Popa +1
  • Research Article
  • Citations17

Compiling scala for the Java virtual machine

  • Jan 01, 2005
  • Infoscience (Ecole Polytechnique Fédérale de Lausanne)
  • Michel Schinz
  • Conference Article
  • Citations1

Comprehensive multi-platform dynamic program analysis for the Java and Dalvik virtual machines

  • Sep 23, 2014
  • Yudi Zheng +4
  • Book Chapter
  • Citations1

Profiling JVM for AI Applications Using Deep Learning Libraries

  • Oct 23, 2020
  • Neha Kumari +1
  • Research Article
  • Citations8

AOT vs. JIT: impact of profile data on code quality

  • Jun 21, 2017
  • ACM SIGPLAN Notices
  • April W Wade +2
  • Supplementary Content

Costrutti ed Applicazioni di Programmazione Generica in Linguaggi Object-Oriented

  • Apr 30, 2010
  • AMS Dottorato Institutional Doctoral Theses Repository (University of Bologna)
  • Maurizio Cimadamore
  • Book Chapter
  • Citations2

Java

  • Jan 15, 2002
  • Encyclopedia of Software Engineering
  • Mehdi Jazayeri
  • Conference Article
  • Citations2

A Hardware-Software Integrated Design for a High-Performance Java Processor

  • Apr 01, 2012
  • Anthony S Fong +2
  • Conference Article
  • Citations6

Virtual class support at the virtual machine level

  • Oct 25, 2009
  • Anders Bach Nielsen +1
  • Conference Article
  • Citations15

Testing in resource constrained execution environments

  • Nov 07, 2005
  • Gregory M Kapfhammer +2
  • Conference Article
  • Citations5

An Embedded Java Virtual Machine Using Network-on-Chip Design

  • Jul 10, 2006
  • G Mathias +1
  • Dissertation
  • Citations3

Distributed JAVA virtual machine with thread migration

  • Jan 01, 2004
  • Wenzhang Zhu
  • Research Article
  • Citations2

Phosphor: Illuminating Dynamic Data Flow in the JVM

  • Jan 01, 2014
  • Columbia Academic Commons (Columbia University)
  • Jonathan Bell +1
  • Conference Article
  • Citations3

RHE: A Lightweight JVM Instructional Tool

  • Jan 01, 2009
  • Shaoshan Liu +3
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.