Lune

OOPSLA2026Top-tier venue

Type Inference for Functional and Imperative Dynamic Languages

Mickaël Laurent, Jan Vitek

Abstract

In this paper, we formalize a type system based on set-theoretic types for dynamic languages that support both functional and imperative programming paradigms. We adapt prior work in the typing of overloaded and generic functions to support an impure λ -calculus, focusing on imperative features commonly found in dynamic languages such as JavaScript, Python, and Julia. We introduce a general notion of parametric opaque data types using set-theoretic types, enabling precise modeling of mutable data structures while promoting modularity, clarity, and readability. Finally, we compare our approach to existing work and evaluate our prototype implementation on a range of examples.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

1 top-tier paper has cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Implementing Set-Theoretic Types cites MLstruct: principal type inference in a Boolean algebra of structural types
  • Implementing Set-Theoretic Types cites Polymorphic Type Inference for Dynamic Languages
  • Polymorphic Type Inference for Dynamic Languages cites MLstruct: principal type inference in a Boolean algebra of structural types
  • When Subtyping Constraints Liberate: A Novel Type Inference Approach for First-Class Polymorphism cites MLstruct: principal type inference in a Boolean algebra of structural types
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. Implementing Set-Theoretic TypesMickaël Laurent, Kim NguyễnOOPSLA 2026 · 1 citation

Builds on3

  1. MLstruct: principal type inference in a Boolean algebra of structural typesLionel Parreaux, Chun Yin ChauOOPSLA 2022 · 31 citations
  2. When Subtyping Constraints Liberate: A Novel Type Inference Approach for First-Class PolymorphismLionel Parreaux, Aleksander Boruch-Gruszecki, Andong Fan, Chun Yin ChauPOPL 2024 · 13 citations
  3. Polymorphic Type Inference for Dynamic LanguagesGiuseppe Castagna, Mickaël Laurent, Kim NguyenPOPL 2024 · 12 citations

Related papers

  1. Gradually structured dataStefan Malewski, Michael Greenberg, Éric TanterOOPSLA 2021 · 4 citations
  2. Polymorphic Records for Dynamic LanguagesGiuseppe Castagna, Loïc PeyrotOOPSLA 2025 · 2 citations
  3. Taype: A Policy-Agnostic Language for Oblivious ComputationQianchuan Ye, Benjamin DelawarePLDI 2023 · 3 citations
  4. Transitioning from structural to nominal code with efficient gradual typingFabian Muehlboeck, Ross TateOOPSLA 2021 · 8 citations
  5. Graduality and parametricity: together again for the first timeMax S. New, Dustin Jamner, Amal AhmedPOPL 2020 · 36 citations
Dusk over the sea between two cliffs drawn in fine vertical lines