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

Transducers produce type-unstable result. #551

Open
AliceRoselia opened this issue Feb 9, 2023 · 1 comment
Open

Transducers produce type-unstable result. #551

AliceRoselia opened this issue Feb 9, 2023 · 1 comment

Comments

@AliceRoselia
Copy link

high_primes = 0:wheel_size:PRIMELIMIT |> Map(x->lazyaddFilter(x,wheel_nums,sieve_primes)) |> TCat(length(wheel_nums)) |>Filter(x-> 1<x<=PRIMELIMIT)|>tcollect

A simple wheel sieve algorithm implemented with transducers is not type-stable. The result type is given as "ANY".

@MasonProtter
Copy link
Member

@AliceRoselia Can you provide a minimal working example? i.e. definitions for lazyaddFilter, sieve_primes, wheel_nums, etc?

From what you've given it's very hard to track down what could be at play here and whether or not it has anything to do with Transducers.jl

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