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

Add sort function to std #610

Open
TheLostLambda opened this issue Dec 3, 2024 · 1 comment
Open

Add sort function to std #610

TheLostLambda opened this issue Dec 3, 2024 · 1 comment

Comments

@TheLostLambda
Copy link

Not certain which algorithm we'd want to use, but I was very surprised to not find any sorting functions in std! It seems like a super common operation and there are a number of algorithms already in the tests/ folder.

Is there a reason these haven't been added already? Is it the sort of thing that you'd be interested in me adding via a PR?

P.S. Koka is probably the most elegant language I've ever come across — it's very exciting to see so much innovation in the functional programming space and research put into practice!

@TheLostLambda
Copy link
Author

We might want to start with something simpler, but if we're eventually interested in some decently state-of-the-art stuff, then there is some great information about the sort algorithms that replaced those in the Rust standard library a few months ago: rust-lang/rust#124032

Stable sort: https://github.com/Voultapher/sort-research-rs/blob/main/writeup/driftsort_introduction/text.md
Unstable sort: https://github.com/Voultapher/sort-research-rs/blob/main/writeup/ipnsort_introduction/text.md

@TimWhiting TimWhiting added this to the Considered Features milestone Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants