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

Refactor into Rust #404

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

Refactor into Rust #404

wants to merge 9 commits into from

Conversation

twizmwazin
Copy link
Member

@twizmwazin twizmwazin commented Jun 20, 2024

This is an idea I want to experiment with. Basically the idea is that for each class in claripy, make a native class that becomes its base class. Then, one-by-one translate member variables and methods into the base class until the python class is empty. At each step of the way, keep the whole thing integrated and working (hence this PR, I want to test angr in conjunction with my changes). There's going to probably be little or negative performance gains in the early stages of this, but when large sections (ie, the frontend) are fully translated, that's when a speedup might be noticeable.

When converting, I'm not going to try to aggressively narrow the types on the rust side. Many structs will likely have exclusively PyObjects as their member types. Later we can narrow the allowed types.

@ltfish
Copy link
Member

ltfish commented Jun 20, 2024

Excited!

@twizmwazin twizmwazin force-pushed the feat/rust branch 7 times, most recently from 5c8ff18 to 7036249 Compare June 25, 2024 05:37
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