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

[experiment] Remove PROGRAM_SIZE from type #587

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

mcalancea
Copy link
Collaborator

@mcalancea mcalancea commented Nov 13, 2024

naure:

@@ -152,10 +152,10 @@ impl<E: ExtensionField> ZKVMConstraintSystem<E> {
config
}

pub fn register_table_circuit<TC: TableCircuit<E>>(&mut self) -> TC::TableConfig {
pub fn register_table_circuit<TC: TableCircuit<E>>(&mut self, tc: TC) -> TC::TableConfig {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There could be a convenience method (original name) that uses Default (if implemented) and a new one with the parameter.

impl<TC>where TC::TableConfig: Default {
    pub fn register_table_circuit() {
        let tc = Default::default();}

impl<TC>{
    pub fn register_table_circuit_param(, tc: TC) {}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This way there is no need to change every call.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 agreed, got a bit carried away there

@naure naure requested a review from hero78119 November 15, 2024 11:30
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.

2 participants