Skip to content

Research at St Andrews

Elaborator reflection: extending Idris in Idris

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Author(s)

David Christiansen, Edwin Charles Brady

School/Research organisations

Abstract

Many programming languages and proof assistants are defined by elaboration from a high-level language with a great deal of implicit information to a highly explicit core language. In many advanced languages, these elaboration facilities contain powerful tools for program construction, but these tools are rarely designed to be repurposed by users. We describe elaborator reflection, a
paradigm for metaprogramming in which the elaboration machinery is made directly available to metaprograms, as well as a concrete realization of elaborator reflection in Idris, a functional language with full dependent types. We demonstrate the applicability of Idris’s reflected elaboration framework to a number of realistic problems, we discuss the motivation for the specific features of its design, and we explore the broader meaning of elaborator reflection as it can relate to other languages.
Close

Details

Original languageEnglish
Title of host publicationProceedings of the 21st ACM SIGPLAN International Conference on Functional Programming
Place of PublicationNew York
PublisherACM
Pages284-297
ISBN (Print)9781450342193
DOIs
StatePublished - 4 Sep 2016
EventICFP 2016 - 21st ACM SIGPLAN International Conference on Functional Programming - Nara Kasugano International Forum, Nara, Japan
Duration: 18 Sep 201624 Sep 2016
http://conf.researchr.org/home/icfp-2016

Conference

ConferenceICFP 2016 - 21st ACM SIGPLAN International Conference on Functional Programming
CountryJapan
CityNara
Period18/09/1624/09/16
Internet address

    Research areas

  • Metaprogramming, Dependent types, Elaboration

Discover related content
Find related publications, people, projects and more using interactive charts.

View graph of relations

Related by author

  1. Type driven development of concurrent communicating systems

    Brady, E. C. 7 Jul 2017 In : Computer Science. 18, 3, 22 p., 1413

    Research output: Contribution to journalArticle

  2. Sequential decision problems, dependent types and generic solutions

    Botta, N., Jansson, P., Ionescu, C., Christiansen, D. & Brady, E. C. 17 Mar 2017 In : Logical Methods in Computer Science. 13, 1, 23 p., 7

    Research output: Contribution to journalArticle

  3. Type-driven development with Idris

    Brady, E. C. Mar 2017 Shelter Island: Manning Publications Co.480 p.

    Research output: Book/ReportBook

  4. Automatically proving equivalence by type-safe reflection

    Slama, F. & Brady, E. C. 2017 Intelligent Computer Mathematics: 10th International Conference, CICM 2017, Edinburgh, UK, July 17-21, 2017, Proceedings. Geuvers, H., England, M., Hasan, O., Rabe, F. & Teschke, O. (eds.). Cham: Springer, p. 40-55 (Lecture Notes in Computer Science (Lecture Notes in Artificial Intelligence); vol. 10383)

    Research output: Chapter in Book/Report/Conference proceedingConference contribution

  5. The Idris Programming Language: Implementing Embedded Domain Specific Languages with Dependent Types

    Brady, E. C. 2015 CEFP 2013. Springer, Vol. 8606

    Research output: Chapter in Book/Report/Conference proceedingChapter

ID: 243730122