Repository navigation
Support equality-proof arrays in JS and C (#1130) - #1219
Conversation
|
Joint verification of #1215, #1216, #1218, #1219 and #1220 against main commit 0187512:
The cluster-wide corpus gates were not run; this evidence is the local repository gate, actual CLI/compiler runs and actual kernel checks. |
|
Thanks for this, the fix looks right. Equality elements get BOX, which is the layout they already have outside arrays, and datatype elements are unchanged. I checked it on the cluster: repo, ping and test (1527/1527) pass. Perf fails only on benches that fail on main too. A few requests before merging:
|
|
Confirmed the merged corrections: no GUIDE hunk, the Lay header documents open equality endpoints, and |
Fixes #1130.
lay_elnow recognizes equality as a layout-stable primitive Data type, in addition to datatypes. It reuses the existing BOX/zero proof representation; no proof ABI change, heap wrapper, guessed generic layout or unchecked fallback. Equality endpoints may contain erased variables without making the proof representation open. Truly unknown element types still fail loudly.Permanent regression uses a polymorphic equality-proof factory, clone, wrapped get, swap, set and a structural half-array match. It checks that the half has size 2 while the original clone retains size 4 (
204).Verification:
an open Array element type.4on interpreter, emitted JS and native C.204on all three paths.7,16081).bun gates/repo.ts: PASS 49/49.No changes to
bend2/bend.ts; no caps changed.