Go to:
Logótipo
Você está em: Start » Publications » View » Type-Based Cost Analysis for Lazy Functional Languages
Publication

Type-Based Cost Analysis for Lazy Functional Languages

Title
Type-Based Cost Analysis for Lazy Functional Languages
Type
Article in International Scientific Journal
Year
2017-06-01
Authors
Pedro Vasconcelos
(Author)
FCUP
View Personal Page You do not have permissions to view the institutional email. Search for Participant Publications View Authenticus page View ORCID page
Steffen Jost
(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. Without AUTHENTICUS Without ORCID
Kevin Hammond
(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. Without AUTHENTICUS Without ORCID
Journal
Vol. 59 No. 1
Pages: 87-120
ISSN: 0168-7433
Publisher: Springer Nature
Indexing
Other information
Authenticus ID: P-00M-BG3
Abstract (EN): We present a static analysis for determining the execution costs of lazily evaluated functional languages, such as Haskell. Time- and space-behaviour of lazy functional languages can be hard to predict, creating a significant barrier to their broader acceptance. This paper applies a type-based analysis employing amortisation and cost effects to statically determine upper bounds on evaluation costs. While amortisation performs well with finite recursive data, we significantly improve the precision of our analysis for co-recursive programs (i.e. dealing with potentially infinite data structures) by tracking self-references. Combining these two approaches gives a fully automatic static analysis for both recursive and co-recursive definitions. The analysis is formally proven correct against an operational semantic that features an exchangeable parametric cost-model. An arbitrary measure can be assigned to all syntactic constructs, allowing to bound, for example, evaluation steps, applications, allocations, etc. Moreover, automatic inference only relies on first-order unification and standard linear programming solving. Our publicly available implementation demonstrates the practicability of our technique on editable non-trivial examples.
Language: English
Type (Professor's evaluation): Scientific
No. of pages: 34
Documents
We could not find any documents associated to the publication.
Related Publications

Of the same authors

Automatic Amortised Analysis of Dynamic Memory Allocation for Lazy Functional Programs (2012)
Article in International Scientific Journal
Hugo Simoes; Pedro Vasconcelos; Mario Florido; Steffen Jost; Kevin Hammond
Type-Based Allocation Analysis for Co-recursion in Lazy Functional Languages (2015)
Article in International Conference Proceedings Book
Pedro Vasconcelos; Steffen Jost; Mario Florido; Kevin Hammond

Of the same journal

Pardinus: A Temporal Relational Model Finder (2022)
Article in International Scientific Journal
Macedo, N; Brunel, J; Chemouil, D; Cunha, A
Mechanically proving termination using polynomial interpretations (2005)
Article in International Scientific Journal
Evelyne Contejean; Claude Marche; Ana Paula Tomas; Xavier Urbain
Recommend this page Top
Copyright 1996-2024 © Faculdade de Medicina da Universidade do Porto  I Terms and Conditions  I Acessibility  I Index A-Z  I Guest Book
Page created on: 2024-10-28 at 22:38:14
Acceptable Use Policy | Data Protection Policy | Complaint Portal | Política de Captação e Difusão da Imagem Pessoal em Suporte Digital