Repository navigation
packed@1, laid out by the schema's types - #27
Merged
Merged
Conversation
added 3 commits
October 25, 2026 09:20
The simulator's values are untyped JSON and packed@1 puts no tags on the wire, so the schema's types drive the runtime's own Packed serializer and deserializer (via Packed::decode_seed): the bytes are the ones a generated peer writes. - packed@1 is the default codec for a new connection; a saved link with no wireFormat still opens as JSON. - TypeDef::Alias, so an alias resolves to its target. - The engine, the frame inspector and the compare matrix (now 7 combos) all lay bodies out by the called function's arguments / return type or the raised error's fields. - A reply that doesn't fit the declared type faults instead of hanging.
The playground sends a call's arguments named, and behaviours and scripts read them by name (params.text). packed@1 now takes them named or in order, and decodes them named, so every format shows the same shape.
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.
Codec::Packed(packed@1), the default for new connections. A saved link with nowireFormatstill opens as JSON.packed@1carries no tags, so the newpackedmodule drives the runtime's ownPackedserializer and deserializer from the schema's types. A test checks the bytes match a#[derive(Serialize)]Rust mirror, and the documentedPlayerexample encodes to 19 bytes.TypeDef::Alias: aliases resolve to their target.Pin:
comline-runtimeis at runtime#28's merge (6a208d7).