{"title":"A Functional Abstraction of Typed Invocation Contexts","authors":"Youyou Cong, Chiaki Ishio, Kaho Honda, K. Asai","doi":"10.46298/lmcs-18(3:34)2022","DOIUrl":null,"url":null,"abstract":"In their paper \"A Functional Abstraction of Typed Contexts\", Danvy and\nFilinski show how to derive a monomorphic type system of the shift and reset\noperators from a CPS semantics. In this paper, we show how this method scales\nto Felleisen's control and prompt operators. Compared to shift and reset,\ncontrol and prompt exhibit a more dynamic behavior, in that they can manipulate\na trail of contexts surrounding the invocation of previously captured\ncontinuations. Our key observation is that, by adopting a functional\nrepresentation of trails in the CPS semantics, we can derive a type system that\nencodes all and only constraints imposed by the CPS semantics.","PeriodicalId":314387,"journal":{"name":"Log. Methods Comput. Sci.","volume":"60 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-10-14","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"3","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Log. Methods Comput. Sci.","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.46298/lmcs-18(3:34)2022","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 3
Abstract
In their paper "A Functional Abstraction of Typed Contexts", Danvy and
Filinski show how to derive a monomorphic type system of the shift and reset
operators from a CPS semantics. In this paper, we show how this method scales
to Felleisen's control and prompt operators. Compared to shift and reset,
control and prompt exhibit a more dynamic behavior, in that they can manipulate
a trail of contexts surrounding the invocation of previously captured
continuations. Our key observation is that, by adopting a functional
representation of trails in the CPS semantics, we can derive a type system that
encodes all and only constraints imposed by the CPS semantics.