Lazy mixin modules and disciplined effects
Keiko Nakata

TL;DR
This paper introduces a formalization of lazy mixin modules in programming languages, extending existing semantics with constraints to control evaluation order and side effects, demonstrating practical relevance and theoretical foundations.
Contribution
It formalizes a call-by-need mixin calculus, extends semantics with constraints for evaluation control, and explores design options for explicit side effect ordering.
Findings
Formal semantics for lazy mixins adapted from call-by-name models
Constraints enable explicit control over evaluation order
Practical examples demonstrate the usefulness of lazy mixins with constraints
Abstract
Programming languages are expected to support programmer's effort to structure program code. The ML module system, object systems and mixins are good examples of language constructs promoting modular programming. Among the three, mixins can be thought of as a generalization of the two others in the sense that mixins can incorporate features of ML modules and objects with a set of primitive operators with clean semantics. Much work has been devoted to build mixin-based module systems for practical programming languages. In respect of the operational semantics, previous work notably investigated mixin calculi in call-by-name and call-by-value evaluation settings. In this paper we examine a mixin calculus in a call-by-need, or lazy, evaluation setting. We demonstrate how lazy mixins can be interesting in practice with a series of examples, and formalize the operational semantics by…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsLogic, programming, and type systems · Formal Methods in Verification · Advanced Software Engineering Methodologies
