3 ms·
> Capabilities should not be visible to users of the Rust language what-so-ever and should only exist in the compiler, and nowhere else. One important use of R
by saagarjha 5y ago
> Capabilities should not be visible to users of the Rust language what-so-ever and should only exist in the compiler, and nowhere else.
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.
- gpm 5y agoNaively 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.
- saagarjha 5y agoRight, the instances I'm mentioning are going to be parts of the codebase that are intended to be platform-specific.