LIP6 2000/014:
Rapport de Recherche LIP6 /
LIP6
research reports
18 pages - Mai/May 2000 -
Document en anglais.
Get it : 129 Ko /Kb
Contact : par mail / e-mail
Thème/Team: Calcul Formel
Titre français : Types Polymorphes, Objets, Modules, Foncteurs: Est-ce de trop ?
Titre anglais : Polymorphic Data Types, Objects, Modules and Functors: is it too much ?
Abstract : Abstraction is a powerful tool for developers and it is offered by numerous features such as polymorphism, classes, modules and functors, ... A working programmer may be confused with this abundance. We develop a computer algebra library which is being certified. Reporting this experience made with a language (Ocaml) offering all these features, we argue that they are all needed together. We compare several ways of using classes to represent algebraic concept, trying to follow as close as possible mathematical specification. Then we show how to combine classes and modules to produce code having very strong properties. Currently, this library is made of one hundred units of functional codes and behaves faster than analogous ones such as Axiom.
Key-words : classes, modules, functors, objects, types, polymorphism, functionnal
programming, Computer Algebra, specification, library
Publications internes LIP6 2000 / LIP6 research reports 2000