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

Separate componenet and air trace writers. #651

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

alonh5
Copy link
Contributor

@alonh5 alonh5 commented May 30, 2024

This change is Reviewable

@codecov-commenter
Copy link

codecov-commenter commented May 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.49%. Comparing base (bedd93e) to head (54c6c5b).

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #651      +/-   ##
==========================================
+ Coverage   92.24%   92.49%   +0.25%     
==========================================
  Files          69       69              
  Lines        9050     9025      -25     
  Branches     9050     9025      -25     
==========================================
  Hits         8348     8348              
+ Misses        629      604      -25     
  Partials       73       73              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@shaharsamocha7 shaharsamocha7 left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @alonh5 and @ohad-starkware)


crates/prover/src/core/air/mod.rs line 29 at r1 (raw file):

pub trait AirTraceVerifier {
    fn interaction_elements(&self, channel: &mut Blake2sChannel) -> InteractionElements;
}

What is this trait?
Should this function be a part of the regular Air trait?

Code quote:

pub trait AirTraceVerifier {
    fn interaction_elements(&self, channel: &mut Blake2sChannel) -> InteractionElements;
}

crates/prover/src/core/air/mod.rs line 80 at r1 (raw file):

}

// TODO(AlonH): Rethink this trait.

I think you can remove that

Code quote:

// TODO(AlonH): Rethink this trait.

Copy link
Collaborator

@ohad-starkware ohad-starkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @alonh5)


crates/prover/src/core/air/mod.rs line 38 at r1 (raw file):

    ) -> ComponentVec<CircleEvaluation<B, BaseField, BitReversedOrder>>;

    fn to_air_prover(&self) -> &dyn AirProver<B>;

why dyn here? wouldn't it be a static type in every implementation?

Copy link
Collaborator

@ohad-starkware ohad-starkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @alonh5)


crates/prover/src/core/air/mod.rs line 38 at r1 (raw file):

Previously, ohad-starkware (Ohad) wrote…

why dyn here? wouldn't it be a static type in every implementation?

nevermind you changed it later

Copy link
Collaborator

@ohad-starkware ohad-starkware left a comment

Choose a reason for hiding this comment

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

:lgtm: other than the trait seperation (every Air is an AirVerifier)

Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @alonh5)

Copy link
Contributor Author

@alonh5 alonh5 left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @shaharsamocha7)


crates/prover/src/core/air/mod.rs line 29 at r1 (raw file):

Previously, shaharsamocha7 wrote…

What is this trait?
Should this function be a part of the regular Air trait?

Then AirTraceWriter would also have to be an Air and therefore implement components, which it can't. This is part of the separation we needed.


crates/prover/src/core/air/mod.rs line 80 at r1 (raw file):

Previously, shaharsamocha7 wrote…

I think you can remove that

Done.

@alonh5 alonh5 force-pushed the 05-30-separate_componenet_and_air_trace_writers branch from cb15009 to 54c6c5b Compare June 2, 2024 08:54
@alonh5 alonh5 mentioned this pull request Jun 2, 2024
Copy link
Collaborator

@ohad-starkware ohad-starkware left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: 1 of 2 files reviewed, 2 unresolved discussions (waiting on @shaharsamocha7)

Copy link
Collaborator

@shaharsamocha7 shaharsamocha7 left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @alonh5)

@alonh5 alonh5 force-pushed the 05-30-separate_componenet_and_air_trace_writers branch from 54c6c5b to 11bf7b9 Compare June 13, 2024 08:34
Copy link
Collaborator

@shaharsamocha7 shaharsamocha7 left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @alonh5)

@alonh5 alonh5 merged commit 436acdb into dev Jun 13, 2024
14 checks passed
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.

4 participants