-
Notifications
You must be signed in to change notification settings - Fork 160
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
Fix CairoPie
serialization.
#1444
Conversation
Benchmark Results for unmodified programs 🚀
|
Codecov Report
@@ Coverage Diff @@
## main #1444 +/- ##
========================================
Coverage 96.98% 96.99%
========================================
Files 93 93
Lines 38637 38782 +145
========================================
+ Hits 37474 37618 +144
- Misses 1163 1164 +1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
||
for value in values { | ||
match value { | ||
MaybeRelocatable::RelocatableValue(_) => todo!(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Program data should never be other than Int
anyway AFAIK. I'd like to convert it to Felt
eventually rather than MaybeRelocatable
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice @azteca1998 !
I think that with some little changes we will be good to go
pub memory: CairoPieMemory, | ||
pub execution_resources: ExecutionResources, | ||
pub additional_data: HashMap<String, BuiltinAdditionalData>, | ||
pub version: CairoPieVersion, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if it is possible, but can we use a String type for the version field.
Plus add a constant with the CairoPieVersion String, so it is easy to change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While it is possible, it'd need to be initialized every time the CairoPie object is created. Having it as it is now this cannot happen because the version field is zero-sized.
The constant is easy. Fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
Fix
CairoPie
serializationDescription
See #1443 for details.
Checklist