top | item 37636463

(no title)

howinteresting | 2 years 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... 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.

discuss

order

pjmlp|2 years ago

Which are worthless on OSes like UNIX, with advisory locking.