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

feat: rust vm hints #412

Merged
merged 13 commits into from
Jan 16, 2025
Merged

feat: rust vm hints #412

merged 13 commits into from
Jan 16, 2025

Conversation

enitrat
Copy link
Collaborator

@enitrat enitrat commented Jan 13, 2025

Adds most common hints to run the tests in the Rust VM.

@enitrat enitrat force-pushed the feat/rust-vm-hints branch from 4134980 to 8876982 Compare January 13, 2025 16:21
@enitrat enitrat marked this pull request as ready for review January 13, 2025 16:21
@enitrat enitrat force-pushed the feat/rust-vm-hints branch 2 times, most recently from 8069a95 to e629b46 Compare January 13, 2025 17:00
@enitrat enitrat requested review from Eikix and obatirou January 14, 2025 08:36
@enitrat enitrat force-pushed the feat/rust-vm-hints branch from 6d3b961 to 0494085 Compare January 14, 2025 14:00
@enitrat enitrat force-pushed the feat/rust-vm-hints branch 2 times, most recently from 4079651 to 91d2d79 Compare January 16, 2025 10:22
@enitrat enitrat requested a review from ClementWalter January 16, 2025 14:40
@enitrat enitrat force-pushed the feat/rust-vm-hints branch from 26f6ba7 to 17e896e Compare January 16, 2025 14:41
@@ -103,11 +88,14 @@ def test_nibble_list_to_compact_should_raise_when_wrong_remainder(
),
cairo_error(message="nibble_list_to_compact: invalid remainder"),
):
cairo_run("nibble_list_to_compact", x, is_leaf)
# Always run patch_hint tests with the python VM
Copy link
Member

Choose a reason for hiding this comment

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

we need to think about a solution for this for ok for now

Copy link
Member

Choose a reason for hiding this comment

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

note: one could put all the imports at the module level and no imports in the hints because the whole module is loaded so they would be available at runtime, but I think that it's also good to keep the module imports at the minimum required to define a hint

Copy link
Member

@ClementWalter ClementWalter left a comment

Choose a reason for hiding this comment

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

ok to merge but I'd like to better organize rust VS python hints, probably in their own crates/workspace package

@ClementWalter ClementWalter merged commit 096c1b6 into main Jan 16, 2025
4 checks passed
@ClementWalter ClementWalter deleted the feat/rust-vm-hints branch January 16, 2025 16:09
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