r/Clojure • • Apr 21 '26

injest: Auto-transducifying, auto-parallelizing path thread macros (+>, +>>, x>>, =>>)

https://github.com/johnmn3/injest
37 Upvotes

3 comments sorted by

View all comments

Show parent comment

2

u/gleenn Apr 22 '26

They keep the core language simple and nearly never break the API - libraries like this are a great way to get more interesting tools. My guess is that if you are doing relatively normal stuff there shouldn't be much downside. Transducers are eager compared to the lazy functions like map and filter etc, that could change the performance characteristics of your code if you actually have massive vectors you are iterating over.

2

u/geokon Apr 23 '26

I don't think this is either large or breaking any API..

I think transducers didn't exist when the threading macro was added, so that's likely the primary reason why core threading macros don't do this stuff

I'd be curious to hear what language maintainers think about this extension