PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
February 6, 20260 citationsOpen Access

Multiple resumptions and local mutable state, directly

View Full Paper
SMSerkan MuhcuPSPhilipp SchusterMSMichel Steuwer

Key Points

  • The aim is to resolve the compatibility issues between multiple resumptions and efficient implementation techniques in programming languages.
  • Develop a compilation strategy for lexical effect handlers supporting multiple resumptions
  • Implement a runtime system utilizing garbage-free reference counting and stable prompts
  • Create an LLVM backend for the Effekt language and compare performance with existing systems
  • Achieved constant-time continuation capture and state access when resumed once
  • Supported multiple resumptions with stack copying when needed
  • Demonstrated competitive performance against state-of-the-art implementations with minimal overhead

Abstract

While enabling use cases such as backtracking search and probabilistic programming, multiple resumptions have the reputation of being incompatible with efficient implementation techniques, such as stack switching. This paper sets out to resolve this conflict and thus bridge the gap between expressiveness and performance. To this end, we present a compilation strategy and runtime system for lexical effect handlers with support for multiple resumptions and stack-allocated mutable state. By building on garbage-free reference counting and associating stacks with stable prompts, our approach enables constant-time continuation capture and resumption when resumed exactly once, as well as constant-time state access. Nevertheless, we also support multiple resumptions by copying stacks when necessary. We practically evaluate our approach by implementing an LLVM backend for the Effekt language. A performance comparison with state-of-the-art systems, including dynamic and lexical effect handler implementations, suggests that our approach achieves competitive performance and the increased expressiveness only comes with limited overhead.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Muhcu et al. (2025) studied this question.

synapsesocial.com/papers/698586ad8f7c464f2300a723https://doi.org/10.14279/depositonce-24562
Ask AI
Helpful
Bookmark
Share
View Full Paper

Also Consider

Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context:

  1. 1Multiple Resumptions and Local Mutable State, Directly2025 · 2 citations
  2. 2Virtualizing Continuations2026
  3. 3Prosper: Program Stack Persistence in Hybrid Memory Systems2024 · 1 citations
  4. 4Cognitive Continuation After Interruption: A Causal-Role Grammar of Commitment, Resumption, and Protected Continuation State2026
  5. 5The Virtual Recency Abstraction: Strong Updates for Abstract Interpreters with Shared State2026