-
Notifications
You must be signed in to change notification settings - Fork 48
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
Mutable memory #318
Mutable memory #318
Conversation
BTW, the previous failure, |
yeah, the tests now fail quite often and I believe this is all caused by the new z3 |
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.
Aside from the unfortunate proliferation of type parameters this is surprisingly clean. I had expected integrating St to be more involved tbh. Really nice work <3.
I wonder if it's possible to add some type aliases or newtypes or something to tidy up some of the clutter?
src/EVM.hs
Outdated
if srcOffset' >= fromIntegral (BS.length b) then | ||
BS.replicate (fromIntegral size') 0 | ||
else | ||
BS.take (fromIntegral size') $ | ||
padRight (fromIntegral size') $ | ||
BS.drop (fromIntegral srcOffset') b |
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.
can we use tryFrom
/ into
here?
46cf074
to
b49c7c5
Compare
d4f63b7
to
f565d5b
Compare
What's left to do here? I have a bunch of larger changes I wanna make and I'd like to get this in first to avoid more merge work for you @arcz |
I think it's ready, I'm rebasing it on main atm |
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 think this looks great. No comments. IMO we can merge as soon as CI passes here.
Description
Closes #292.
Checklist