skip to main content
10.1145/3677998.3678223acmconferencesArticle/Chapter ViewAbstractPublication PagesicfpConference Proceedingsconference-collections
research-article

Continuations: What Have They Ever Done for Us? (Experience Report)

Published: 28 August 2024 Publication History

Abstract

Surveys and experiments in economics involve stateful interactions: participants receive different messages based on earlier answers, choices, and performance, or trade across many rounds with other participants. In the design of Congame, a platform for running such economic studies, we decided to use delimited continuations to manage the common flow of participants through a study. Here we report on the positives of this approach, as well as some challenges of using continuations, such as persisting data across requests, working with dynamic variables, avoiding memory leaks, and the difficulty of debugging continuations.

References

[1]
Daniel L. Chen, Martin Schonger, and Chris Wickens. oTree-An open-source platform for laboratory, online, and field experiments. Journal of Behavioral and Experimental Finance 9, pp. 88-97, 2016.
[2]
2015. 12. 001 John Clements, Matthew Flatt, and Matthias Felleisen.
[3]
Modeling an Algebraic Stepper. Lecture Notes in Computer Science 2028, pp. 320-334, 2001. Matthew Flatt and PLT. Reference: Racket. PLT Design Inc., PLT-TR-2010-1, 2010. https://racket-lang.org/tr1/ Matthew Flatt, Gang Yu, Robert Bruce Findler, and Matthias Felleisen. Adding delimited and composable control to a production programming environment. ACM SIGPLAN Notices 42, pp. 165-176, 2007.
[4]
Shriram Krishnamurthi, Peter Walton Hopkins, Jay McCarthy, Paul T. Graunke, Greg Pettyjohn, and Matthias Felleisen. Implementation and use of the PLT scheme Web server. Higher-Order and Symbolic Computation 20, pp. 431-460, 2007. Bogdan Popa. dbg. 2021. https://github.com/Bogdanp/ racket-dbg Christian Queinnec. Inverting back the inversion of control or, continuations versus page-centric programming. ACM SIGPLAN Notices 38, pp. 57-64, 2003.
[5]
Received 2024-06-03; accepted 2024-06-30

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Conferences
FUNARCH 2024: Proceedings of the 2nd ACM SIGPLAN International Workshop on Functional Software Architecture
August 2024
40 pages
ISBN:9798400711015
DOI:10.1145/3677998
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 28 August 2024

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. Continuations
  2. Racket/Scheme
  3. State management
  4. Web

Qualifiers

  • Research-article

Conference

FUNARCH '24
Sponsor:

Upcoming Conference

ICFP '25
ACM SIGPLAN International Conference on Functional Programming
October 12 - 18, 2025
Singapore , Singapore

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • 0
    Total Citations
  • 58
    Total Downloads
  • Downloads (Last 12 months)58
  • Downloads (Last 6 weeks)4
Reflects downloads up to 26 Jan 2025

Other Metrics

Citations

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media