Saltar para:
Logótipo
Comuta visibilidade da coluna esquerda
Você está em: Início > Publicações > Visualização > Algebraic Specialization of Generic Functions for Recursive Types

Publicações

Algebraic Specialization of Generic Functions for Recursive Types

Título
Algebraic Specialization of Generic Functions for Recursive Types
Tipo
Artigo em Revista Científica Internacional
Ano
2011
Autores
Cunha, A
(Autor)
Outra
A pessoa não pertence à instituição. A pessoa não pertence à instituição. A pessoa não pertence à instituição. Ver página do Authenticus Sem ORCID
Pacheco, H
(Autor)
Outra
Revista
Vol. 229
Páginas: 57-74
ISSN: 1571-0661
Editora: Elsevier
Indexação
Outras Informações
ID Authenticus: 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.
Idioma: Inglês
Tipo (Avaliação Docente): Científica
Documentos
Não foi encontrado nenhum documento associado à publicação.
Publicações Relacionadas

Dos mesmos autores

Delta Lenses over Inductive Types (2012)
Artigo em Revista Científica Internacional
Pacheco, H; Cunha, A; Hu, Z
Composing Least-change Lenses (2013)
Artigo em Revista Científica Internacional
Macedo, N; Pacheco, H; Cunha, A; Oliveira, JN
Towards a framework for multidirectional model transformations (2014)
Artigo em Livro de Atas de Conferência Internacional
Macedo, N; Cunha, A; Pacheco, H
Teaching How to Program using Automated Assessment and Functional Glossy Games (Experience Report) (2018)
Artigo em Livro de Atas de Conferência Internacional
Almeida, JB; Cunha, A; Macedo, N; Pacheco, H; Proenca, J
Relations as Executable Specifications: Taming Partiality and Non-determinism Using Invariants (2012)
Artigo em Livro de Atas de Conferência Internacional
Macedo, N; Pacheco, H; Cunha, A

Ver todas (11)

Da mesma revista

Preface (2017)
Outra Publicação em Revista Científica Internacional
Nigam V.; Florido, M
Linear Recursion (2010)
Outras Publicações
Sandra Alves; Maribel Fernández; Mário Florido; Ian Mackie
Towards the integration of visual and formal models for GUI testing (2007)
Artigo em Revista Científica Internacional
Ana C. R. Paiva; João C. P. Faria ; Raul F. A. M. Vidal
The Power of Closed Reduction Strategies (2007)
Artigo em Revista Científica Internacional
Alves, S; Fernandez, M; Florido, M; Mackie, I
Preface (1999)
Artigo em Revista Científica Internacional
Ines Dutra; Vítor Santos Costa; Gopal Gupta; Enrico Pontelli; Manuel Carro; Peter Kacsuk

Ver todas (11)

Recomendar Página Voltar ao Topo
Copyright 1996-2025 © Faculdade de Direito da Universidade do Porto  I Termos e Condições  I Acessibilidade  I Índice A-Z  I Livro de Visitas
Página gerada em: 2025-06-28 às 21:33:31 | Política de Utilização Aceitável | Política de Proteção de Dados Pessoais | Denúncias