Repository logo
Research Outputs
Projects
People
Statistics
  1. Home
  2. HSG CRIS
  3. HSG Publications
  4. A Direct-Style Effect Notation for Sequential and Parallel Programs
Details

A Direct-Style Effect Notation for Sequential and Parallel Programs

Journal
Proceedings of the 37th European Conference on Object-Oriented Programming (ECOOP)
Series
Leibniz International Proceedings in Informatics (LIPIcs); 263
ISSN
1868-8969
ISBN
978-3-95977-281-5
Type
conference paper
Date Issued
2023-07
Author(s)
Richter, David
;
Böhler, Timon
;
Weisenburger, Pascal  
;
Mezini, Mira
DOI
10.4230/LIPIcs.ECOOP.2023.25
Abstract
Modeling sequential and parallel composition of effectful computations has been investigated in a variety of languages for a long time. In particular, the popular do-notation provides a lightweight effect embedding for any instance of a monad. Idiom bracket notation, on the other hand, provides an embedding for applicatives. First, while monads force effects to be executed sequentially, ignoring potential for parallelism, applicatives do not support sequential effects. Composing sequential with parallel effects remains an open problem. This is even more of an issue as real programs consist of a combination of both sequential and parallel segments. Second, common notations do not support invoking effects in direct-style, instead forcing a rigid structure upon the code. In this paper, we propose a mixed applicative/monadic notation that retains parallelism where possible, but allows sequentiality where necessary. We leverage a direct-style notation where sequentiality or parallelism is derived from the structure of the code. We provide a mechanisation of our effectful language in Coq and prove that our compilation approach retains the parallelism of the source program.
Language
English
Keywords
phrases do-notation
parallelism
concurrency
effects
Publisher
Schloss Dagstuhl – Leibniz-Zentrum für Informatik
Publisher place
Dagstuhl, Germany
Start page
25:1
End page
25:22
Pages
22
URL
https://www.alexandria.unisg.ch/handle/20.500.14171/121313
File(s)
Thumbnail Image
Name

2023_A-Direct-Style-Effect-Notation-for-Sequential-and-Parallel-Programs.pdf

Size

861.15 KB

Format

Adobe PDF

Checksum (MD5)

698c68f105c4043a39bfe4efb79a2c5c

Support
HSG researchers can find instructions here for adding or importing publications (DOI, ORCID). Please send questions to alexandria@unisg.ch

Built with DSpace-CRIS software - Extension maintained and optimized by 4Science

  • Accessibility settings
  • Privacy policy
  • End User Agreement
  • Send Feedback
Repository logo COAR Notify