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

Ported the implementation of binary search from Rust <=1.81 to Soroban #1477

Merged
merged 2 commits into from
Oct 21, 2024

Conversation

dmkozh
Copy link
Contributor

@dmkozh dmkozh commented Oct 21, 2024

What

Ported the implementation of binary search from Rust <=1.81 to Soroban env.

Why

This is necessary for 2 reasons:

  • Fix the immediate issue of CI failing due to observation divergence in Rust 1.82 caused by the binary search implementation change
  • Protect ourselves from the similar issues in the future - we were effectively observing the stdlib implementation and that's incorrect and risky in the long term.

Known limitations

N/A

…n env.

This is necessary for 2 reasons:

- Fix the immediate issue of CI failing due to observation divergence in Rust 1.82 caused by the binary search implementation change
- Protect ourselves from the similar issues in the future - we were effectively observing the stdlib implementation and that's incorrect and risky in the long term.
@graydon graydon added this pull request to the merge queue Oct 21, 2024
@dmkozh dmkozh removed this pull request from the merge queue due to a manual request Oct 21, 2024
@dmkozh dmkozh enabled auto-merge October 21, 2024 20:43
@dmkozh dmkozh added this pull request to the merge queue Oct 21, 2024
Merged via the queue into stellar:main with commit ee8afb3 Oct 21, 2024
12 checks passed
@dmkozh dmkozh deleted the binary_search branch October 21, 2024 21:07
dmkozh added a commit that referenced this pull request Oct 24, 2024
#1477)

### What

Ported the implementation of binary search from Rust <=1.81 to Soroban
env.

### Why

This is necessary for 2 reasons:

- Fix the immediate issue of CI failing due to observation divergence in
Rust 1.82 caused by the binary search implementation change
- Protect ourselves from the similar issues in the future - we were
effectively observing the stdlib implementation and that's incorrect and
risky in the long term.

### Known limitations

N/A
graydon pushed a commit that referenced this pull request Oct 24, 2024
#1477)

### What

Ported the implementation of binary search from Rust <=1.81 to Soroban
env.

### Why

This is necessary for 2 reasons:

- Fix the immediate issue of CI failing due to observation divergence in
Rust 1.82 caused by the binary search implementation change
- Protect ourselves from the similar issues in the future - we were
effectively observing the stdlib implementation and that's incorrect and
risky in the long term.

### Known limitations

N/A
graydon pushed a commit that referenced this pull request Oct 24, 2024
#1477)

### What

Ported the implementation of binary search from Rust <=1.81 to Soroban
env.

### Why

This is necessary for 2 reasons:

- Fix the immediate issue of CI failing due to observation divergence in
Rust 1.82 caused by the binary search implementation change
- Protect ourselves from the similar issues in the future - we were
effectively observing the stdlib implementation and that's incorrect and
risky in the long term.

### Known limitations

N/A

(cherry picked from commit ee8afb3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants