3 ms·
>"It does not work well in programs which have high requirements for performance or memory" Can you elaborate on why this is? I see the parent post mentioned
by bogomipz 10y ago
>"It does not work well in programs which have high requirements for performance or memory"
Can you elaborate on why this is?
I see the parent post mentioned "lazy evaluation." Can you say why this is relevant to discussions on resource utilization and performance?
- kqr 10y agoHigher levels of abstraction are harder to translate to efficeint machine code. Non-strict (what you call "lazy") evaluation can make it more difficult to predict when resources are needed. In strict languages, the resources needed to evaluate f() are needed exactly at the point where you typed "f()". With non-strict evaluation, those resources may be needed then, later, or not at all! If those resources happen to be needed when a) they are no longer available, or b) at the same time as a bunch of other computations need resources, you have problems.
- bogomipz 10y agoThat makes total sense. Thanks for the explanation.