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

some transducers cause unexpected disorder with parallelism #33

Open
ExpandingMan opened this issue Apr 17, 2024 · 0 comments
Open

some transducers cause unexpected disorder with parallelism #33

ExpandingMan opened this issue Apr 17, 2024 · 0 comments

Comments

@ExpandingMan
Copy link
Contributor

Here's a neat trick

◖◗ a = 1:10^5 |> Enumerate() |> Map(x -> x[1]) |> tcollect;

◖◗ issorted(a)
false

I suppose it's up for debate whether this is really a "bug", but at best it's a spectacular foot-gun. At a bare minimum we should reconsider the documentation for transducers and parallelism (like adding a warning in the doc for Enumerate), in the longer term maybe transducers should have some kind of expanded API to deal with cases like this.

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

No branches or pull requests

1 participant