This repository has been archived by the owner on Mar 20, 2024. It is now read-only.
forked from move-language/move
-
Notifications
You must be signed in to change notification settings - Fork 32
Investigate and implement sui-specific native calls #411
Labels
Comments
brson
added
enhancement
New feature or request
help wanted
Extra attention is needed
labels
Feb 1, 2024
Seems like there are two parts to it
|
For step#1. Comparing all the files.
Seems like move/move-stdlib has one extra file event.rs Comparing for presence of methods in these files. Methods should at least have the same signature.
|
There are two native functions that are absent in move-language/move(after checking out @brson's updated branch) // from crates/mysten-util-mem/src/allocators.rs
// Linux/BSD call system allocator (currently malloc).
pub unsafe extern "C" fn malloc_usable_size(_ptr: *const c_void) -> usize // from crates/mysten-util-mem/src/malloc_size.rs
pub type VoidPtrToSizeFn = unsafe extern "C" fn(ptr: *const c_void) -> usize This is used for calling size_of for various allocations. All the various size_of implementations are in https://github.com/MystenLabs/sui/tree/main/crates/mysten-util-mem. Do we still want to implement(import) them in move-native? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We are in the process of migrating to the sui codebase. There are likely new native function calls on sui that we do not implement, either in
std
or in their ownsui
library.Look into this and see what we need to add to
move-native
to make this work.If there are natives called by
sui
directly they should probably live in a newsui
module inside ofmove-native
, as the calls used bystd
live in a correspondingstd
module.The text was updated successfully, but these errors were encountered: