首页    期刊浏览 2024年10月07日 星期一
登录注册

文章基本信息

  • 标题:Intensional Effect Polymorphism
  • 本地全文:下载
  • 作者:Yuheng Long ; Yu David Liu ; Hridesh Rajan
  • 期刊名称:LIPIcs : Leibniz International Proceedings in Informatics
  • 电子版ISSN:1868-8969
  • 出版年度:2015
  • 卷号:37
  • 页码:346-370
  • DOI:10.4230/LIPIcs.ECOOP.2015.346
  • 出版社:Schloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
  • 摘要:Type-and-effect systems are a powerful tool for program construction and verification. We describe intensional effect polymorphism, a new foundation for effect systems that integrates static and dynamic effect checking. Our system allows the effect of polymorphic code to be intensionally inspected through a lightweight notion of dynamic typing. When coupled with parametric polymorphism, the powerful system utilizes runtime information to enable precise effect reasoning, while at the same time retains strong type safety guarantees. We build our ideas on top of an imperative core calculus with regions. The technical innovations of our design include a relational notion of effect checking, the use of bounded existential types to capture the subtle interactions between static typing and dynamic typing, and a differential alignment strategy to achieve efficiency in dynamic typing. We demonstrate the applications of intensional effect polymorphism in concurrent programming, security, graphical user interface access, and memoization.
  • 关键词:intensional effect polymorphism; type system; hybrid typing
国家哲学社会科学文献中心版权所有