{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,3,14]],"date-time":"2026-03-14T09:03:46Z","timestamp":1773479026918,"version":"3.50.1"},"reference-count":38,"publisher":"Association for Computing Machinery (ACM)","issue":"OOPSLA2","license":[{"start":{"date-parts":[[2024,10,8]],"date-time":"2024-10-08T00:00:00Z","timestamp":1728345600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by-nd\/4.0\/"}],"funder":[{"DOI":"10.13039\/100014013","name":"UKRI","doi-asserted-by":"crossref","award":["MR\/T043830\/1"],"award-info":[{"award-number":["MR\/T043830\/1"]}],"id":[{"id":"10.13039\/100014013","id-type":"DOI","asserted-by":"crossref"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2024,10,8]]},"abstract":"<jats:p>\n                    Effect handlers provide a structured means for implementing user-defined, composable, and customisable computational effects, ranging from exceptions to generators to lightweight threads. We introduce\n                    <jats:monospace>\n                      <jats:bold>libseff<\/jats:bold>\n                    <\/jats:monospace>\n                    , a novel effect handlers library for C, based on coroutines. Whereas prior effect handler libraries for C are intended primarily as compilation targets,\n                    <jats:monospace>\n                      <jats:bold>libseff<\/jats:bold>\n                    <\/jats:monospace>\n                    is intended to be used directly from C programs. As such, the design of\n                    <jats:monospace>\n                      <jats:bold>libseff<\/jats:bold>\n                    <\/jats:monospace>\n                    parts ways from traditional effect handler implementations, both by using mutable coroutines as the main representation of pending computations, and by avoiding closures as handlers by way of reified effects. We show that the performance of\n                    <jats:monospace>\n                      <jats:bold>libseff<\/jats:bold>\n                    <\/jats:monospace>\n                    is competitive across a range of platforms and benchmarks.\n                  <\/jats:p>","DOI":"10.1145\/3689798","type":"journal-article","created":{"date-parts":[[2024,10,8]],"date-time":"2024-10-08T03:23:04Z","timestamp":1728357784000},"page":"2462-2489","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":6,"title":["Effect Handlers for C via Coroutines"],"prefix":"10.1145","volume":"8","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-9843-3768","authenticated-orcid":false,"given":"Mario","family":"Alvarez-Picallo","sequence":"first","affiliation":[{"name":"Huawei Research Centre, Edinburgh, United Kingdom"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0009-0006-4874-4270","authenticated-orcid":false,"given":"Teodoro","family":"Freund","sequence":"additional","affiliation":[{"name":"Huawei Research Centre, Edinburgh, United Kingdom"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-4003-8893","authenticated-orcid":false,"given":"Dan R.","family":"Ghica","sequence":"additional","affiliation":[{"name":"Huawei Research Centre, Edinburgh, United Kingdom"},{"name":"University of Birmingham, Birmingham, United Kingdom"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1360-4714","authenticated-orcid":false,"given":"Sam","family":"Lindley","sequence":"additional","affiliation":[{"name":"University of Edinburgh, Edinburgh, United Kingdom"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2024,10,8]]},"reference":[{"key":"e_1_3_2_2_2","unstructured":"Mario Alvarez-Picallo Teodoro Freund Dan R. Ghica and Sam Lindley. 2024. Effect Handlers for C via Coroutines - Artifact. https:\/\/doi.org\/10.5281\/zenodo.13485897 10.5281\/zenodo.13485897"},{"key":"e_1_3_2_3_2","unstructured":"Mario Alvarez-Picallo Teodoro Freund Dan R. Ghica and Sam Lindley. 2024. Effect Handlers for C via Coroutines - Artifact. https:\/\/doi.org\/10.5281\/zenodo.13619817 10.5281\/zenodo.13619817"},{"key":"e_1_3_2_4_2","unstructured":"Lewis Baker. 2024. cppcoro. https:\/\/github.com\/lewissbaker\/cppcoro."},{"key":"e_1_3_2_5_2","unstructured":"Effect Handlers Community. 2024. Effect handlers benchmarks suite. https:\/\/github.com\/effect-handlers\/effect-handlers-bench."},{"key":"e_1_3_2_6_2","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796820000039"},{"key":"e_1_3_2_7_2","unstructured":"Alex Crichton. 2021. Wasmtime Fiber API. https:\/\/docs.wasmtime.dev\/api\/wasmtime_fiber\/index.html. Accessed 2023-11-15."},{"key":"e_1_3_2_8_2","doi-asserted-by":"publisher","DOI":"10.1145\/1462166.1462167"},{"key":"e_1_3_2_9_2","unstructured":"KC Sivaramakrishnan Deepali Ande Sudha Parimala. 2023. Effectively Composing Concurrency Libraries. Draft. https:\/\/kcsrk.info\/papers\/composable_concurrency.pdf."},{"key":"e_1_3_2_10_2","first-page":"98","volume-title":"TFP (Lecture Notes in Computer Science, Vol. 10788)","author":"Dolan Stephen","year":"2017","unstructured":"Stephen Dolan, Spiros Eliopoulos, Daniel Hillerstr\u00f6m, Anil Madhavapeddy, KC Sivaramakrishnan, and Leo White. 2017. Concurrent System Programming with Effect Handlers. In TFP (Lecture Notes in Computer Science, Vol. 10788). Springer, 98\u2013117. https:\/\/doi.org\/10.1007\/978-3-319-89719-6_6 10.1007\/978-3-319-89719-6_6"},{"key":"e_1_3_2_11_2","doi-asserted-by":"publisher","DOI":"10.1145\/3563445"},{"key":"e_1_3_2_12_2","volume-title":"Foundations for Programming and Implementing Effect Handlers","author":"Hillerstr\u00f6m Daniel","year":"2021","unstructured":"Daniel Hillerstr\u00f6m. 2021. Foundations for Programming and Implementing Effect Handlers. Ph.D. Dissertation. School of Informatics, The University of Edinburgh, Scotland, UK."},{"key":"e_1_3_2_13_2","doi-asserted-by":"publisher","DOI":"10.14778\/3236187.3236216"},{"key":"e_1_3_2_14_2","first-page":"145","volume-title":"ICFP","author":"Kammar Ohad","year":"2013","unstructured":"Ohad Kammar, Sam Lindley, and Nicolas Oury. 2013. Handlers in action. In ICFP. ACM, 145\u2013158. https:\/\/doi.org\/10.1145\/2500365.2500590 10.1145\/2500365.2500590"},{"key":"e_1_3_2_15_2","doi-asserted-by":"publisher","DOI":"10.1145\/3485479"},{"key":"e_1_3_2_16_2","first-page":"159","volume-title":"TFP (Lecture Notes in Computer Science, Vol. 12222)","author":"Kawahara Satoru","year":"2020","unstructured":"Satoru Kawahara and Yukiyoshi Kameyama. 2020. One-Shot Algebraic Effects as Coroutines. In TFP (Lecture Notes in Computer Science, Vol. 12222). Springer, 159\u2013179. https:\/\/doi.org\/10.1007\/978-3-030-57761-2_8 10.1007\/978-3-030-57761-2_8"},{"key":"e_1_3_2_17_2","first-page":"94","volume-title":"Haskell","author":"Kiselyov Oleg","year":"2015","unstructured":"Oleg Kiselyov and Hiromi Ishii. 2015. Freer monads, more extensible effects. In Haskell. ACM, 94\u2013105. https:\/\/doi.org\/10.1145\/2804302.2804319 10.1145\/2804302.2804319"},{"key":"e_1_3_2_18_2","first-page":"339","volume-title":"APLAS (Lecture Notes in Computer Science, Vol. 10695)","author":"Leijen Daan","year":"2017","unstructured":"Daan Leijen. 2017. Implementing Algebraic Effects in C \u2014 \"Monads for Free in C\". In APLAS (Lecture Notes in Computer Science, Vol. 10695). Springer, 339\u2013363. https:\/\/doi.org\/10.1007\/978-3-319-71237-6_17 10.1007\/978-3-319-71237-6_17"},{"key":"e_1_3_2_19_2","unstructured":"Daan Leijen. 2019. libhandler. https:\/\/github.com\/koka-lang\/libhandler."},{"key":"e_1_3_2_20_2","unstructured":"Daan Leijen and KC Sivamarakrishnan. 2023. libmprompt and libmpeff. https:\/\/github.com\/koka-lang\/libmprompt."},{"key":"e_1_3_2_21_2","first-page":"117","volume-title":"Proceedings of the 24th International Workshop on Mobile Computing Systems and Applications, HotMobile 2023, Newport Beach, California, February 22-23, 2023","author":"Ma Zhiyao","year":"2023","unstructured":"Zhiyao Ma and Lin Zhong. 2023. Bringing Segmented Stacks to Embedded Systems. In Proceedings of the 24th International Workshop on Mobile Computing Systems and Applications, HotMobile 2023, Newport Beach, California, February 22-23, 2023. ACM, 117\u2013123. https:\/\/doi.org\/10.1145\/3572864.3580344 10.1145\/3572864.3580344"},{"key":"e_1_3_2_22_2","unstructured":"Daniel Morsing. 2014. How Stacks are Handled in Go. https:\/\/blog.cloudflare.com\/how-stacks-are-handled-in-go\/."},{"key":"e_1_3_2_23_2","unstructured":"Kazuho Oku Tokuhiro Matsuno Daisuke Murase and Shigeo Mitsunari. 2024. PicoHTTPParser. https:\/\/github.com\/h2o\/picohttpparser."},{"key":"e_1_3_2_24_2","doi-asserted-by":"publisher","DOI":"10.1145\/3622814"},{"issue":"4","key":"e_1_3_2_25_2","article-title":"Handling Algebraic Effects","volume":"9","author":"Plotkin Gordon D.","year":"2013","unstructured":"Gordon D. Plotkin and Matija Pretnar. 2013. Handling Algebraic Effects. Logical Methods in Computer Science 9, 4 (2013). https:\/\/doi.org\/10.2168\/LMCS-9(4:23)2013 10.2168\/LMCS-9(4:23)2013","journal-title":"Logical Methods in Computer Science"},{"key":"e_1_3_2_26_2","unstructured":"Aleksandar Prokopec and Fengyun Liu. 2018. Theory and Practice of Coroutines with Snapshots. https:\/\/doi.org\/10.4230\/LIPIcs.ECOOP.2018.3 10.4230\/LIPIcs.ECOOP.2018.3"},{"key":"e_1_3_2_27_2","doi-asserted-by":"publisher","DOI":"10.1145\/3408975"},{"key":"e_1_3_2_28_2","first-page":"206","volume-title":"PLDI","author":"Sivaramakrishnan KC","year":"2021","unstructured":"KC Sivaramakrishnan, Stephen Dolan, Leo White, Tom Kelly, Sadiq Jaffer, and Anil Madhavapeddy. 2021. Retrofitting effect handlers onto OCaml. In PLDI. ACM, 206\u2013221. https:\/\/doi.org\/10.1145\/3453483.3454039 10.1145\/3453483.3454039"},{"key":"e_1_3_2_29_2","unstructured":"Martin Sustrik. 2021. libmill. https:\/\/github.com\/sustrik\/libmill."},{"key":"e_1_3_2_30_2","unstructured":"Boost team. 2021. Boost.coroutine library. https:\/\/www.boost.org\/doc\/libs\/1_83_0\/libs\/coroutine\/doc\/html\/index.html."},{"key":"e_1_3_2_31_2","unstructured":"Boost team. 2024. Boost.context library. https:\/\/github.com\/boostorg\/context."},{"key":"e_1_3_2_32_2","unstructured":"Eio team. 2024. Eio. https:\/\/github.com\/ocaml-multicore\/eio."},{"key":"e_1_3_2_33_2","unstructured":"Mirage team. 2024. Mirage. https:\/\/github.com\/mirage\/ocaml-cohttp."},{"key":"e_1_3_2_34_2","unstructured":"OCaml Multicore team. 2021. Multicore OCaml HTTP benchmarks. https:\/\/github.com\/ocaml-multicore\/retro-httpaf-bench."},{"key":"e_1_3_2_35_2","unstructured":"TechEmpower. 2023. Web Framework Benchmarks. https:\/\/www.techempower.com\/benchmarks."},{"key":"e_1_3_2_36_2","unstructured":"Tencent. 2020. libco. https:\/\/github.com\/Tencent\/libco."},{"key":"e_1_3_2_37_2","unstructured":"wrk2 team. 2024. wrk2. https:\/\/github.com\/giltene\/wrk2."},{"key":"e_1_3_2_38_2","first-page":"302","volume-title":"MPC (Lecture Notes in Computer Science, Vol. 9129)","author":"Wu Nicolas","year":"2015","unstructured":"Nicolas Wu and Tom Schrijvers. 2015. Fusion for Free - Efficient Algebraic Effect Handlers. In MPC (Lecture Notes in Computer Science, Vol. 9129). Springer, 302\u2013322."},{"key":"e_1_3_2_39_2","doi-asserted-by":"publisher","DOI":"10.1145\/3473576"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3689798","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3689798","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,2,4]],"date-time":"2026-02-04T09:13:15Z","timestamp":1770196395000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3689798"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,10,8]]},"references-count":38,"journal-issue":{"issue":"OOPSLA2","published-print":{"date-parts":[[2024,10,8]]}},"alternative-id":["10.1145\/3689798"],"URL":"https:\/\/doi.org\/10.1145\/3689798","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,10,8]]},"assertion":[{"value":"2024-04-05","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2024-08-18","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2024-10-08","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}