OCaml-Java: an ML implementation for the Java ecosystem

  • Authors:
  • Xavier Clerc

  • Affiliations:
  • ocamljava.org

  • Venue:
  • Proceedings of the 2013 International Conference on Principles and Practices of Programming on the Java Platform: Virtual Machines, Languages, and Tools
  • Year:
  • 2013

Quantified Score

Hi-index 0.00

Visualization

Abstract

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.