Go to:
Logótipo
Comuta visibilidade da coluna esquerda
Você está em: Start > Publications > View > Algebraic Specialization of Generic Functions for Recursive Types
Publication

Publications

Algebraic Specialization of Generic Functions for Recursive Types

Title
Algebraic Specialization of Generic Functions for Recursive Types
Type
Article in International Scientific Journal
Year
2011
Authors
Cunha, A
(Author)
Other
The person does not belong to the institution. The person does not belong to the institution. The person does not belong to the institution. View Authenticus page Without ORCID
Pacheco, H
(Author)
Other
View Personal Page You do not have permissions to view the institutional email. Search for Participant Publications View Authenticus page View ORCID page
Journal
Vol. 229
Pages: 57-74
ISSN: 1571-0661
Publisher: Elsevier
Indexing
Other information
Authenticus ID: P-007-XPX
Abstract (EN): Defining functions over large, possibly recursive, data structures usually involves a lot of boilerplate. This code simply traverses non-interesting parts of the data, and rapidly becomes a maintainability problem. Many generic programming libraries have been proposed to address this issue. Most of them allow the user to specify the behavior just for the interesting bits of the structure, and provide traversal combinators to "scrap the boilerplate". The expressive power of these libraries usually comes at the cost of efficiency, since runtime checks are used to detect where to apply the type-specific behavior. In previous work we have developed an effective rewrite system for specialization and optimization of generic programs. In this paper we extend it to also cover recursive data types. The key idea is to specialize traversal combinators using well-known recursion patterns, such as folds or paramorphisms. These are ruled by a rich set of algebraic laws that enable aggressive optimizations. We present a type-safe encoding of this rewrite system in Haskell, based on recent language extensions such as type-indexed type families.
Language: English
Type (Professor's evaluation): Scientific
Documents
We could not find any documents associated to the publication.
Related Publications

Of the same authors

Delta Lenses over Inductive Types (2012)
Article in International Scientific Journal
Pacheco, H; Cunha, A; Hu, Z
Composing Least-change Lenses (2013)
Article in International Scientific Journal
Macedo, N; Pacheco, H; Cunha, A; Oliveira, JN
Towards a framework for multidirectional model transformations (2014)
Article in International Conference Proceedings Book
Macedo, N; Cunha, A; Pacheco, H
Teaching How to Program using Automated Assessment and Functional Glossy Games (Experience Report) (2018)
Article in International Conference Proceedings Book
Almeida, JB; Cunha, A; Macedo, N; Pacheco, H; Proenca, J
Relations as Executable Specifications: Taming Partiality and Non-determinism Using Invariants (2012)
Article in International Conference Proceedings Book
Macedo, N; Pacheco, H; Cunha, A

See all (11)

Of the same journal

Preface (2017)
Another Publication in an International Scientific Journal
Nigam V.; Florido, M
Linear Recursion (2010)
Other Publications
Sandra Alves; Maribel Fernández; Mário Florido; Ian Mackie
Towards the integration of visual and formal models for GUI testing (2007)
Article in International Scientific Journal
Ana C. R. Paiva; João C. P. Faria ; Raul F. A. M. Vidal
The Power of Closed Reduction Strategies (2007)
Article in International Scientific Journal
Alves, S; Fernandez, M; Florido, M; Mackie, I
Preface (1999)
Article in International Scientific Journal
Ines Dutra; Vítor Santos Costa; Gopal Gupta; Enrico Pontelli; Manuel Carro; Peter Kacsuk

See all (11)

Recommend this page Top
Copyright 1996-2025 © Faculdade de Direito da Universidade do Porto  I Terms and Conditions  I Acessibility  I Index A-Z  I Guest Book
Page created on: 2025-06-29 at 08:10:17 | Acceptable Use Policy | Data Protection Policy | Complaint Portal