Skip to content

Use VM-owned values for hosted string operations - #138

Merged
gak merged 6 commits into
mainfrom
codex/rustia-hosted-string-values
Nov 28, 2026
Merged

gak merged 6 commits into
mainfrom
codex/rustia-hosted-string-values

Conversation

@gak

@gak gak commented Nov 27, 2026

Copy link
Copy Markdown
Member

Refs #89. Stacked on #136.

Hosted emission uses adapter operations for numeric-for coercion and interpolation, letting VM-owned strings remain in the VM. Standalone emission retains its original adapter expressions. The Rustia VM admits concatenation result storage before extending the output bytes and recalculates planned repetition growth after quota collection.

Native argument inspection also identifies ignored arguments for the supported string builtins. An embedder can evaluate every argument in source order and transfer only the values the builtin consumes, while honoring a checked arity ceiling.

The hosted emitter tests, VM quota regressions, compiler string tests, and validated push passed. This slice applies to the named operations and leaves wider instruction and allocation parity open.

@gak
gak changed the base branch from codex/rustia-split-memory-admission to main November 28, 2026 02:27
@gak
gak marked this pull request as ready for review November 28, 2026 02:27
@gak
gak merged commit f913493 into main Nov 28, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant