News for hackers. Stuff that matters.
Re:I rewrote a Clojure tool in Rust by bjoli on Tuesday December 22, 2020 @03:14AM (#25504113)
What I am saying is that lazy sequences in my world should mean you don't have to realize any intermediate collections. In the case of the srfi-158 generator (gmap square (gfilter odd? (list-generator big-list))) the overhead for getting one element from the generator would be 3 procedure calls. Without any intermediate steps. The same transducer would have one procedure call less, but would be in the same vicinity.

Does clojure's sequences not work similarly? That seems like a very lax definiti

Re:I rewrote a Clojure tool in Rust by lilactown on Tuesday December 22, 2020 @01:57PM (#25509777)
Sounds like I was mistaken. What I was seeing in my tests was due to chunking, not realizing the whole seq.