2
votes

I heard a comment made today:

"Tranducers were there all along, they came with the reducers in 1.5"

Indeed - Richs's Anatomy of a Reducer blog entry, bears remarkable resemblance to the logic used in his Strange Loop Transducers talk. (Replace 'transformers' with 'transducers').

My question is: Were transducers in the Reducers library in Clojure 1.5 all along?

1
It sure looks like the same idea, or at least the origins of the same idea. I don't think that the modifications to the API were there however (i.e. that (map) returns its native transducer etc). I could be wrong.Pointy
Yes. From Rich's Transducers are Coming: Two years ago ... describing how reducers work, I described the reducing function transformers on which they were based ... these transformers were never exposed a la carte ...Thumbnail

1 Answers

1
votes

Pointy is correct, the Idea what there though not accessible as it's own thing. Specifically map filter reduce etc. where not yet capable of producing a transducer and into chan sequence where not available to consume them, so in my opinioin it is safe to say that transducers where not present in Clojure < 1.6.0