|
|
|
|
|
by barthold123
13 days ago
|
|
As I said, I don't know much about whether interaction nets are superior to data flow (especially in hardware), I just wanted to mention some general advantages of the paradigm. My other comment explains the relation to laziness. Incremental sharing mean essentially that when arguments are duplicated and they are _needed_ (as in call-by-need), only the outermost "constructor" (graph node) of the shared computation is duplicated, while the rest is left as-is. This duplication proceeds only whenever more constructors are _needed_. It is essentially lazy, or, incremental. Incremental higher-order sharing is when incremental sharing can be applied to higher-order functions, say in a lazy semantics. This is very tricky (Asperti wrote a whole book on it), but, when done correctly, can make some algorithms exponentially faster than call-by-need, without affecting performance negatively. Intuitively, you rarely need the whole body of a (shared) function duplicated in order to know how to continue with evaluation. Incremental duplication makes a lot more sense to me, and it shows in benchmarks. |
|