Generate contents of decodePrimitive automatically#278
Generate contents of decodePrimitive automatically#278roconnor-blockstream merged 1 commit intomasterfrom
Conversation
The new generation code isn't exactly the same as the orginal code. There is no optimistic lifting out of a seconde decoding (code2 variable). Such optimizations could be added back in if wanted, but it is probably best to keep the code straightforward. The decodePrimitive is already being tested by the "Serialization.C" tests in the Haskell test suite via FFI bindings.
|
Fixes #195. @apoelstra you are going to need to update CI to run As noted above, when the generated code is not identical to the original code. I suggest something like |
uncomputable
left a comment
There was a problem hiding this comment.
ACK de799bd I manually compared the old and new files and they seem to do the same thing.
I'll see what I can do. Inside the nix sandbox I don't have the git repo. Though of course I can run Having said that, checking this by hand I see:
|
|
@apoelstra |
|
Oh, yes, sorry, I was invoking |
|
Updated my local CI with an exact diff check. If this starts failing I will explore ways to make it more flexible. |
|
Don't you already have your CI comparing the output of |
The new generation code isn't exactly the same as the orginal code. There is no optimistic lifting out of a seconde decoding (code2 variable). Such optimizations could be added back in if wanted, but it is probably best to keep the code straightforward.
The decodePrimitive is already being tested by the "Serialization.C" tests in the Haskell test suite via FFI bindings.