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

Option and niche optimization in FFI #3015

Open
mversic opened this issue Dec 15, 2022 · 0 comments
Open

Option and niche optimization in FFI #3015

mversic opened this issue Dec 15, 2022 · 0 comments
Assignees
Labels
iroha2-dev The re-implementation of a BFT hyperledger in RUST

Comments

@mversic
Copy link
Contributor

mversic commented Dec 15, 2022

There is no support for converting Option<T> for types which have no niche optimization.

There is some basic support for niche optimizations in FFI, often times inadequate. A good example of this is NumericValue which had to be marked as opaque because of a very specific issue where &T has a niche value but out pointer of Option<&T> doesn't. This is and issue specific for for NonLocals which are Cloned (such as NumericValue)

@mversic mversic added the iroha2-dev The re-implementation of a BFT hyperledger in RUST label Dec 15, 2022
@mversic mversic self-assigned this Dec 15, 2022
mversic added a commit to mversic/iroha that referenced this issue Mar 29, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
mversic added a commit to mversic/iroha that referenced this issue Mar 29, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
mversic added a commit to mversic/iroha that referenced this issue Mar 30, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
mversic added a commit to mversic/iroha that referenced this issue Mar 30, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
mversic added a commit to mversic/iroha that referenced this issue Mar 30, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
mversic added a commit to mversic/iroha that referenced this issue Mar 30, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
mversic added a commit to mversic/iroha that referenced this issue Mar 30, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
mversic added a commit to mversic/iroha that referenced this issue Mar 30, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
mversic added a commit to mversic/iroha that referenced this issue Mar 30, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
mversic added a commit to mversic/iroha that referenced this issue Mar 31, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
mversic added a commit to mversic/iroha that referenced this issue Mar 31, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
mversic added a commit to mversic/iroha that referenced this issue Apr 1, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
mversic added a commit to mversic/iroha that referenced this issue Apr 1, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
mversic added a commit to mversic/iroha that referenced this issue Apr 7, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
mversic added a commit to mversic/iroha that referenced this issue Apr 7, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
mversic added a commit to mversic/iroha that referenced this issue Apr 12, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
mversic added a commit to mversic/iroha that referenced this issue Apr 12, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
mversic added a commit to mversic/iroha that referenced this issue Apr 12, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
mversic added a commit to mversic/iroha that referenced this issue Apr 12, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
mversic added a commit to mversic/iroha that referenced this issue Apr 12, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
mversic added a commit to mversic/iroha that referenced this issue Apr 12, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
mversic added a commit to mversic/iroha that referenced this issue Apr 13, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
mversic added a commit to mversic/iroha that referenced this issue Apr 13, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
mversic added a commit to mversic/iroha that referenced this issue Apr 13, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
mversic added a commit to mversic/iroha that referenced this issue Apr 14, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
mversic added a commit to mversic/iroha that referenced this issue Apr 14, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
mversic added a commit to mversic/iroha that referenced this issue Apr 18, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
mversic added a commit to mversic/iroha that referenced this issue Apr 18, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
mversic added a commit that referenced this issue Apr 20, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
appetrosyan pushed a commit that referenced this issue Jun 5, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
mversic added a commit that referenced this issue Oct 17, 2023
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iroha2-dev The re-implementation of a BFT hyperledger in RUST
Projects
None yet
Development

No branches or pull requests

1 participant