Passer à la navigation principale Passer à la recherche Passer au contenu principal

The Negligible and yet subtle cost of pattern matching

  • Laboratoire d'Informatique (LIX)

Résultats de recherche: Le chapitre dans un livre, un rapport, une anthologie ou une collectionContribution à une conférenceRevue par des pairs

7 Citations (Scopus)

Résumé

The model behind functional programming languages is the closed λ -calculus, that is, the fragment of the λ -calculus where evaluation is weak (i.e. out of abstractions) and terms are closed. It is well-known that the number of β (i.e. evaluation) steps is a reasonable cost model in this setting, for all natural evaluation strategies (call-by-name/value/need). In this paper we try to close the gap between the closed λ -calculus and actual languages, by considering an extension of the λ -calculus with pattern matching. It is straightforward to prove that β plus matching steps provide a reasonable cost model. What we do then is finer: we show that β steps only, without matching steps, provide a reasonable cost model also in this extended setting—morally, pattern matching comes for free, complexity-wise. The result is proven for all evaluation strategies (name/value/need), and, while the proof itself is simple, the problem is shown to be subtle. In particular we show that qualitatively equivalent definitions of call-by-need may behave very differently.

langue originaleAnglais
titreProgramming Languages and Systems - 15th Asian Symposium, APLAS 2017, Proceedings
rédacteurs en chefBor-Yuh Evan Chang
EditeurSpringer Verlag
Pages426-447
Nombre de pages22
ISBN (imprimé)9783319712369
Les DOIs
étatPublié - 1 janv. 2017
Evénement15th Asian Symposium on Programming Languages and Systems, APLAS 2017 - Suzhou, Chine
Durée: 27 nov. 201729 nov. 2017

Série de publications

NomLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume10695 LNCS
ISSN (imprimé)0302-9743
ISSN (Electronique)1611-3349

Une conférence

Une conférence15th Asian Symposium on Programming Languages and Systems, APLAS 2017
Pays/TerritoireChine
La villeSuzhou
période27/11/1729/11/17

Empreinte digitale

Examiner les sujets de recherche de « The Negligible and yet subtle cost of pattern matching ». Ensemble, ils forment une empreinte digitale unique.

Contient cette citation