Monotonic gradual typing in a common calculus

Benjamin Chung, J. Vitek
{"title":"Monotonic gradual typing in a common calculus","authors":"Benjamin Chung, J. Vitek","doi":"10.1145/3236454.3236475","DOIUrl":null,"url":null,"abstract":"Gradual typing refers to the notion that programs can be incrementally decorated with type annotations. Languages that support this approach to software development allow for programs being in various states of \"typedness\" on a scale ranging from entirely untyped to fully statically typed. Points in the middle of this typed-untyped scale create interactions between typed and untyped code, which is where gradual type systems differ. Each gradual type system comes with tradeoffs. Some systems provide strong guarantees at the expense of vastly degraded performance; others do not impact the running time of programs, but they do little to prevent type errors. This paper looks at an intriguing point in the landscape of these systems: the monotonic semantics. The monotonic semantics is designed to reduce the overhead of typed field access through a different enforcement mechanism compared to other gradual type systems. In our previous paper, [1], we described four semantics for gradual typing. This paper uses the framework of that companion paper to present and explore a formulation for the monotonic semantics. In comparison to the others, the monotonic semantics is designed to reduce the overhead of typed field access. We translate a common gradually typed source language to a common statically typed target language according to the monotonic semantics, allowing easy comparison to other gradual type systems in our framework.","PeriodicalId":258065,"journal":{"name":"Companion Proceedings for the ISSTA/ECOOP 2018 Workshops","volume":"55 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2018-07-16","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Companion Proceedings for the ISSTA/ECOOP 2018 Workshops","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3236454.3236475","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

Abstract

Gradual typing refers to the notion that programs can be incrementally decorated with type annotations. Languages that support this approach to software development allow for programs being in various states of "typedness" on a scale ranging from entirely untyped to fully statically typed. Points in the middle of this typed-untyped scale create interactions between typed and untyped code, which is where gradual type systems differ. Each gradual type system comes with tradeoffs. Some systems provide strong guarantees at the expense of vastly degraded performance; others do not impact the running time of programs, but they do little to prevent type errors. This paper looks at an intriguing point in the landscape of these systems: the monotonic semantics. The monotonic semantics is designed to reduce the overhead of typed field access through a different enforcement mechanism compared to other gradual type systems. In our previous paper, [1], we described four semantics for gradual typing. This paper uses the framework of that companion paper to present and explore a formulation for the monotonic semantics. In comparison to the others, the monotonic semantics is designed to reduce the overhead of typed field access. We translate a common gradually typed source language to a common statically typed target language according to the monotonic semantics, allowing easy comparison to other gradual type systems in our framework.
普通微积分中的单调渐进型分型
渐进式类型指的是这样一种概念,即可以用类型注释逐渐修饰程序。支持这种软件开发方法的语言允许程序在从完全无类型到完全静态类型的范围内处于各种“类型”状态。这个类型-非类型范围的中间点创建了类型代码和非类型代码之间的交互,这就是渐进类型系统的不同之处。每个渐进式类型系统都有权衡。有些系统以大幅降低性能为代价提供强大的保证;其他的不影响程序的运行时间,但是它们对防止类型错误的作用很小。本文着眼于这些系统景观中一个有趣的点:单调语义。与其他渐进式类型系统相比,单调语义旨在通过不同的强制机制减少类型化字段访问的开销。在我们上一篇论文[1]中,我们描述了渐进式类型的四种语义。本文利用该论文的框架提出并探讨了单调语义的表述。与其他语义相比,单调语义旨在减少类型化字段访问的开销。我们根据单调语义将一种常见的渐进类型源语言翻译成一种常见的静态类型目标语言,以便与我们框架中的其他渐进类型系统进行比较。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书