3 ms·
Were you able to implement transducers at the core of Jank? Or did you end up sticking to the existing Java implementation as much as possible?
by aeonik 2y ago
Were you able to implement transducers at the core of Jank? Or did you end up sticking to the existing Java implementation as much as possible?
- Jeaye 2y agoTransducers, in Clojure, are implemented in Clojure, rather than in Java. In jank, the Clojure source for transducers is exactly the same. For example: https://github.com/jank-lang/jank/blob/a14f4d7c7e8097d5ab5881715d59904adbb5cf1b/compiler%2Bruntime/src/jank/clojure/core.jank#L655 https://github.com/jank-lang/jank/blob/a14f4d7c7e8097d5ab588...
- aeonik 2y agoYou're right, my bad. I was thinking back to when Rich Hickey talked about how he wishes he could go back and bake transducers into the core of Clojure. I can't find the reference right now though. Might be a good Clojure 2.0 thing.