arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2401.08287cs.PL
收藏

RichWasm:将安全、细粒度、共享内存互操作性引入 WebAssembly

RichWasm: Bringing Safe, Fine-Grained, Shared-Memory Interoperability Down to WebAssembly

Zoe Paraskevopoulou, Michael Fitzgibbons, Michelle Thalakottur, Noble Mushtak, Jose Sulaiman Mazur, Amal Ahmed

AI总结:

本文提出富类型中间语言 RichWasm,基于 WebAssembly 支持细粒度内存所有权与共享,可作为垃圾回收语言和所有权类型语言的编译目标,并在 Coq 中证明其类型安全性。

摘要:

在具有不同类​​型系统和内存安全保证的语言之间实现安全的共享内存互操作是一个复杂的问题,因为跨越语言边界可能导致内存安全违规。在本文中,我们提出了 RichWasm,一种新颖的富类型中间语言,旨在作为具有不同内存安全保证的类型化高级语言的编译目标。RichWasm 基于 WebAssembly,通过纳入支持细粒度内存所有权和共享的各种类型特性,实现了安全的共享内存互操作。RichWasm 的表达能力足够强,既可以作为类型化垃圾回收语言的类型化编译目标,也可以作为具有基于所有权的类型系统和手动管理内存的语言的类型化编译目标。我们通过提供从 core ML 和 L3(一种具有强更新的类型安全语言)到 RichWasm 的编译器来证明这一点。RichWasm 被编译为常规 Wasm,允许在现有环境中使用。我们在 Coq 中对 RichWasm 进行了形式化,并证明了类型安全性。

英文摘要:

Safe, shared-memory interoperability between languages with different type systems and memory-safety guarantees is an intricate problem as crossing language boundaries may result in memory-safety violations. In this paper, we present RichWasm, a novel richly typed intermediate language designed to serve as a compilation target for typed high-level languages with different memory-safety guarantees. RichWasm is based on WebAssembly and enables safe shared-memory interoperability by incorporating a variety of type features that support fine-grained memory ownership and sharing. RichWasm is rich enough to serve as a typed compilation target for both typed garbage-collected languages and languages with an ownership-based type system and manually managed memory. We demonstrate this by providing compilers from core ML and L3, a type-safe language with strong updates, to RichWasm. RichWasm is compiled to regular Wasm, allowing for use in existing environments. We formalize RichWasm in Coq and prove type safety.

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

↑