A Denotational Approach to Release/Acquire Concurrency

Yotam Dvir*, Ohad Kammar, Ori Lahav

*Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

2 Scopus citations

Abstract

We present a compositional denotational semantics for a functional language with first-class parallel composition and shared-memory operations whose operational semantics follows the Release/Acquire weak memory model (RA). The semantics is formulated in Moggi’s monadic approach, and is based on Brookes-style traces. To do so we adapt Brookes’s traces to Kang et al.’s view-based machine for RA, and supplement Brookes’s mumble and stutter closure operations with additional operations, specific to RA. The latter provides a more nuanced understanding of traces that uncouples them from operational interrupted executions. We show that our denotational semantics is adequate and use it to validate various program transformations of interest. This is the first work to put weak memory models on the same footing as many other programming effects in Moggi’s standard monadic approach.

Original languageEnglish
Title of host publicationProgramming Languages and Systems - 33rd European Symposium on Programming, ESOP 2024, Held as Part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2024, Proceedings
EditorsStephanie Weirich
PublisherSpringer Science and Business Media Deutschland GmbH
Pages121-149
Number of pages29
ISBN (Print)9783031572661
DOIs
StatePublished - 2024
Event33rd European Symposium on Programming, ESOP 2024, held as part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2024 - Luxembourg City, Luxembourg
Duration: 6 Apr 202411 Apr 2024

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume14577 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference33rd European Symposium on Programming, ESOP 2024, held as part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2024
Country/TerritoryLuxembourg
CityLuxembourg City
Period6/04/2411/04/24

Funding

FundersFunder number
Royal Society
European Commission
Israel Science Foundation814/ 22
Horizon 2020 Framework Programme851811

    Keywords

    • Compiler optimizations
    • Concurrency
    • Denotational semantics
    • Monads
    • Program equivalence
    • Program refinement
    • Release/Acquire
    • Shared memory
    • Shared state
    • Weak memory models

    Fingerprint

    Dive into the research topics of 'A Denotational Approach to Release/Acquire Concurrency'. Together they form a unique fingerprint.

    Cite this