Skip to content

feat(runtime)!: store dynamic containers in the simulator heap - #2148

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/dynamic-containers/store-dynamic-containers-simulator-heap--21a75c95
Oct 26, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/dynamic-containers/store-dynamic-containers-simulator-heap--21a75c95

Conversation

@tignear

@tignear tignear commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Add immutable, interned heap values for dynamic arrays, bounded and unbounded
queues, and associative arrays. The heap helper supports resizing, element
updates, queue operations, ordered traversal and four-state equality. Collection
follows string and object elements, and checkpoints preserve container state.

Intern completed updates so writing equal contents preserves handles and does
not wake value-change event waits. Reject negative array sizes through runtime
fault reporting. The SystemVerilog binding is the next member of this stack.

Validation

Validated this commit independently, without the frontend changes:

  • cargo test --locked -p celox-heap -p celox-runtime -p celox --features celox/systemverilog,celox/cranelift,celox/wasm-runtime --lib: 23 heap, 78 runtime and 231 Celox tests passed.
  • cargo clippy --locked -p celox-heap -p celox-runtime -p celox --features celox/systemverilog,celox/cranelift,celox/wasm-runtime --lib: passed.
  • cargo fmt --all -- --check and git diff --check: passed.

BREAKING CHANGE: native image containers advance to version 45 and serialized
core checkpoints to version 2. Regenerate artifacts produced by older versions.

## Summary

Add immutable, interned heap values for dynamic arrays, bounded and unbounded
queues, and associative arrays. The heap helper supports resizing, element
updates, queue operations, ordered traversal and four-state equality. Collection
follows string and object elements, and checkpoints preserve container state.

Intern completed updates so writing equal contents preserves handles and does
not wake value-change event waits. Reject negative array sizes through runtime
fault reporting. The SystemVerilog binding is the next member of this stack.

## Validation

Validated this commit independently, without the frontend changes:

- `cargo test --locked -p celox-heap -p celox-runtime -p celox --features celox/systemverilog,celox/cranelift,celox/wasm-runtime --lib`: 23 heap, 78 runtime and 231 Celox tests passed.
- `cargo clippy --locked -p celox-heap -p celox-runtime -p celox --features celox/systemverilog,celox/cranelift,celox/wasm-runtime --lib`: passed.
- `cargo fmt --all -- --check` and `git diff --check`: passed.

BREAKING CHANGE: native image containers advance to version 45 and serialized
core checkpoints to version 2. Regenerate artifacts produced by older versions.

Change-Id: I21a75c9528004c0625b60f4263521c2e783f984e
@tignear

tignear commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor Author

This pull request is part of a Mergify stack:

# Pull Request Link
1 feat(runtime)!: store dynamic containers in the simulator heap #2148 👈
2 feat(sv)!: support dynamic arrays queues and associative arrays #2149

@tignear
tignear marked this pull request as ready for review October 26, 2026 12:22
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T12:25:47.804381Z fc1a624 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@tignear tignear added the merge-ready Request merging through Mergify after required checks label Oct 26, 2026
@mergify mergify Bot added the queued Mergify queue entry label Oct 26, 2026
@mergify

mergify Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-10-26 12:46 UTC · Rule: changes · triggered by rule Queue explicitly requested merges
  • ✅ Checks passed · on draft merge queue: checking #2148 on master (d0eff4d) #2150
  • ✅ Merged — 2026-10-26 13:21 UTC · at 42da612ca13f185cba70ed5d3d9261fb0800b1ba · merge

This pull request spent 34 minutes 57 seconds in the queue, including 33 minutes 24 seconds running CI.

Required conditions to merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Lint & Format
    • check-neutral = @github-actions/Lint & Format
    • check-skipped = @github-actions/Lint & Format
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Windows)
    • check-neutral = @github-actions/NAPI Build (Windows)
    • check-skipped = @github-actions/NAPI Build (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Rust Test & NAPI Build
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Ubuntu)
    • check-neutral = @github-actions/JS Test (Ubuntu)
    • check-skipped = @github-actions/JS Test (Ubuntu)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Windows)
    • check-neutral = @github-actions/JS Test (Windows)
    • check-skipped = @github-actions/JS Test (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Conventional Commit title
    • check-neutral = @github-actions/Conventional Commit title
    • check-skipped = @github-actions/Conventional Commit title

@mergify mergify Bot mentioned this pull request Oct 26, 2026
40 of 71 tasks
@mergify
mergify Bot merged commit 42da612 into master Oct 26, 2026
22 of 23 checks passed
@mergify
mergify Bot deleted the stack/tignear/feat/dynamic-containers/store-dynamic-containers-simulator-heap--21a75c95 branch October 26, 2026 13:21
@mergify mergify Bot removed the queued Mergify queue entry label Oct 26, 2026
@mergify mergify Bot mentioned this pull request Oct 26, 2026
43 of 73 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-ready Request merging through Mergify after required checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant