Top "Lazy-evaluation" questions

be evaluated more than once.

What's so bad about Lazy I/O?

I've generally heard that production code should avoid using Lazy I/O. My question is, why? Is it ever OK …

haskell io lazy-evaluation
Clojure: rest vs. next

I'm having a hard time understanding the difference between rest and next in Clojure. The official site's page on laziness …

clojure lazy-evaluation
Lazy choices in Django form

I have a Django my_forms.py like this: class CarSearchForm(forms.Form): # lots of fields like this bodystyle = forms.…

python django forms lazy-evaluation
Convert a Lazy ByteString to a strict ByteString

I have a function that takes a lazy ByteString, that I wish to have return lists of strict ByteStrings (the …

haskell lazy-evaluation strict bytestring chunking
How can I get a lazy array in Ruby?

How can I get a lazy array in Ruby? In Haskell, I can talk about [1..], which is an infinite list, …

ruby lazy-evaluation
How to reduce memory usage in a Haskell app?

I am new to functional programming, and now learn Haskell. As an exercise I decided to implement the explicit Euler …

haskell functional-programming garbage-collection memory-management lazy-evaluation
PHP Lazy Boolean Evaluation

I have a conditional statement thus: if($boolean && expensiveOperation()){ ...} Does PHP have lazy boolean evaluation, i.e. will …

php lazy-evaluation
Lazy vs Eager loading with JPA

I am trying to get some JPA stuff to work. I have a table that has foreign keys to another …

jpa-2.0 loading lazy-evaluation eager
How is this fibonacci-function memoized?

By what mechanism is this fibonacci-function memoized? fib = (map fib' [0..] !!) where fib' 1 = 1 fib' 2 = 1 fib' n = fib (n-2) + fib (n-1) And …

haskell lazy-evaluation fibonacci memoization pointfree
Why is django's settings object a LazyObject?

Looking in django.conf I noticed that settings are implemented like this: class LazySettings(LazyObject): ... What is the rationale behind …

python django lazy-evaluation django-settings