𝔖 Bobbio Scriptorium
✦   LIBER   ✦

Compiling lazy functional programs to Java bytecode

✍ Scribed by Gary Meehan; Mike Joy


Publisher
John Wiley and Sons
Year
1999
Tongue
English
Weight
152 KB
Volume
29
Category
Article
ISSN
0038-0644

No coin nor oath required. For personal study only.

✦ Synopsis


The Java Virtual Machine (JVM) was designed as the target for Java compilers, but there is no reason why it cannot be used as the target for other languages. We describe the implementation of a compiler which translates a lazy, weakly-typed functional program into Java class files. We compare the performance of our compiler to the only other known compiler from a lazy functional language to the JVM. The results are broadly similar, suggesting that to get a significant performance speed-up using this compilation paradigm will come only from increasing the performance of the JVM, rather than enhancing the compiler itself.