Thanks Jan-Paul.  That's helpful.  I wonder whether, if all lazy functions 
were rewritten in terms of transducers, it would then be easy to turn 
laziness on and off.  (I am not suggesting that this should be done.  No 
doubt it would entail a lot of work, and performance tradeoffs.  I'm quite 
happy with Clojure as it is, despite anything negative I might say about 
impacts of laziness in some circumstances.)

On Saturday, October 11, 2014 5:00:36 AM UTC-5, Jan-Paul Bultmann wrote:
>
> Transducers build up transformation steps, with new generic operations 
> like  single arg `map` and `filter`, and then apply these transformations 
> to a collection using an evaluation function.
> This function decides if operations are done lazily, eagerly, or on a 
> channel.
>
> Note that while this makes the place where laziness occurs more obvious, 
> it is not really new.
> You can currently infer as well that `map` `filter` `concat` e.t.c are 
> lazy. While `mapv` or `filterv` are not.
>
>
> On 11 Oct 2014, at 00:28, Mars0i <mars...@logical.net <javascript:>> 
> wrote:
>
>
>
> On Friday, October 10, 2014 5:20:30 PM UTC-5, Mars0i wrote:
>>
>>  Maybe an ideal world would be one in which there was a global setting to 
>> turn laziness on and off.  When you want it, have it, and know your risks.  
>> After looking at the source for some of the lazy functions, I've come to 
>> suspect that such a feature would be completely nontrivial.
>>
>
> Oh, wait, Rich Hickey's blog post about transducers 
> <http://blog.cognitect.com/blog/2014/8/6/transducers-are-coming> says:
>
>
>
>
>
> *But transducers can also be used for:    a la carte laziness    ...    
> collection/iteration/laziness-free transforming reductions *
>
> Not certain what this means.  Haven't fully grokked reducers.
>
> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@googlegroups.com <javascript:>
> Note that posts from new members are moderated - please be patient with 
> your first post.
> To unsubscribe from this group, send email to
> clojure+u...@googlegroups.com <javascript:>
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to clojure+u...@googlegroups.com <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to