3 ms·
I would actually say that pointer arithmetic and manual memory management are _easier_ than managing space by controlling evaluation order. The real benefit of
by wnoise 16y ago
I would actually say that pointer arithmetic and manual memory management are _easier_ than managing space by controlling evaluation order.
The real benefit of lazy-evaluation is that it decouples generation from consumption in a very thorough way. Unfortunately it often doesn't scale up as space leaks attest. I'm starting to think that in the large it should be feasible to replace it with CSP-like channels, though this is essentially boiler-plating the runtime code, it gives far more fine control.
I'd say also say that automatic memory management is similar. The downside to manual is not all the debugging difficulties per se, but the fact that you do have to decide who allocates, who deallocates, and that these decisions are highly coupled and can greatly impact the choice of feasible data structures.