Type systems usually characterize the shape of values but not their free variables. However, there are many desirable safety properties one could guarantee if one could track how references can escape. For example, one may implement algebraic effect handlers using capabilities -- a value which permits one to perform the effect -- safely if one can guarantee that the capability itself does not escape the scope bound by the effect handler. To this end, we study the $\textrm{CF}_{<:}$ calculus, a conservative and lightweight extension of $\textrm{System F}_{<:}$, to track how values and their references can be captured and escape. We show that existing terms in $\textrm{System F}_{<:}$ embed naturally in our calculus, and that many natural problems can be expressed in a system that tracks variable references like we do in $\textrm{CF}_{<:}$. We also give mechanized proofs of the soundness properties of $\textrm{CF}_{<:}$ in Coq. The type system presented in $\textrm{CF}_{<:}$ is powerful enough to reason about safety in the context of many natural extensions of $\textrm{CF}_{<:}$ such as region-based memory-management, non-local returns, and effect handlers.


翻译:类型系统通常具有价值形状的特性, 但不是自由变量的特性。 但是, 如果能够追踪引用如何可以逃脱, 有许多可取的安全属性。 例如, 我们可以使用能力来应用代数效应处理器 -- -- 这个值允许一个人发挥作用 -- -- 安全地, 如果能保证能力本身不会逃脱效果处理器约束的范围。 为此, 我们研究 $\ textrm{ CF{}}}: $ 微积分, $\ textrm{ System:} $ 的保守和轻量级扩展。 我们也可以在 Coq 中找到如何捕捉和逃避这些引用。 我们用 $\ textrm{ System F} 显示现有术语, 这个值可以自然嵌入我们的计算器中。 许多自然问题可以在一个系统中表达, 这个系统可以追踪像 $\ textrm{ CF} { { {} :} $: we algened 证明$\ text crial- relistal real relifal redistrutal refal refal: press as: ex relifal real real real as: exfact real real refact refal as: ex: $ * * * * * * * * * * * * * * * * * * * * * 足够 足够的不足够) 等的自然- 等以 等的自然安全性安全性机域域域域域域域域的不具有足够强烈性机能 。

0
下载
关闭预览

相关内容

iOS 8 提供的应用间和应用跟系统的功能交互特性。
  • Today (iOS and OS X): widgets for the Today view of Notification Center
  • Share (iOS and OS X): post content to web services or share content with others
  • Actions (iOS and OS X): app extensions to view or manipulate inside another app
  • Photo Editing (iOS): edit a photo or video in Apple's Photos app with extensions from a third-party apps
  • Finder Sync (OS X): remote file storage in the Finder with support for Finder content annotation
  • Storage Provider (iOS): an interface between files inside an app and other apps on a user's device
  • Custom Keyboard (iOS): system-wide alternative keyboards

Source: iOS 8 Extensions: Apple’s Plan for a Powerful App Ecosystem
专知会员服务
14+阅读 · 2021年5月21日
最新《深度学习理论》笔记,68页pdf
专知会员服务
48+阅读 · 2021年2月14日
专知会员服务
123+阅读 · 2020年9月8日
最新《深度持续学习》综述论文,32页pdf
专知会员服务
178+阅读 · 2020年9月7日
专知会员服务
53+阅读 · 2020年3月16日
Transferring Knowledge across Learning Processes
CreateAMind
26+阅读 · 2019年5月18日
已删除
将门创投
6+阅读 · 2019年1月2日
A Technical Overview of AI & ML in 2018 & Trends for 2019
待字闺中
16+阅读 · 2018年12月24日
【跟踪Tracking】15篇论文+代码 | 中秋快乐~
专知
18+阅读 · 2018年9月24日
【推荐】用Python/OpenCV实现增强现实
机器学习研究会
14+阅读 · 2017年11月16日
Capsule Networks解析
机器学习研究会
10+阅读 · 2017年11月12日
Arxiv
3+阅读 · 2018年5月21日
Arxiv
9+阅读 · 2018年3月10日
Arxiv
3+阅读 · 2018年2月20日
Arxiv
6+阅读 · 2018年2月8日
Arxiv
8+阅读 · 2018年1月30日
Arxiv
7+阅读 · 2017年12月28日
VIP会员
相关资讯
Transferring Knowledge across Learning Processes
CreateAMind
26+阅读 · 2019年5月18日
已删除
将门创投
6+阅读 · 2019年1月2日
A Technical Overview of AI & ML in 2018 & Trends for 2019
待字闺中
16+阅读 · 2018年12月24日
【跟踪Tracking】15篇论文+代码 | 中秋快乐~
专知
18+阅读 · 2018年9月24日
【推荐】用Python/OpenCV实现增强现实
机器学习研究会
14+阅读 · 2017年11月16日
Capsule Networks解析
机器学习研究会
10+阅读 · 2017年11月12日
Top
微信扫码咨询专知VIP会员