{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,22]],"date-time":"2026-09-22T11:07:11Z","timestamp":1790075231702,"version":"4.0.1"},"reference-count":42,"publisher":"Association for Computing Machinery (ACM)","issue":"PLDI","license":[{"start":{"date-parts":[[2026,6,8]],"date-time":"2026-06-08T00:00:00Z","timestamp":1780876800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/legalcode"}],"funder":[{"DOI":"10.13039\/100008398","name":"Villum Fonden","doi-asserted-by":"publisher","award":["VIL75403"],"award-info":[{"award-number":["VIL75403"]}],"id":[{"id":"10.13039\/100008398","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/100008398","name":"Villum Fonden","doi-asserted-by":"publisher","award":["VIL25804"],"award-info":[{"award-number":["VIL25804"]}],"id":[{"id":"10.13039\/100008398","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100000781","name":"European Research Council","doi-asserted-by":"publisher","award":["101096090"],"award-info":[{"award-number":["101096090"]}],"id":[{"id":"10.13039\/501100000781","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100002739","name":"Aarhus Universitets Forskningsfond","doi-asserted-by":"publisher","award":["Starter Grant"],"award-info":[{"award-number":["Starter Grant"]}],"id":[{"id":"10.13039\/501100002739","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2026,6,8]]},"abstract":"<jats:p>WasmFX is a proposed extension of Wasm, a low-level portable bytecode, with primitives for explicitly manipulating execution stacks as continuations. By exposing an interface of effect handlers, WasmFX enables non-local control flow features to be compiled in a modular way: one handcrafts a library that directly implements such features in WasmFX, and compilation then merely calls into the library. Alas, code involving non-local control flow is notoriously challenging, and so this proposal raises the questions of the soundness of the language extension, and of the correctness of such handcrafted libraries. In this paper, we first describe WasmFXCert, a mechanisation of WasmFX in Rocq, and prove the expected type soundness result. We then develop Iris-WasmFX, a program logic to reason about Wasm programs that use effect handlers, and illustrate its application to two key use cases of effect handlers: a coroutine library, and a generator. Together, these validate the design of WasmFX, and provide a modular framework for verifying future effect-based libraries.<\/jats:p>","DOI":"10.1145\/3808271","type":"journal-article","created":{"date-parts":[[2026,6,8]],"date-time":"2026-06-08T18:04:09Z","timestamp":1780941849000},"page":"604-628","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":0,"title":["Iris-WasmFX: Modular Reasoning for Wasm Stack Switching"],"prefix":"10.1145","volume":"10","author":[{"ORCID":"https:\/\/orcid.org\/0009-0005-4093-2755","authenticated-orcid":false,"given":"Maxime","family":"Legoupil","sequence":"first","affiliation":[{"name":"Nanyang Technological University, Singapore, Singapore"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0004-4742-3868","authenticated-orcid":false,"given":"Mathias","family":"Pedersen","sequence":"additional","affiliation":[{"name":"Aarhus University, Aarhus, Denmark"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-1320-0098","authenticated-orcid":false,"given":"Lars","family":"Birkedal","sequence":"additional","affiliation":[{"name":"Aarhus University, Aarhus, Denmark"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"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":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-4442-6543","authenticated-orcid":false,"given":"Jean","family":"Pichon-Pharabod","sequence":"additional","affiliation":[{"name":"Aarhus University, Aarhus, Denmark"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2026,6,8]]},"reference":[{"key":"e_1_3_2_2_1","unstructured":"Heejin Ahn and Ben Titzer. 2022. Exception Handling Proposal for WebAssembly. https:\/\/github.com\/WebAssembly\/exception-handling\/blob\/main\/proposals\/exception-handling\/Exceptions.md"},{"key":"e_1_3_2_3_1","doi-asserted-by":"publisher","DOI":"10.1145\/2984450.2984457"},{"key":"e_1_3_2_4_1","unstructured":"Arnaud Daby-Seesaram Fran\u00e7ois Pottier and Arma\u00ebl Gu\u00e9neau. 2023. Osiris: an Iris-based program logic for OCaml. OCaML\u201923: Caml Users and Developers Workshop 2023. https:\/\/icfp23.sigplan.org\/details\/ocaml-2023-papers\/7\/Osiris-an-Iris-based-program-logic-for-OCaml"},{"key":"e_1_3_2_5_1","volume-title":"Proof of Programs with Effect Handlers. (Preuve de Programmes avec Effect Handlers)","author":"de Vilhena Paulo","year":"2022","unstructured":"Paulo de Vilhena. 2022. Proof of Programs with Effect Handlers. (Preuve de Programmes avec Effect Handlers). Ph. D. Dissertation. Paris Cit\u00e9 University, France. https:\/\/tel.archives-ouvertes.fr\/tel-03891381"},{"key":"e_1_3_2_6_1","doi-asserted-by":"publisher","DOI":"10.1145\/3434314"},{"key":"e_1_3_2_7_1","doi-asserted-by":"publisher","DOI":"10.46298\/LMCS-19(4:5)2023"},{"key":"e_1_3_2_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/362929.362947"},{"key":"e_1_3_2_9_1","doi-asserted-by":"publisher","DOI":"10.1145\/73560.73576"},{"key":"e_1_3_2_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/3656444"},{"key":"e_1_3_2_11_1","doi-asserted-by":"publisher","unstructured":"Andreas Haas Andreas Rossberg Derek L. Schuff Ben L. Titzer Michael Holman Dan Gohman Luke Wagner Alon Zakai and J. F. Bastien. 2017. Bringing the web up to speed with WebAssembly. In Proceedings of the 38th ACM SIGPLAN Conference on Programming Language Design and Implementation PLDI 2017 Barcelona Spain June 18-23 2017 Albert Cohen and Martin T. Vechev (Eds.). ACM 185\u2013200. doi:10.1145\/3062341.3062363","DOI":"10.1145\/3062341.3062363"},{"key":"e_1_3_2_12_1","unstructured":"Daniel Hillerstr\u00f6m. 2021. Typed Continuations: A Basis for Stack-switching in Wasm. https:\/\/raw.githubusercontent.com\/WebAssembly\/meetings\/main\/stack\/2021\/presentations\/2021-9-20-TypedContinuations.pdf"},{"key":"e_1_3_2_13_1","doi-asserted-by":"publisher","DOI":"10.1007\/BFB0053567"},{"key":"e_1_3_2_14_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796818000151"},{"key":"e_1_3_2_15_1","doi-asserted-by":"publisher","unstructured":"Adam Khayam Louis Noizet and Alan Schmitt. 2022. A Faithful Description of ECMAScript Algorithms. In PPDP 2022: 24th International Symposium on Principles and Practice of Declarative Programming Tbilisi Georgia September 20 - 22 2022. ACM 8:1\u20138:14. doi:10.1145\/3551357.3551381","DOI":"10.1145\/3551357.3551381"},{"key":"e_1_3_2_16_1","unstructured":"Maxime Legoupil Daniel Hillerstr\u00f6m Andreas Rossberg Thomas Lively and Sam Lindley. 2025. Github discussion on WasmFX bug. https:\/\/github.com\/WebAssembly\/stack-switching\/pull\/109"},{"key":"e_1_3_2_17_1","doi-asserted-by":"publisher","unstructured":"Maxime Legoupil Mathias Pedersen Lars Birkedal Sam Lindley and Jean Pichon Pharabod. 2026. Artefact for Iris-WasmFX: Modular Reasoning for Wasm Stack Switching. doi:10.5281\/zenodo.19095849","DOI":"10.5281\/zenodo.19095849"},{"key":"e_1_3_2_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/3689722"},{"key":"e_1_3_2_19_1","unstructured":"Yalun Liang Sam Lindley and Andreas Rossberg. 2025. Experience Report: Stack Switching in Wasm SpecTec. presented at WAW: the WebAssembly Workshop https:\/\/effect-handlers.org\/static\/papers\/sss-waw-2025.pdf."},{"key":"e_1_3_2_20_1","doi-asserted-by":"publisher","DOI":"10.1145\/3591279"},{"key":"e_1_3_2_21_1","unstructured":"David Madore. 2001. The Unlambda Programming Language. http:\/\/www.madore.org\/~david\/programs\/unlambda\/."},{"key":"e_1_3_2_22_1","unstructured":"Luc Maranget Susmit Sarkar and Peter Sewell. 2012. A Tutorial Introduction to the ARM and POWER Relaxed Memory Models. http:\/\/www.cl.cam.ac.uk\/~pes20\/ppc-supplemental\/test7.pdf."},{"key":"e_1_3_2_23_1","unstructured":"Francis McCabe Sam Lindley and WebAssembly Community Group. 2025. Stack Switching WebAssembly proposal. https:\/\/github.com\/WebAssembly\/stack-switching\/blob\/main\/proposals\/stack-switching\/Explainer.md."},{"key":"e_1_3_2_24_1","unstructured":"Francis McCabe Thibaud Michaud Ilya Rezvov and Brendan Dahl. 2024. Introducing the WebAssembly JavaScript Promise Integration API. https:\/\/v8.dev\/blog\/jspi"},{"key":"e_1_3_2_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/3571208"},{"key":"e_1_3_2_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/3622814"},{"key":"e_1_3_2_27_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-00590-9_7"},{"key":"e_1_3_2_28_1","doi-asserted-by":"publisher","DOI":"10.2168\/LMCS-9(4:23)2013"},{"key":"e_1_3_2_29_1","doi-asserted-by":"publisher","DOI":"10.1145\/3591265"},{"key":"e_1_3_2_30_1","unstructured":"Andreas Rossberg. 2019. WebAssembly (Release 1.0). https:\/\/webassembly.github.io\/spec\/. Accessed 2020-01-01."},{"key":"e_1_3_2_31_1","unstructured":"Andreas Rossberg. 2020. Issue #1359: Typed continuations to model stacks. https:\/\/github.com\/WebAssembly\/design\/issues\/1359"},{"key":"e_1_3_2_32_1","unstructured":"Andreas Rossberg. 2023. WebAssembly (Release 2.0). https:\/\/webassembly.github.io\/spec\/. Accessed 2023-20-02."},{"key":"e_1_3_2_33_1","unstructured":"Andreas Rossberg. 2025. SpecTec has been adopted. https:\/\/webassembly.org\/news\/2025-03-27-spectec\/"},{"key":"e_1_3_2_34_1","unstructured":"Andreas Rossberg Daan Leijen Daniel Hillerstr\u00f6m KC Sivaramakrishnan Matija Pretnar Sam Lindley and Stephen Dolan. 2020. Stacks and Continuations for Wasm \u2014 Idea Sketch. https:\/\/github.com\/WebAssembly\/meetings\/blob\/master\/main\/2020\/presentations\/2020-02-rossberg-continuations.pdf Accessed Jul 4 2020."},{"key":"e_1_3_2_35_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-04027-6_32"},{"key":"e_1_3_2_36_1","doi-asserted-by":"crossref","unstructured":"Remy Seassau Irene Yoon Jean-Marie Madiot and Fran\u00e7ois Pottier. 2025a. Formal Semantics & Program Logics for a Fragment of OCaml. In ICFP.","DOI":"10.1145\/3747509"},{"key":"e_1_3_2_37_1","unstructured":"Remy Seassau Irene Yoon Jean-Marie Madiot and Fran\u00e7ois Pottier. 2025b. Osiris: Towards Formal Semantics and Reasoning for OCaml."},{"key":"e_1_3_2_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/1785414.1785443"},{"key":"e_1_3_2_39_1","doi-asserted-by":"publisher","DOI":"10.1145\/3341709"},{"key":"e_1_3_2_40_1","unstructured":"Andew Wagner Zachary Eisbach and Amal Ahmed. 2025. An Adjoint Separation Logic for the Wasm Call Stack. presentation at Discussions at Dagstuhl Seminar 25241: Utilising and Scaling the WebAssembly Semantics. https:\/\/www.andrewwagner.io\/assets\/slides\/adj-wasm-dagstuhl.pdf"},{"key":"e_1_3_2_41_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-90870-6_4"},{"key":"e_1_3_2_42_1","doi-asserted-by":"publisher","DOI":"10.1145\/3656440"},{"key":"e_1_3_2_43_1","unstructured":"Alon Zakai. 2019. Pause and Resume WebAssembly with Binaryen\u2019s Asyncify. https:\/\/kripken.github.io\/blog\/wasm\/2019\/07\/16\/asyncify.html."}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3808271","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,22]],"date-time":"2026-09-22T10:46:58Z","timestamp":1790074018000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3808271"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,6,8]]},"references-count":42,"journal-issue":{"issue":"PLDI","published-print":{"date-parts":[[2026,6,8]]}},"alternative-id":["10.1145\/3808271"],"URL":"https:\/\/doi.org\/10.1145\/3808271","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,6,8]]},"assertion":[{"value":"2025-11-13","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-04-03","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-06-08","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}