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

Dori/ec op builtin #1657

Merged
merged 1 commit into from
Jan 9, 2023
Merged

Dori/ec op builtin #1657

merged 1 commit into from
Jan 9, 2023

Conversation

dorimedini-starkware
Copy link
Contributor

@dorimedini-starkware dorimedini-starkware commented Jan 5, 2023

This change is Reviewable

@dorimedini-starkware dorimedini-starkware self-assigned this Jan 5, 2023
@dorimedini-starkware dorimedini-starkware changed the base branch from main to dori/implement-ec-finalize-state January 5, 2023 11:34
@dorimedini-starkware dorimedini-starkware force-pushed the dori/ec-op-builtin branch 2 times, most recently from 4661750 to 4a55e27 Compare January 5, 2023 12:24
@dorimedini-starkware dorimedini-starkware force-pushed the dori/ec-op-builtin branch 2 times, most recently from 4878b02 to cd06fc3 Compare January 8, 2023 15:19
@dorimedini-starkware dorimedini-starkware force-pushed the dori/implement-ec-finalize-state branch 2 times, most recently from 0e7c5a8 to 143306b Compare January 8, 2023 16:40
@dorimedini-starkware dorimedini-starkware force-pushed the dori/implement-ec-finalize-state branch 3 times, most recently from 091ae24 to 67329b0 Compare January 8, 2023 16:59
@dorimedini-starkware dorimedini-starkware changed the base branch from dori/implement-ec-finalize-state to main January 8, 2023 17:07
@dorimedini-starkware dorimedini-starkware force-pushed the dori/ec-op-builtin branch 2 times, most recently from 8548774 to 1d3f217 Compare January 8, 2023 17:58
Copy link
Collaborator

@orizi orizi left a comment

Choose a reason for hiding this comment

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

Reviewed 13 of 13 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware)


crates/cairo-lang-starknet/src/db.rs line 19 at r1 (raw file):

    // Override implicit precedence for compatibility with the StarkNet OS.
    db.set_implicit_precedence(Arc::new(
        ["Pedersen", "RangeCheck", "Bitwise", "GasBuiltin", "System", "EcOp"]

this is certainly not the correct order.
i think it is:

Suggestion:

        ["Pedersen", "RangeCheck", "Bitwise", "EcOp", "GasBuiltin", "System"]

Copy link
Collaborator

@orizi orizi 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 @dorimedini-starkware)


crates/cairo-lang-sierra/src/extensions/modules/builtin_cost.rs line 49 at r1 (raw file):

            CostTokenType::Step => panic!("offset_in_builtin_costs is not supported for 'Step'."),
            CostTokenType::Pedersen => 0,
            CostTokenType::EcOp => 2,

why did you decide on this number?

Code quote:

            CostTokenType::EcOp => 2,

Copy link
Contributor Author

@dorimedini-starkware dorimedini-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 @orizi)


crates/cairo-lang-sierra/src/extensions/modules/builtin_cost.rs line 49 at r1 (raw file):

Previously, orizi wrote…

why did you decide on this number?

because I'm prepping for this to be merged first


crates/cairo-lang-starknet/src/db.rs line 19 at r1 (raw file):

Previously, orizi wrote…

this is certainly not the correct order.
i think it is:

Done. Where can I see the correct order?

Copy link
Contributor Author

@dorimedini-starkware dorimedini-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: 11 of 13 files reviewed, 2 unresolved discussions (waiting on @orizi)


crates/cairo-lang-sierra/src/extensions/modules/builtin_cost.rs line 49 at r1 (raw file):

Previously, dorimedini-starkware wrote…

because I'm prepping for this to be merged first

And actually, I just assumed sequential is fine. Where can I see the actual builtin cost buffer values?

Copy link
Collaborator

@orizi orizi 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 r2, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @dorimedini-starkware)


crates/cairo-lang-sierra/src/extensions/modules/builtin_cost.rs line 49 at r1 (raw file):

Previously, dorimedini-starkware wrote…

And actually, I just assumed sequential is fine. Where can I see the actual builtin cost buffer values?

It will be created in the OS, so this is fine


crates/cairo-lang-starknet/src/db.rs line 19 at r1 (raw file):

Previously, dorimedini-starkware wrote…

Done. Where can I see the correct order?

In the OS and in lamdaclass code

Copy link
Contributor Author

@dorimedini-starkware dorimedini-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: 9 of 13 files reviewed, 1 unresolved discussion (waiting on @orizi)


crates/cairo-lang-starknet/src/db.rs line 19 at r1 (raw file):

Previously, orizi wrote…

In the OS and in lamdaclass code

Done.

Copy link
Collaborator

@orizi orizi 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 4 of 4 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @dorimedini-starkware)

@dorimedini-starkware dorimedini-starkware force-pushed the dori/ec-op-builtin branch 2 times, most recently from 17699a8 to 88b7a87 Compare January 9, 2023 08:36
Signed-off-by: Dori Medini <dori@starkware.co>

commit-id:35a8c1e6
Copy link
Collaborator

@orizi orizi left a comment

Choose a reason for hiding this comment

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

Reviewed 3 of 3 files at r4, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @dorimedini-starkware)

@dorimedini-starkware dorimedini-starkware merged commit 0cc4760 into main Jan 9, 2023
@dorimedini-starkware dorimedini-starkware deleted the dori/ec-op-builtin branch January 9, 2023 15:54
@0xNonCents 0xNonCents mentioned this pull request Jan 9, 2023
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.

None yet

2 participants