Skip to content

ivy: generalized branches#514

Closed
enricozb wants to merge 5 commits intodevfrom
enricozb/lookup
Closed

ivy: generalized branches#514
enricozb wants to merge 5 commits intodevfrom
enricozb/lookup

Conversation

@enricozb
Copy link
Copy Markdown
Contributor

@enricozb enricozb commented Feb 10, 2026

resolves: #460

Branch nodes are now represented as extrinsic function calls. Specifically, ?(b_0 .. b_i c) becomes @branch(?[b_0 .. b_i] c), where ?[..] is a lookup extrinsic value. This thus removes the need for the Tag::Branch variant.

Lookup extrinsic values can be directly created with the syntax ?[a b .. n], where a b .. n are all nilary and trivially-copyable nodes (lookup nodes also satisfy this).

@github-actions github-actions bot changed the base branch from main to dev February 10, 2026 11:18
@enricozb enricozb changed the title ivy: O(1) branching with Lookup ext vals ivy: generalized branches Feb 10, 2026
@enricozb enricozb force-pushed the enricozb/lookup branch 2 times, most recently from e1c09d4 to 58c12c9 Compare February 16, 2026 10:32
@enricozb enricozb marked this pull request as ready for review February 16, 2026 10:56
@enricozb enricozb requested a review from tjjfvi February 16, 2026 10:56
@tjjfvi
Copy link
Copy Markdown
Member

tjjfvi commented Apr 10, 2026

integrated into #545

@tjjfvi tjjfvi closed this Apr 10, 2026
@tjjfvi tjjfvi deleted the enricozb/lookup branch April 10, 2026 17:04
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.

ivm: generalized branches

2 participants