Repository logo

Infoscience

  • English
  • French
Log In
Logo EPFL, École polytechnique fédérale de Lausanne

Infoscience

  • English
  • French
Log In
  1. Home
  2. Academic and Research Output
  3. Conferences, Workshops, Symposiums, and Seminars
  4. Representing Monads with Capabilities
 
conference presentation

Representing Monads with Capabilities

Brachthäuser, Jonathan Immanuel  
•
Boruch-Gruszecki, Aleksander Slawomir  
•
Odersky, Martin  
August 22, 2021
HOPE 2021 Workshop

Programming with monads can be advantageous even in imperative languages with builtin support for side effects. However, in these languages composing monadic programs is different from composing side effecting imperative programs. This does not need to be the case, as already noticed by Filinski [1994]. We revive the well-known technique of monadic reflection in the context of modern programming languages with support for fibers, generators, or coroutines. In particular, we show how (layered) monadic reflection can be implemented in a stack safe manner and how effect safety can conveniently be approximated by capability passing.

  • Files
  • Details
  • Metrics
Loading...
Thumbnail Image
Name

monadic-reflection.pdf

Type

Postprint

Version

Accepted version

Access type

openaccess

License Condition

Copyright

Size

304.51 KB

Format

Adobe PDF

Checksum (MD5)

e20225d442b3d1bb521ff486db324fa0

Logo EPFL, École polytechnique fédérale de Lausanne
  • Contact
  • infoscience@epfl.ch

  • Follow us on Facebook
  • Follow us on Instagram
  • Follow us on LinkedIn
  • Follow us on X
  • Follow us on Youtube
AccessibilityLegal noticePrivacy policyCookie settingsEnd User AgreementGet helpFeedback

Infoscience is a service managed and provided by the Library and IT Services of EPFL. © EPFL, tous droits réservés