| Title: | Shared Memory for R Objects |
|---|---|
| Description: | Share R objects across processes on the same machine via a single copy in 'POSIX' shared memory (Linux, macOS) or a 'Win32' file mapping (Windows). Every process reads from the same physical pages through the R Alternative Representation ('ALTREP') framework, giving lazy, zero-copy access. Shared objects serialize compactly as their shared memory name rather than their full contents. |
| Authors: | Charlie Gao [aut, cre] (ORCID: <https://orcid.org/0000-0002-0750-061X>), Posit Software, PBC [cph, fnd] (ROR: <https://ror.org/03wc8by49>) |
| Maintainer: | Charlie Gao <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.2.2.9000 |
| Built: | 2026-11-06 15:20:23 UTC |
| Source: | https://github.com/r-lib/mori |
Share R objects via shared memory with share(), access them in
other processes with map_shared(), using R's ALTREP framework for
zero-copy memory-mapped access. Shared objects serialize compactly
via ALTREP serialization hooks. Shared memory is automatically freed
when the R object is garbage collected.
The mizu package provides a complete async and parallel framework
over the same shared-memory core — task pools, a parallel map, channels,
and Python interop. Objects created by share() travel through mizu
tasks as zero-copy references. mori remains the right choice when a
parallel backend such as mirai or parallel is already in place, or when
data must be mapped by name between independent processes or outlive
any pool.
Maintainer: Charlie Gao [email protected] (ORCID)
Authors:
Charlie Gao [email protected] (ORCID)
Other contributors:
Posit Software, PBC (ROR) [copyright holder, funder]
Useful links:
Report bugs at https://github.com/r-lib/mori/issues