Generic Programming in OCaml - Inria - Institut national de recherche en sciences et technologies du numérique Accéder directement au contenu
Communication Dans Un Congrès Année : 2016

Generic Programming in OCaml

Résumé

We present a library for generic programming in OCaml, adapting some techniques borrowed from other functional languages. The library makes use of three recent additions to OCaml: generalised abstract datatypes are essential to reflect types, extensible variants allow this reflection to be open for new additions, and extension points (PPX) provide syntactic sugar and generate boiler plate code that simplify the use of the library. The building blocks of the library can be used to support many approaches to generic programming through the concept of view. We present an application of the library to provide type-safe alternatives to OCaml's unsafe deserialization and unsafe type-cast.
Fichier principal
Vignette du fichier
OUD_2016_paper_2.pdf (180.81 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-01413061 , version 1 (09-12-2016)

Identifiants

  • HAL Id : hal-01413061 , version 1

Citer

Florent Balestrieri, Michel Mauny. Generic Programming in OCaml. OCaml 2016 - The OCaml Users and Developers Workshop, Sep 2016, Nara, Japan. ⟨hal-01413061⟩
126 Consultations
130 Téléchargements

Partager

Gmail Facebook X LinkedIn More