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.
In this paper we aim to give an introduction to fuzzy logic using
the language Haskell to
implement our solutions. We shall see how the high-level, declarative nature
of a functional
language allows us to implement easily and efficiently solutions to problems
using fuzzy logic
and, in particular, how the presence of functions as first-class values
allows us to model the
key concept of the fuzzy subset in a natural way.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.