Compiling lazy functional programs based on the spineless Tagless G-machine for the java virtual machine

2Citations
Citations of this article
15Readers
Mendeley users who have this article in their library.
Get full text

Abstract

A systematic method of compiling lazy functional programs based on the Spineless Tagless G-machine (STGM) is presented for the Java Virtual Machine (JVM). A new specification of the STGM, which consists of a compiler and a reduction machine, is presented; the compiler translates a program in the STG language, which is the source language for the STGM, into a program in an intermediate language called L-code, and our reduction machine reduces the L-code program into an answer. With our representation for the reduction machine by the Java language, an L-code program is translated into a Java program simulating the reduction machine. The translated Java programs also run at a reasonable execution speed. Our experiment shows that execution times of translated benchmarks are competitive compared with those in a traditional Haskell interpreter, Hugs, particularly when Glasgow Haskell compiler’s STG-level optimizations are applied.

Cite

CITATION STYLE

APA

Choi, K., Lim, H. I., & Han, T. (2001). Compiling lazy functional programs based on the spineless Tagless G-machine for the java virtual machine. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 2024, pp. 92–107). Springer Verlag. https://doi.org/10.1007/3-540-44716-4_6

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free