Skip to content

Conversation

nsajko
Copy link
Member

@nsajko nsajko commented Dec 26, 2024

Fixes #56728

@nsajko nsajko added randomness Random number generation and the Random stdlib stdlib Julia's standard library feature Indicates new feature / enhancement requests labels Dec 26, 2024
@rfourquet rfourquet added needs docs Documentation for this change is required needs news A NEWS entry is required for this change labels May 9, 2025
@nsajko nsajko force-pushed the shuffle_ntuple branch from 213f598 to 7bb811d Compare May 9, 2025 10:29
@nsajko nsajko force-pushed the shuffle_ntuple branch from 70fa8ac to 4577162 Compare May 9, 2025 10:39
@nsajko nsajko added status: waiting for PR reviewer DO NOT MERGE Do not merge this PR! and removed needs news A NEWS entry is required for this change needs docs Documentation for this change is required status: waiting for PR reviewer labels May 9, 2025
@nsajko
Copy link
Member Author

nsajko commented May 9, 2025

Unlike shuffle!, randperm! is currently restricted to Array, not admitting Memory, so this PR now depends on randperm! supporting Memory. Clearly it would be good to support more types than just Array with randperm! anyway. Will probably make another PR for that soon.

EDIT: decided to just forgo randperm! for now

@nsajko nsajko removed the DO NOT MERGE Do not merge this PR! label May 9, 2025
@rfourquet rfourquet added the needs compat annotation Add !!! compat "Julia x.y" to the docstring label May 12, 2025
@rfourquet
Copy link
Member

I'm surprised to see that your implementation allocates on the master branch, but not on v1.12, do you have an idea why that is the case? Not necessariy a problem though, it seems to be roughly the same speed.

@nsajko
Copy link
Member Author

nsajko commented Jun 10, 2025

The PR #58596:

  • made randperm! support Memory, so it's now used instead of shuffle!

  • caused a merge conflict in NEWS.md, now fixed

@nsajko
Copy link
Member Author

nsajko commented Jun 15, 2025

bump?

@nsajko
Copy link
Member Author

nsajko commented Jun 25, 2025

ping

@nsajko
Copy link
Member Author

nsajko commented Jul 27, 2025

bump

@nsajko
Copy link
Member Author

nsajko commented Aug 9, 2025

ping

Co-authored-by: Andy Dienes <[email protected]>
@adienes adienes added merge me PR is reviewed. Merge when all tests are passing and removed status: waiting for PR reviewer labels Aug 15, 2025
@IanButterworth IanButterworth merged commit f4af91d into JuliaLang:master Aug 16, 2025
7 checks passed
@nsajko nsajko deleted the shuffle_ntuple branch August 16, 2025 21:24
@nsajko nsajko removed the merge me PR is reviewed. Merge when all tests are passing label Aug 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Indicates new feature / enhancement requests randomness Random number generation and the Random stdlib stdlib Julia's standard library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support shuffle(::NTuple)
5 participants