arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1807.00067cs.PL
收藏

Josephine:使用JavaScript安全地管理Rust数据的生命周期

Josephine: Using JavaScript to safely manage the lifetimes of Rust data

Alan Jeffrey

摘要:

这篇文章是关于使用垃圾收集器的语言和使用奇特类型进行安全手动存储管理的语言之间的接口。垃圾回收是函数式语言的传统存储管理方案,而类型系统现在用于命令式语言的内存安全。我们使用现有的线性功能技术来提供对可复制引用的安全访问,但将其应用于具有跟踪垃圾收集器的语言和具有显式生命周期的数据是新的。这项工作与混合线性/非线性编程有关,但混合的语言是Rust和JavaScript。

英文摘要:

This paper is about the interface between languages which use a garbage collector and those which use fancy types for safe manual memory management. Garbage collection is the traditional memory management scheme for functional languages, whereas type systems are now used for memory safety in imperative languages. We use existing techniques for linear capabilities to provide safe access to copyable references, but the application to languages with a tracing garbage collector, and to data with explicit lifetimes is new. This work is related to mixed linear/non-linear programming, but the languages being mixed are Rust and JavaScript.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑