lazy-evaluation
Algorithms that don't terminate in a lazy language
According to http://www.reddit.com/r/programming/comments/gwqa2/the_real_point_of_laziness/c1rslxk Some algorithms don\'t 开发者_运维知识库terminate in an eager language, that do in a lazy one, and[详细]
2023-03-18 06:20 分类:问答Using `line-seq` with `reader`, when is the file closed?
I\'m reading lines from a text file using (line-seq (reader \"input.txt\")).This collection is then passed around and used by my program.[详细]
2023-03-18 05:32 分类:问答infinite Datastructures in D
I found examples of lazy evaluation of function arguments in D http://www.digitalmars.com/d/2.0/lazy-evaluation.html[详细]
2023-03-15 20:53 分类:问答Haskell: can Lazy Evaluation help to stop a voting earlier?
Suppose I have 10 heavy different functions (parallel or not) deciding about the same problem. Is there a good way to implement a voting scheme that lazy-automatically realizes when a majority is reac[详细]
2023-03-15 18:28 分类:问答Why map does not force strictness whereas zipWith does?
There are two strict versions of zipWith function: 1) Really strict, elements of lists l1 and l2 get evaluated so their thunks do not eat all stack space (Do开发者_如何转开发n Stewart code)[详细]
2023-03-15 17:06 分类:问答Weird SQL Server lazy loading of table variables?
I came across a misleading error in SQL Server 2008 and I wonder if anyone can explain what\'s happening to me?[详细]
2023-03-15 10:51 分类:问答How does seq force functions?
Background This question arises from a challenge Brent Yorgey posed at OPLSS: write a function f :: (Int -> Int开发者_如何转开发) -> Bool that distinguishes f undefined from f (\\x -> undefi[详细]
2023-03-14 13:13 分类:问答Haskell Heap Issues with Parameter Passing Style
Here\'s a simple program that blows my heap to Kingdom Come: intersect n k z s rs c c == 23= rs x == y= intersect (n+1) (k+1) (z+1) (z+s) (f : rs) (c+1)[详细]
2023-03-14 06:26 分类:问答Cost-based evaluation in Drools?
I have a problem开发者_如何学Go that I can solve with a rules engine, and our team already wrote apps using Drools (but I am new to it so apols for the newbie question).[详细]
2023-03-14 03:58 分类:问答New version of Lazyload?
Does anyone know of another plugin than Lazyload from Applesiini? http://www.appelsiini.net/projects/lazyload[详细]
2023-03-13 10:50 分类:问答