Re:Making Rust a Better Fit for Cheri and Other Platforms
by gpm on Thursday April 14, 2022 @10:45AM
(#31027688)
Naively I think you can probably just expose interactions with them inside existing apis like "slice::split_at_mut", since the rust abstract machine already has the concept of pointers being able to access regions of memory.
You would probably have direct access to the primitives available, but discourage using them, because using them means non portable code.
One important use of Rust is operating systems, allocators, and JIT compilers where security is important and interacting with capabilities is expected. You’ll really want some way to represent them in the language for these usecases.