Skip to content

Gate 2: establish heap-free aggregate layouts - #8

Merged
hiroki23 merged 1 commit into
mainfrom
feat/gate-two-aggregates
Aug 28, 2026
Merged

Gate 2: establish heap-free aggregate layouts#8
hiroki23 merged 1 commit into
mainfrom
feat/gate-two-aggregates

Conversation

@hiroki23

Copy link
Copy Markdown
Contributor

Summary

  • reframe TypeRB Native as a sustained implementation effort while retaining
    experimental API and artifact stability
  • stage Gate 2 around heap-free records and tagged values, moving dynamic
    allocation concerns to Gate 3
  • pre-register Gate 2 correctness and performance targets in issue Gate 2: heap-free aggregate value model #7
  • add nominal aggregate definitions and deterministic Darwin arm64 layout
    computation for records and tagged values
  • reject recursive, missing, duplicate, oversized, or otherwise invalid layouts
    with deterministic diagnostics

Verification

  • trb fmt --check .
  • trb check
  • TYPE_RB_NATIVE_ROOT="$PWD" trb test (26 tests, 0 failures)

This is the first Gate 2 implementation slice. It establishes the backend-neutral
layout contract before Native MIR and QBE aggregate lowering are added.

Closes no issue; #7 remains open until the complete Gate 2 checkpoint is
measured and reported.

@hiroki23
hiroki23 merged commit 3298902 into main Aug 28, 2026
1 check passed
@hiroki23
hiroki23 deleted the feat/gate-two-aggregates branch August 28, 2026 06:45
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