A placed program's state and frame parts moved through its view, and whole frames composed from parts that arrive from several machines
$ sexc add @ajax/mesh-place-compose- total 3
- drwxr-xr-x-../
- drwxr-xr-x-Oct 27 04:09v/# 1 version
- drwxr-xr-x-Oct 27 04:09files/# the files of 0.1.0
- latest
- 0.1.0, published Oct 27 04:09 by ajax
- owners
- ajax
- license
- MIT
- dependencies
- @ajax/mesh-check ^0.1.0, @ajax/mesh-mt ^0.1.0, @ajax/rust-fmt ^0.1.0, @ajax/mesh-place-spec ^0.1.0, @ajax/mesh-place-wire ^0.1.0
- dependents
- @ajax/mesh-placer
- keywords
- mesh alphaos fleet placement frames compose
- homepage
- https://github.com/thomasdavis/alpha-c-mesh/tree/main/packages/mesh-place-compose
- repository
- https://github.com/thomasdavis/alpha-c-mesh
1# @ajax/mesh-place-compose 2 3Moving a placed program's bytes: its state regions read and written through the view 4(`mpc_read_state`, `mpc_write_state`), its frame parts gathered from the output regions and scattered 5into a show buffer (`mpc_gather`, `mpc_scatter`, `mpc_sys_nibbles`), and the Composer (`mpc_add`), which 6matches the parts of a frame arriving from several machines and yields the frame only once it has every 7part (older incomplete frames are dropped; at most 8 kept). 8 9## Ported from 10 11[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) `crates/mesh-host/src/place.rs`: 12`read_state`, `write_state`, `gather`, `scatter`, `sys_nibbles`, `Composer`, `Whole`, `PENDING`. 13 14## Tests 15 16`tests/compose.c`: the Rust's `gather_scatter_state` and `composer_matches_frames`. 17 18## Licence 19 20MIT. See the repository's LICENSE.