On Wed, Aug 1, 2012 at 5:21 AM, Vinay D.E <devi...@gmail.com> wrote: > Just curious, but if I chained a large number of such lazy constructs, isn't > there danger of a big unpredictable spike in CPU / Memory if something > deeply nested is accessed ?
Not really any more than if evaluation were eager and it was all computed upfront. In general when processing a lazy sequence the system will use just enough CPU / memory to process a given chunk of data so one of the benefits is that you can process sequences where the computation would not otherwise fit in memory. Lazy evaluation definitely takes some getting used to! > Is there someplace where this is discussed in detail, pros / cons, caveats, > concepts etc ? Any books that you think I should read ? If someone has recommendations, I'd probably enjoy reading them too... -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ "Perfection is the enemy of the good." -- Gustave Flaubert, French realist novelist (1821-1880) -- 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