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

[AIP-105][Discussion] Value manipulation move stdlib native utilities #529

Open
thepomeranian opened this issue Nov 13, 2024 · 0 comments
Open

Comments

@thepomeranian
Copy link
Collaborator

AIP Discussion

Summary

This AIP covers adding a set of new native functions, for value manipulation, that improve functionality and performance:

  • mem::swap - Swaps contents of two mutable references.
  • vector::move_range - (efficiently) Moves range of elements from one vector to another vector at specific position, keep the order of the rest of the elements.
  • cmp::compare - Compares two move values of the same type.
  • bcs::constant_serialized_size - If the type has known constant (always the same, independent of instance) serialized size in BCS format, allows obtaining it.

Out of scope

Only above utility functions are within scope.

Read more about it here: https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-105.md

@thepomeranian thepomeranian changed the title [AIP-105][Discussion] [AIP-105][Discussion] Value manipulation move stdlib native utilities Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant