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

foldxt type unstable #27

Open
MasonProtter opened this issue Jan 25, 2024 · 1 comment
Open

foldxt type unstable #27

MasonProtter opened this issue Jan 25, 2024 · 1 comment

Comments

@MasonProtter
Copy link
Member

Filed in JuliaFolds/Transducers.jl#569 by @atbug

const grid = [[i, j] for i in -4:4, j in -4:4]

foldxt(+, Map(i -> grid[i]), 1:length(grid))

seems to be type unstable, while foldl works well.

I plan to fix this with https://github.com/MasonProtter/StableTasks.jl once it is registered

@leonardogalliano
Copy link

leonardogalliano commented Aug 10, 2024

Any update? It seems to me that any call of foldxt is type unstable. Even the examples in https://juliafolds.github.io/Transducers.jl/dev/tutorials/tutorial_parallel/#tutorial-parallel

using Transducers

@code_warntype foldxt(+, Map(sin), rand(10_000_000))

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

2 participants