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

Once Base defines radix sort, use that for ::RadixSortAlg #63

Merged
merged 2 commits into from
Nov 11, 2022

Conversation

LilithHafner
Copy link
Member

Once Base adds radix sort to the default dispatch, make sort!(..., ::RadixSortAlg, ...) fallback to the default algorithm. Also, move radix sort to the end of the file because it no longer needs to be as actively maintained.

Closes more than half the open issues in this repo!

Fixes #56
Fixes #52
Fixes #50
Fixes #48
Fixes #26

Closes #34, moving it into the scope of JuliaLang/Julia, to be fixed in JuliaLang/julia#47383
Closes #38, moving it into the scope of JuliaLang/Julia

@LilithHafner
Copy link
Member Author

A major motivation for this is that Base.Sort.Float is internal and likely to be removed in JuliaLang/julia#47383, which causes build errors in this implementation of radix sort.

I'm not aware of any users that actually pass ts here, so there is not much reason for base to support receiving scratch space in this way.
@codecov-commenter
Copy link

codecov-commenter commented Nov 9, 2022

Codecov Report

Merging #63 (7ac1056) into master (80c14f5) will decrease coverage by 0.55%.
The diff coverage is 79.36%.

@@            Coverage Diff             @@
##           master      #63      +/-   ##
==========================================
- Coverage   96.51%   95.95%   -0.56%     
==========================================
  Files           1        1              
  Lines         344      346       +2     
==========================================
  Hits          332      332              
- Misses         12       14       +2     
Impacted Files Coverage Δ
src/SortingAlgorithms.jl 95.95% <79.36%> (-0.56%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@LilithHafner
Copy link
Member Author

I'd like to merge and release this before JuliaLang/julia#47383 to avoid breaking SortingAlgorithms and its two thousand dependants on nightly. Would someone be willing to give this a review?

@frankier
Copy link

@LilithHafner could you check my PR here JuliaRegistries/General#85431

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment