Repository navigation
docs(roadmap): guests reach host objects by handle, and copy only what they read - #1092
Merged
Merged
Conversation
…t they read ARIADNE_SCRIPTING_HOSTS.md 8.4.1: a volume, a mesh, a heightfield or a city bundle crosses to a guest as a handle into the instance's table, as (state-data-get) already returns a data_object in the DSL. data_info reads the metadata; volume_read / volume_sample / mesh_read / heightfield_read copy only the region asked for, straight into the guest's memory; host functions take and return handles, so a control-logic guest need never copy at all. Reads are charged by the byte at data_job's rate, and imports: gains data.read / data.write (8.6). Risk 11 narrows to measuring a read.
transfix
enabled auto-merge (squash)
November 9, 2026 07:23
transfix
added a commit
that referenced
this pull request
Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Docs only. This adds
docs/roadmap/ARIADNE_SCRIPTING_HOSTS.md§8.4.1, "Host objects: handles, and copies of only what is read". It replaces §8.4's "a volume or a mesh is copied between memories" with a handle design for the guest ABI. It is a proposal for review; nothing is built.The design follows what the DSL already does. On a node holding a host object,
(state-data-get path)returns an opaquedata_object(a shared pointer to the payload) and copies nothing.data_objectcrossing to a guest becomes a tagged CBOR integer: a handle into the instance's table.handle_dropreleases one, and the table goes with the instance.data_info(h)returns the type, dimensions, voxel type, bounds and counts.volume_read,volume_sample,mesh_readandheightfield_readcopy only the requested region, as raw typed arrays straight into a buffer the guest allocated.volume_write, andvolume_newplusstate_data_setto publish a new object.call, so a control-logic guest never copies the data at all.data_job's rate, so they count against the gas cap and the frame budget.imports:gainsdata.read/data.write(§8.6).data_infoand the readers come with G1's ABI; the writers and more object kinds follow as guests need them.#1091 edits other parts of the same file (the status lines, §3.1, §8.3 and the P1b/L1/G1 rows). The hunks don't overlap.