Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generics mini overhaul #798

Merged
merged 1 commit into from
Jan 13, 2024
Merged

Generics mini overhaul #798

merged 1 commit into from
Jan 13, 2024

Conversation

MicroProofs
Copy link
Member

@MicroProofs MicroProofs commented Jan 13, 2024

fix: generic edge case with tuples that allowed 2 tuples and 3 tuples to use the same monomorphized function.

Also massively reduced the space taken up by generics in scripts when using generics with list and tuples. The difference is that before using a generic with a tuple or list would create a unique variant based on the lists inner types. In practice list and tuples are opaque when used as generics so only a single list or tuple or pair variant is needed.

Add test 69 for showing an edge case that failed under the previous generic system.

Minor fix for bls types where in generics they were incorrectly assumed to be data.

… to use the same monomorphized function.

Also massively reduced the space taken up by generics in scripts when using generics with list and tuples
@MicroProofs MicroProofs marked this pull request as ready for review January 13, 2024 21:37
@MicroProofs MicroProofs requested a review from a team as a code owner January 13, 2024 21:37
@MicroProofs MicroProofs merged commit c7af27a into main Jan 13, 2024
2 checks passed
@MicroProofs MicroProofs deleted the generic-fix-tuples branch January 13, 2024 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🚀 Released
Development

Successfully merging this pull request may close these issues.

1 participant