计算机科学 > 程序设计语言
[提交于 2022年5月3日]
标题:Rusty Links in Local Chains
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Rust successfully applies ownership types to control memory allocation. This restricts the programs' topologies to the point where doubly-linked lists cannot be programmed in Safe Rust. We sketch how more flexible "local" ownership could be added to Rust, permitting multiple mutable references to objects, provided each reference is bounded by the object's lifetime. To maintain thread-safety, locally owned objects must remain thread-local; to maintain memory safety, local objects can be deallocated when their owner's lifetime expires.
提交历史
来自:James Noble[v1] 2022年5月3日 星期二 00:00:00 UTC