Skip to content

The library facade takes its core modules from where they went - #701

Merged
gHashTag merged 1 commit into
mainfrom
feat/trinity-facade
Aug 11, 2026
Merged

gHashTag merged 1 commit into
mainfrom
feat/trinity-facade

Conversation

@gHashTag

Copy link
Copy Markdown
Owner

src/trinity.zig imported bigint.zig, packed_trit.zig, hybrid.zig and vsa/core.zig — four files that 42490a2 moved into gHashTag/zig-hdc and gHashTag/zig-golden-float without moving the references. It is the library root, so three targets root it and all three failed.

The aliasing was decided by a symbol test, and the names would have led the wrong way: golden-float exports bigint, and that name points at its ternary/hybrid.zig, while the actual big-integer module is exported as ternary_primitives.

Checked against every re-export in the file:

needs from result
16 VSA names (bind…vectorNorm) zig-hdc-vsa all present
TVCBigInt golden_float.ternary_primitives present
PackedBigInt golden_float.packed_trit present
HybridBigInt, Trit, MAX_TRITS, TRITS_PER_BYTE golden_float.bigint (which is hybrid) all present

vsa/agent.zig is no longer re-exported. Its five parts have never been tracked here and are not in zig-hdc either, where the same facade was withdrawn last night. Nothing referenced vsa_agent — this removes a name nobody could resolve, not a capability anybody had.

Reachable missing files: 13 → 10.

src/trinity.zig imported bigint.zig, packed_trit.zig, hybrid.zig and
vsa/core.zig -- four files that 42490a2 moved into gHashTag/zig-hdc and
gHashTag/zig-golden-float without moving the references. It is the library root,
so three separate targets root it and all three failed.

The aliasing was decided by a symbol test rather than by names, and the names
would have led the wrong way: golden-float exports `bigint`, and that name
points at its ternary/hybrid.zig, while the actual big-integer module is
exported as `ternary_primitives`. Checked against every re-export in this file,
zig-hdc's vsa module carries all sixteen VSA names, golden-float carries
TVCBigInt, PackedBigInt, HybridBigInt, Trit, MAX_TRITS and TRITS_PER_BYTE.

vsa/agent.zig is not re-exported any more. Its five parts have never been
tracked here and are not in zig-hdc either, where the same facade was withdrawn
last night. Nothing in this file referenced vsa_agent, so this removes a name
nobody could resolve rather than a capability anybody had.

Reachable missing files drop from thirteen to ten.
@gHashTag
gHashTag merged commit bc20dc4 into main Aug 11, 2026
20 of 34 checks passed
@gHashTag
gHashTag deleted the feat/trinity-facade branch August 11, 2026 19:06
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