Generic Programming in OCaml

Abstract : 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.
Type de document :
Communication dans un congrès
OCaml 2016 - The OCaml Users and Developers Workshop, Sep 2016, Nara, Japan. OCaml 2016 - The OCaml Users and Developers Workshop, 2016
Liste complète des métadonnées

https://hal.inria.fr/hal-01413061
Contributeur : Michel Mauny <>
Soumis le : vendredi 9 décembre 2016 - 12:00:31
Dernière modification le : jeudi 16 novembre 2017 - 17:12:03
Document(s) archivé(s) le : jeudi 23 mars 2017 - 09:42:51

Fichier

OUD_2016_paper_2.pdf
Fichiers produits par l'(les) auteur(s)

Identifiants

  • HAL Id : hal-01413061, version 1

Citation

Florent Balestrieri, Michel Mauny. Generic Programming in OCaml. OCaml 2016 - The OCaml Users and Developers Workshop, Sep 2016, Nara, Japan. OCaml 2016 - The OCaml Users and Developers Workshop, 2016. 〈hal-01413061〉

Partager

Métriques

Consultations de la notice

94

Téléchargements de fichiers

41