Skip to content

core/mir/codegen: add StackBuffer<const N: usize> stack-allocated byte buffer - #2122

Open
sbillig wants to merge 2 commits into
argotorg:masterfrom
sbillig:feat/stack-byte-buffers
Open

sbillig wants to merge 2 commits into
argotorg:masterfrom
sbillig:feat/stack-byte-buffers

Conversation

@sbillig

@sbillig sbillig commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add StackBuffer<const N: usize> in ingots/core/src/ptr.fe backed by fixed-size stack storage without heap allocation or deallocation.
  • Add MIR runtime representation/lowering and Sonatina native/Wasm codegen support (crates/hir, crates/mir, crates/codegen).

Testing

  • Added borrow and view escape uitests (stack_buffer_borrow_escape, stack_buffer_view_escape), native_backend IR tests, fe_test/stack_buffer.fe, and native_runtime execution tests.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T18:15:36.502408Z 879f500 PR opened
ℹ️ 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.

This branch has not been deployed

No deployments
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