Interlanguage working without tears: blending SML with Java
Proceedings of the fourth ACM SIGPLAN international conference on Functional programming
Adventures in interoperability: the SML.NET experience
PPDP '04 Proceedings of the 6th ACM SIGPLAN international conference on Principles and practice of declarative programming
Hi-index | 0.00 |
Developing complex applications often requires to mix several languages, in order to take advantage of each language strengths in the various parts of the source code. However, this imposes to transfer data from one language to another one; the problem is then not only the ability to exchange data, but to do so in a way that respects the idioms of the various languages involved. Failing to expose the data in a way that feels natural to the seasoned developer of a given language will import the programming style and even paradigm from one language into the other one, which somewhat defeats the purpose of using different languages for different tasks. The ocamlwrap tool presented in this article generates class definitions from OCaml type definitions. These classes allow the Java developer to manipulate data structures produced by the OCaml-Java runtime through usual Java patterns.