skip to main content
10.1145/3524304.3524313acmotherconferencesArticle/Chapter ViewAbstractPublication PagesicscaConference Proceedingsconference-collections
research-article

Extracting Environments from Function Closures

Authors Info & Claims
Published:06 June 2022Publication History

ABSTRACT

In this paper, we study the mechanism for extracting the environment from a function closure in the framework of the lambda calculus. We propose the lambda calculus with environment extraction, which extends environment calculus. We define the untyped calculus: the syntax and the operational semantics. We show that the operational semantics are consistent using translation of the lambda calculus with environment extraction into the lambda calculus with records and pairs. Next, we give a simple type theory to the lambda calculus with environment extraction and prove that the type system holds the subject reduction theorem.

References

  1. M. Abadi, L. Cardelli, P-.L. Curien, and J.-J. Lévy. 1991. Explicit Substitutions. Journal of Functional Programming 1, 4 (October 1991), 375–416.Google ScholarGoogle ScholarCross RefCross Ref
  2. Yuta Aoyagi and Shin-ya Nishizaki. 2018. Untyped Call-by-Value Calculus with First-Class Continuations and Environments. In Theory and Practice of Computation. World Scientific, 101–117. doi:10.1142/9789813279674_0008.Google ScholarGoogle Scholar
  3. Oliver Laumann. 1990. Reference Manual for the Elk Extension Language Interpreter.Google ScholarGoogle Scholar
  4. Oliver Laumann. 1995. Elk – The Extension Language Kit Scheme Reference.Google ScholarGoogle Scholar
  5. Bil Lewis, Dan LaLiberte, and Richard Stallman. 2021. GNU Emacs Lisp Reference Manual For Emacs Version 27.2. https://www.gnu.org/software/emacs/manual/elisp.html.Google ScholarGoogle Scholar
  6. Shin-ya Nishizaki. 1995. Simply Typed Lambda Calculus with First-class Environments. Publications of Research Institute for Mathematical Sciences Kyoto University 30, 6 (1995), 1055–1121.Google ScholarGoogle ScholarCross RefCross Ref
  7. Shin-ya Nishizaki. 2000. A Polymorphic Environment Calculus and its Type Inference Algorithm. Higher-Order and Symbolic Computation 13 (2000), 239–278.Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Shin-ya Nishizaki. 2013. Evaluation Strategy and Translation of Environment Calculus. In Information Computing and Applications. Springer Berlin Heidelberg, 232–242.Google ScholarGoogle Scholar
  9. Shin-ya Nishizaki. 2019. Simple type system for call-by-value calculus with first-class continuations and ennvironments. In Theory and Practice of Computation. CRC Press, 119–130.Google ScholarGoogle Scholar
  10. Shin-ya Nishizaki and Mizuki Fujii. 2012. Strong reduction for typed lambda calculus with first-class environments. In Lecture Notes in Computer Science, Vol. 7473. Springer-Verlag Berlin Heidelberg, 632–639.Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. Brian Cantwell Smith. 1984. Reflection and semantics in LISP. In POPL’84: Proceedings of the 11th ACM SIGACT-SIGPLAN symposium on Principles of programming languages. ACM Press, 23–35.Google ScholarGoogle ScholarDigital LibraryDigital Library

Recommendations

Comments

Login options

Check if you have access through your login credentials or your institution to get full access on this article.

Sign in
  • Published in

    cover image ACM Other conferences
    ICSCA '22: Proceedings of the 2022 11th International Conference on Software and Computer Applications
    February 2022
    224 pages
    ISBN:9781450385770
    DOI:10.1145/3524304

    Copyright © 2022 ACM

    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]

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    • Published: 6 June 2022

    Permissions

    Request permissions about this article.

    Request Permissions

    Check for updates

    Qualifiers

    • research-article
    • Research
    • Refereed limited

PDF Format

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

HTML Format

View this article in HTML Format .

View HTML Format