Transducers.jl. Arakaki, T., Protter, M., ExpandingMan, Riedemann, A., & Weidner, J. November, 2024.
Transducers.jl [link]Paper  doi  abstract   bibtex   
Transducers.jl provides composable algorithms on "sequence" of inputs. They are called transducers, first introduced in Clojure language by Rich Hickey. Using transducers is quite straightforward, especially if you already know similar concepts in iterator libraries: using Transducers 1:40 \textbar\textgreater Partition(7) \textbar\textgreater Filter(x -\textgreater prod(x) % 11 == 0) \textbar\textgreater Cat() \textbar\textgreater Scan(+) \textbar\textgreater sum However, the protocol used for the transducers is quite different from iterators and results in a better performance for complex compositions. Furthermore, some transducers support parallel execution. If a transducer is composed of such transducers, it can be automatically re-used both in sequential (foldl etc.) and parallel (reduce etc.) contexts. See more in the documentation.
@misc{arakaki2024,
	title = {Transducers.jl},
	url = {https://zenodo.org/records/14183253},
	abstract = {Transducers.jl provides composable algorithms on "sequence" of inputs. They are called transducers, first introduced in Clojure language by Rich Hickey.

Using transducers is quite straightforward, especially if you already know similar concepts in iterator libraries:



using Transducers
1:40 {\textbar}{\textgreater} Partition(7) {\textbar}{\textgreater} Filter(x -{\textgreater} prod(x) \% 11 == 0) {\textbar}{\textgreater} Cat() {\textbar}{\textgreater} Scan(+) {\textbar}{\textgreater} sum


However, the protocol used for the transducers is quite different from iterators and results in a better performance for complex compositions. Furthermore, some transducers support parallel execution. If a transducer is composed of such transducers, it can be automatically re-used both in sequential (foldl etc.) and parallel (reduce etc.) contexts.

See more in the documentation.},
	urldate = {2024-11-24},
	publisher = {Zenodo},
	author = {Arakaki, Takafumi and Protter, Mason and ExpandingMan and Riedemann, Andrés and Weidner, Jan},
	month = nov,
	year = {2024},
	doi = {10.5281/zenodo.14183253},
	file = {Snapshot:/Users/lcneuro/Zotero/storage/D5MMTJWB/14183253.html:text/html},
}

Downloads: 0