6 ms·
> Rust type system doesn't help when the data resides in a shared memory segment accessed by multiple processes. This isn't quite true. You can provide a safe
by howinteresting 3y ago
> Rust type system doesn't help when the data resides in a shared memory segment accessed by multiple processes.
This isn't quite true. You can provide a safe abstraction that involves cross-process locking APIs. https://github.com/elast0ny/shared_memory/blob/HEAD/examples/mutex.rs https://github.com/elast0ny/shared_memory/blob/HEAD/examples... is an example using a mutex guard.
Rust's type system helps more in some cases than others, but you can get at least some help from it almost all of the time.
- pjmlp 3y agoWhich are worthless on OSes like UNIX, with advisory locking.