|国家预印本平台
首页|Garbage Collection for Rust: The Finalizer Frontier

Garbage Collection for Rust: The Finalizer Frontier

Garbage Collection for Rust: The Finalizer Frontier

来源:Arxiv_logoArxiv
英文摘要

Rust is a non-Garbage Collected (GCed) language, but the lack of GC makes expressing data-structures that require shared ownership awkward, inefficient, or both. In this paper we explore a new design for, and implementation of, GC in Rust, called Alloy. Unlike previous approaches to GC in Rust, Alloy maps existing Rust destructors to finalizers: this makes GC in Rust natural to use but introduces surprising soundness, performance, and ergonomic problems. Alloy provides solutions for each of these problems.

Jacob Hughes、Laurence Tratt

计算技术、计算机技术

Jacob Hughes,Laurence Tratt.Garbage Collection for Rust: The Finalizer Frontier[EB/OL].(2025-04-02)[2025-04-24].https://arxiv.org/abs/2504.01841.点此复制

评论