-
Notifications
You must be signed in to change notification settings - Fork 6
Next DO NOT MERGE #138
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
Draft
mariari
wants to merge
17
commits into
main
Choose a base branch
from
next
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Next DO NOT MERGE #138
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
V0.7.0 introduces the Digest types and converts Vecs into fixed sized arrays
This reduces the amount of typing slightly with no functional change
This allows us to decode directly into a Binary saving us if we wish to convert it to some other type than always going through Vec<u8> which will encur another copy
This is helpful as often we need to serialize bincode data, and having a uniform way to handle the error type lets us not worry about doing these conversions by hand.
Unwraps that don't change signatures are now converted to being safer. However this is not everything and further work is required. Namely tests are not converted, this would normally be fine, but tests are exported to Elixir and thus have a chance to crash the VM. Further functions like: tests::create_an_action Have non Result outputs, meaning greater refactoring is required to handle these.
rustler is already imported so rustler:: only adds noise This is it's own topic as this is not related to any of the other changes I've done
This allows us to encode and decode Option<T>
Before it would mix the None and Some decoding, however using the Option<T> decoder fixes this for you
Doing this improperly can crash the Erlang VM. Every instnace of this where the end type is a result type or something analygous (like the Term<'a> type) now is expectless. More work needs to be done for functions that do not fit this architype which is 13 methods in arm/src
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Please use this topic for seeing how the various topics I've been writing can fit into a release.
Next contains some evil commits which can be squashed into the merge right before them.
If you have any issues or questions before cutting a release don't be afraid to ask.
Also feel free to add your own topics into this