stefankoegel / clickyEvaluation

Visual tool for stepwise evaluation of simple Haskell expressions
MIT License
20 stars 4 forks source link

Thunks that are evaluated simultaneously #15

Open stefankoegel opened 9 years ago

stefankoegel commented 9 years ago

For certain recursive definitions (for example infinite fibonacci numbers) it would be nice, if dubplicated expressions would be evaluated simultaneously.

For exmaple

fib = 0 : 1 : zipWith (+) fib (tail fib)

explodes in complexity, even though it is only linear in lazy evaluation. On the other hand, we don't always want to lose this complexity explosion for teaching purposes...

So this feature is probably tricky to get right...