Stream: helpdesk (published)

Topic: ✔ Transducers.jl


view this post on Zulip Rein Zustand (Aug 09 2022 at 00:38):

Mason Protter said:

For that sort of thing I’d heartily recommend Transducers.jl over the regular map, filter, fold constructions
The way to think about them is that they’re a more structured form of a loop, and because they have more structure, they can be (ideally) understood better by a compiler

I can't find any hint of compiler optimization in the package README.md. Does the compiler really output a more performant code with this package?

view this post on Zulip Rein Zustand (Aug 10 2022 at 11:49):

Nvm, a comparison of the lowered code with iterators can be found in https://juliafolds.github.io/Transducers.jl/dev/explanation/comparison_to_iterators/#comparison-to-iterators. I wish they had put it upfront to showcase the package.

view this post on Zulip Notification Bot (Aug 10 2022 at 11:49):

Rein Zustand has marked this topic as resolved.


Last updated: Nov 06 2024 at 04:40 UTC