Nothing Special   »   [go: up one dir, main page]

skip to main content
10.1145/1111037.1111038acmconferencesArticle/Chapter ViewAbstractPublication PagespoplConference Proceedingsconference-collections
Article

Why dependent types matter

Published: 11 January 2006 Publication History

Abstract

Language designers have in recent years proposed a wealth of richer type systems for programming which seek to extend the range of statically enforced guarantees on data and code. Most such proposals have been evolutionary extensions of ML or Haskell, offering programmers a balanced compromise between expressive strength and existing well-understood technology. Typically they revolve around type- or kind-indexed types such as GADTs, supported by limited equality reasoning at the type-checking level, thus separating the dynamic behaviour of programs from the (simpler) static behaviour of indexing information occurring in their types.I want to argue in this talk for a more radical departure from such practice by examining full spectrum type dependency, lifting such restrictions on the data upon which types may depend. Conor McBride and I designed the language EPIGRAM for experiments in programming with inductive families of data (of which GADTs are a special case). Using it for illustration, I will explore some of the possibilities and challenges afforded by full spectrum type dependency at the static and dynamic level:
types directly support modelling complex invariants in terms of other data (rather than their types), with a Curry-Howard flavour of data-as-evidence; such complexity is on a 'pay-as-you-go' basis, while keeping type annotations and other syntactic overheads to a minimum;
data decomposition steps, e.g. case analysis, furnish more informative interactions between types and values during typechecking; such steps may moreover be abstractly specified by their types, and thus user definable; this supports a style of programming embracing 'learning by testing', views, and Burstall's 'hand simulation plus a little induction';
the absence of a rigid phase distinction need not lead to type-passing or excessive run-time overhead; effectful computation, in particular partiality, can be incorporated via variations on existing ideas such as monads.
This talk is based on joint work with Conor McBride, Edwin Brady and Thorsten Altenkirch.

Cited By

View all
  • (2018)Pure Functional EpidemicsProceedings of the 30th Symposium on Implementation and Application of Functional Languages10.1145/3310232.3310372(1-12)Online publication date: 5-Sep-2018
  • (2018)RESEDA: Declaring Live Event-Driven Computations as REactive SEmi-Structured DAta2018 IEEE 22nd International Enterprise Distributed Object Computing Conference (EDOC)10.1109/EDOC.2018.00020(75-84)Online publication date: Oct-2018
  • (2018)Foundations of dependent interoperabilityJournal of Functional Programming10.1017/S095679681800001128Online publication date: 13-Mar-2018
  • Show More Cited By

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM Conferences
POPL '06: Conference record of the 33rd ACM SIGPLAN-SIGACT symposium on Principles of programming languages
January 2006
432 pages
ISBN:1595930272
DOI:10.1145/1111037
  • cover image ACM SIGPLAN Notices
    ACM SIGPLAN Notices  Volume 41, Issue 1
    Proceedings of the 2006 POPL Conference
    January 2006
    421 pages
    ISSN:0362-1340
    EISSN:1558-1160
    DOI:10.1145/1111320
    Issue’s Table of Contents
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 11 January 2006

Permissions

Request permissions for this article.

Check for updates

Qualifiers

  • Article

Conference

POPL06

Acceptance Rates

Overall Acceptance Rate 824 of 4,130 submissions, 20%

Upcoming Conference

POPL '25

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)24
  • Downloads (Last 6 weeks)7
Reflects downloads up to 20 Nov 2024

Other Metrics

Citations

Cited By

View all
  • (2018)Pure Functional EpidemicsProceedings of the 30th Symposium on Implementation and Application of Functional Languages10.1145/3310232.3310372(1-12)Online publication date: 5-Sep-2018
  • (2018)RESEDA: Declaring Live Event-Driven Computations as REactive SEmi-Structured DAta2018 IEEE 22nd International Enterprise Distributed Object Computing Conference (EDOC)10.1109/EDOC.2018.00020(75-84)Online publication date: Oct-2018
  • (2018)Foundations of dependent interoperabilityJournal of Functional Programming10.1017/S095679681800001128Online publication date: 13-Mar-2018
  • (2017)APLicative Programming with Naperian FunctorsProgramming Languages and Systems10.1007/978-3-662-54434-1_21(556-583)Online publication date: 19-Mar-2017
  • (2013)Understanding ownership types with dependent typesAliasing in Object-Oriented Programming10.5555/2554511.2554518(84-108)Online publication date: 1-Jan-2013
  • (2013)Understanding Ownership Types with Dependent TypesAliasing in Object-Oriented Programming. Types, Analysis and Verification10.1007/978-3-642-36946-9_5(84-108)Online publication date: 2013
  • (2012)Structural types for systems of equationsHigher-Order and Symbolic Computation10.1007/s10990-013-9099-625:2-4(275-310)Online publication date: 1-Dec-2012
  • (2011)Reasoning about i/o in functional programsProceedings of the 4th Summer School conference on Central European Functional Programming School10.1007/978-3-642-32096-5_3(93-141)Online publication date: 14-Jun-2011
  • (2007)Datatype-Generic ProgrammingDatatype-Generic Programming10.1007/978-3-540-76786-2_1(1-71)Online publication date: 2007
  • (2006)Datatype-generic programmingProceedings of the 2006 international conference on Datatype-generic programming10.5555/1782894.1782895(1-71)Online publication date: 24-Apr-2006
  • Show More Cited By

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media