Skip to content

OCaml-Java, now with Maven integration

OCaml-Java, now with Maven integration

Details

This meetup will show you how to make OCaml code coexist with a standard java virtual machine, and a regular Maven project as well.

Briefly, Maven (http://maven.apache.org/) is a popular build and package management system for java oriented projects (think Oasis + OPAM). It maintains a central repository of artifacts, allowing anyone to easily build another person's Maven project, given they have an internet connection.

OCaml-Java (http://ocamljava.x9c.fr/preview/) provides several swap in replacements for your traditional OCaml tools like ocamlc, ocamldep, and friends. In short, they allow to you compile your OCaml code directly to java byte code, then link that byte code in an optimized way to a regular jar file.

Conversely, you can also code generate java source files which wrap over your OCaml modules, giving access to your OCaml state from java. I will cover the basics of these features in the first part of the talk.

In the second part of the talk, I will introduce a new project that integrates OCaml-Java into Maven's universe. This involved creating a maven plugin that invokes OCaml-Java's tools programmatically during the right Maven build phases. The repo is located here:

https://github.com/struktured/ocamljava-maven-plugin

This meetup is hosted by ICE at 55 E 52nd Street, 40th floor in the multipurpose conference room. Check in with security at the lobby. Drinks and snacks will be available in the pantry area.

Speaker: Carmelo Piccione (https://www.meetup.com/NYC-OCaml/member/13387655)

Photo of OCaml NYC Meetup group
OCaml NYC Meetup
See more events
IntercontinentalExchange
55 E 52nd Street · New York, NY