Skip to content

Conversation

@benbencik
Copy link

@benbencik benbencik commented Oct 8, 2025

Description

This PR adds SmallFp, a procedural macro for instantiating prime fields with modulus < 2^127 using native integer types (u8, u16, u32, u64, u128).

Closes: #1038

This work was done in collaboration with @z-tech

@benbencik benbencik marked this pull request as ready for review October 9, 2025 10:07
@benbencik benbencik requested review from a team as code owners October 9, 2025 10:07
@benbencik benbencik requested review from Pratyush and z-tech and removed request for a team October 9, 2025 10:07
@benbencik benbencik requested a review from mmagician October 9, 2025 10:07
@z-tech z-tech requested review from mmaker and weikengchen October 14, 2025 11:41
@z-tech z-tech changed the title Small field implementation Ark-ff Small Field Support Oct 14, 2025
@Pratyush
Copy link
Member

Hm I would like to review this PR, but the current scope is quite massive. Is it possible to break it up into smaller PRs? E.g., first adding the backend, then adding the macros, then adding impls, or something similar?

@z-tech
Copy link
Contributor

z-tech commented Oct 15, 2025

Hm I would like to review this PR, but the current scope is quite massive. Is it possible to break it up into smaller PRs? E.g., first adding the backend, then adding the macros, then adding impls, or something similar?

No problem. We'll try to cut it up into a few chunks for reviewing.

@benbencik
Copy link
Author

Hm I would like to review this PR, but the current scope is quite massive. Is it possible to break it up into smaller PRs? E.g., first adding the backend, then adding the macros, then adding impls, or something similar?

Hello, I added the following temporary PRs:

The CI fails in the last two PRs because we are missing the arithmetic implementation or the trait definition. When all of the changes are combined, the CI (including extended tests) passes successfully.

@z-tech
Copy link
Contributor

z-tech commented Oct 16, 2025

@Pratyush we're also happy to meet and explain the logical flow when/ if helpful.

Same for @weikengchen @mmaker (or any maintainers) if interested in reviewing just let us know.

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.

3 participants