Write a Blog >>
ICFP 2019
Sun 18 - Fri 23 August 2019 Berlin, Germany
Thu 22 Aug 2019 15:20 - 15:45 at Pine - Session 4 Chair(s): Gabriel Scherer

Idris is a strict functional language with dependent types intended for practical use. Unfortunately, due to the relatively small size of the Idris user community, the ecosystem of available libraries for practical programming is limited. To remedy this, we have constructed a Foreign Function Interface (FFI) for Idris to call OCaml libraries. We have extended Dolan’s backend for the Idris compiler that generates Malfunction (a concrete syntax for the OCaml compiler’s Lambda intermediate language) with the ability to call arbitrary OCaml libraries. Using this facility, we have been able to call higher order functions in OCaml’s List library, use the Cohttp library to make a web server with the callback function written in Idris using the Lwt library, and to construct a simple Mirage unikernel written in Idris. In the latter case, we needed to export an implementation of an OCaml functor from Idris to fit with Mirage’s functorised design.

In the talk, we will report on and demo the modifications we have made to Dolan’s Malfunction backend to make it more efficient, and the design decisions we have taken in exposing parts of the complex OCaml type system in Idris. Idris’s dependent types offer us an expressive language for describing types themselves. However obstacles remain, including ergonomic expression of module types and type safe representation of polymorphic functions.

Thu 22 Aug

Displayed time zone: Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna change

15:20 - 16:30
Session 4ML at Pine
Chair(s): Gabriel Scherer INRIA Saclay
15:20
25m
Talk
An Idris Foreign Function Interface to OCaml
ML
Robert Atkey University of Strathclyde, Ioan Luca University of Strathclyde
File Attached
15:45
25m
Talk
Necro: Animating Skeletons
ML
Nathanaël Courant INRIA, Enzo Crance INSA Rennes, Alan Schmitt Inria
File Attached