Aviso: para depositar documentos, por favor, inicia sesión e identifícate con tu cuenta de correo institucional de la UCM con el botón MI CUENTA UCM. No emplees la opción AUTENTICACIÓN CON CONTRASEÑA
 

Type Classes in Functional Logic Programming (Author’s version for E-Prints Complutense)

dc.contributor.authorMartin-Martin, Enrique
dc.date.accessioned2023-06-20T00:06:16Z
dc.date.available2023-06-20T00:06:16Z
dc.date.issued2011-01-24
dc.description.abstractType classes provide a clean, modular and elegant way of writing overloaded functions. Functional logic programming languages (FLP in short) like Toy or Curry have adopted the Damas-Milner type system, so it seems natural to adopt also type classes in FLP. However, type classes has been barely introduced in FLP. A reason for this lack of success is that the usual translation of type classes using dictionaries presents some problems in FLP like the absence of expected answers due to a bad interaction of dictionaries with the call-time choice semantics for non-determinism adopted in FLP systems. In this paper we present a type-passing translation of type classes based on type-indexed functions and type witnesses that is well-typed with respect to a new liberal type system recently proposed for FLP. We argue the suitability of this translation for FLP because it improves the dictionary-based one in three aspects. First, it obtains programs which run as fast or faster—with an speedup from 1.05 to 2.30 in our experiments. Second, it solves the mentioned problem of missing answers. Finally, the proposed translation generates shorter and simpler programs. (C) ACM, (2011). This is the authors version of the work. It is posted here by permission of ACM for your personal use. Not for redistribution. The definitive version was published in PEPM ’11 Proceedings of the 20th ACM SIGPLAN workshop on Partial evaluation and program manipulation (January 24–25, 2011, Austin, Texas, USA). http://doi.acm.org/10.1145/1929501.1929524.
dc.description.departmentDepto. de Sistemas Informáticos y Computación
dc.description.facultyFac. de Informática
dc.description.refereedTRUE
dc.description.statuspub
dc.eprint.idhttps://eprints.ucm.es/id/eprint/13330
dc.identifier.issn978-1-4503-0485-6
dc.identifier.officialurlhttp://doi.acm.org/10.1145/1929501.1929524
dc.identifier.relatedurlhttp://gpd.sip.ucm.es/enrique
dc.identifier.urihttps://hdl.handle.net/20.500.14352/41973
dc.journal.titlePEPM ’11 Proceedings of the 20th ACM SIGPLAN workshop on Partial evaluation and program manipulation
dc.language.isoeng
dc.page.final130
dc.page.initial121
dc.publisherACM
dc.rightsAtribución-NoComercial-CompartirIgual 3.0 España
dc.rights.accessRightsopen access
dc.rights.urihttps://creativecommons.org/licenses/by-nc-sa/3.0/es/
dc.subject.keywordType Classes
dc.subject.keywordFunctional Logic Programming
dc.subject.keywordType-indexed functions.
dc.subject.ucmLenguajes de programación
dc.subject.unesco1203.23 Lenguajes de Programación
dc.titleType Classes in Functional Logic Programming (Author’s version for E-Prints Complutense)
dc.typejournal article
dspace.entity.typePublication

Download

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
eprints.pdf
Size:
319.22 KB
Format:
Adobe Portable Document Format

Collections