-
Notifications
You must be signed in to change notification settings - Fork 94
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
Proposal: replace the naive quick sort for vec with sort for array #89
Comments
This is impossible in the wasm backend, the wasm will have its own verification layer. |
@bobzhang Thanks. But if I did not misunderstand, there should be a generic trait here which Is it impossible (for I am not very familiar with related PL / type system knowledge)? Or moonbit has planned to implement it in the future?
|
#112 I think the discussion in this PR might be helpful. |
done in master |
In this pr #72 , author implemented an optimized quick sort algorithm like the
std:sort
in C++But for vec, it already has a naive quick sort implementation
core/vec/vec.mbt
Lines 619 to 639 in bcb5d5c
I think we can replace the vec sort with directly using the sort impl from array module, not implementing it twice.
The text was updated successfully, but these errors were encountered: