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

Type def ColumnVec. #371

Merged
merged 1 commit into from
Feb 21, 2024
Merged

Type def ColumnVec. #371

merged 1 commit into from
Feb 21, 2024

Conversation

alonh5
Copy link
Contributor

@alonh5 alonh5 commented Feb 21, 2024

This change is Reviewable

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.

Reviewed 5 of 6 files at r1, all commit messages.
Reviewable status: 5 of 6 files reviewed, all discussions resolved (waiting on @spapinistarkware)


src/core/mod.rs line 15 at r1 (raw file):

pub mod utils;

pub type ColumnVec<T> = Vec<Vec<T>>;

Looks good, but here's a problem that I've encountered dealing with these type_defs:
you never want to clone them, so if they're not pre-aggregated, you get &[&[F]] types,
idk if that's bad code on my part, but maybe you should consider covering these cases:
e.g.

}

Code snippet:

pub fn foo(arr: &ColumnVec<M31>){}

pub fn bar(){
let arr = vec![[M31::from_u32_unchecked(1); 10]; 10];

foo(&arr); <--- won't compile

ohad-starkware
ohad-starkware previously approved these changes Feb 21, 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.

Reviewed 1 of 6 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @spapinistarkware)

@alonh5 alonh5 force-pushed the 02-21-Type_def_ColumnVec branch from 0fdcd83 to c9ddd62 Compare February 21, 2024 10:12
@alonh5 alonh5 force-pushed the 02-20-max_constraint_log_degree_bound_in_Air_trait branch from 29d7340 to 18c1867 Compare February 21, 2024 11:06
@alonh5 alonh5 force-pushed the 02-21-Type_def_ColumnVec branch from c9ddd62 to c3ff7d6 Compare February 21, 2024 11:06
@alonh5 alonh5 force-pushed the 02-20-max_constraint_log_degree_bound_in_Air_trait branch from 18c1867 to d3ce76e Compare February 21, 2024 12:49
@alonh5 alonh5 force-pushed the 02-21-Type_def_ColumnVec branch from c3ff7d6 to 0cabdd2 Compare February 21, 2024 12:49
@alonh5 alonh5 force-pushed the 02-20-max_constraint_log_degree_bound_in_Air_trait branch from d3ce76e to e5dbbab Compare February 21, 2024 12:54
@alonh5 alonh5 force-pushed the 02-21-Type_def_ColumnVec branch from 0cabdd2 to 41cb5b2 Compare February 21, 2024 12:54
@alonh5 alonh5 force-pushed the 02-20-max_constraint_log_degree_bound_in_Air_trait branch from e5dbbab to 2c715a7 Compare February 21, 2024 13:10
@alonh5 alonh5 changed the base branch from 02-20-max_constraint_log_degree_bound_in_Air_trait to dev February 21, 2024 13:23
@alonh5 alonh5 dismissed ohad-starkware’s stale review February 21, 2024 13:23

The base branch was changed.

@alonh5 alonh5 force-pushed the 02-21-Type_def_ColumnVec branch from 41cb5b2 to 278dd96 Compare February 21, 2024 13:23
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:

Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @spapinistarkware)

@alonh5 alonh5 merged commit 672ed84 into dev Feb 21, 2024
7 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.

2 participants