So there is 'no sharing of state' baked into the computational model by design, enforced by this very simple and elegant design choice.
principal ports are where computation happens
The aux side, you can have as many terms as you want, but on the principal side, you can only have one.
The novel thing here is that you can connect two principal ports, in which case you get an actual equation (or interaction pair in inet terminology) - but the whole thing is only valid if the two sides actually can be made equal.
From HS algebra, you probably know how turn this into an imperative for (essentially solve for x) - which brings the inet into a normal form, and the computation becomes a DAG, just like with other representations of computation.
I feel like im missing the big idea though.
Seems to describe something analogous instruction level parallelism, which traditional CPUs made this millennium have as well via instruction pipelines, branch prediction, and speculative execution. Some of which turned out to not work too well so now we generally run hobbled CPUs with Spectre mitigation enabled.
The reason why we tend to reach for difficult abstractions for core level parallelism is that most automatic/safe approaches tend to stumble pretty hard on Amdahl's law, where most parallel code is consequently almost entirely designed around minimizing critical sections.
I don't fully see how inets would resolve Amdahl's law.
But even when it's possible to reduce, you often need the compiler to do it for you. For example the simple C loop:
for (int i = 0;i<LEN;i++){
b += a[i];
}
The naive implementation of this loop is serial - every iteration of i relies on the previous one. In this case, the compiler can trivially infer that this is not the case, and can produce the nth value of i without doing all the previous computation, and thus enable parallelism. But if we were to feed the 'naive' version into an inet cpu, we'd still get serial performance.If a computation's dependencies are not so trivial to determine, this simple parallelization might be beyond the compiler's ability, or may be straight up impossible. The latter seems to be the case for more general software.
Tbh, I'm not criticizing inets, and as GP has pointed out, out-of-order computation already does dependency tracking, but that ends at the scope of a single logical CPU thread, and what comes beyond that is user-managed-threading, a very difficult and bug-prone approach.
So there needs to be a better primitive for hardware parallelism, I agree, but imo inets. are not the whole solution in of themselves.
Curiously, the nqueens algorithm as presented has no memory accesses, so we have no idea how this tackles that.
> Another issue with multi-core CPUs is the difficulty of programming them. Debuggability is a major issue, and entirely new classes of issues arise, such as race conditions. However, in interaction nets, all active pairs are independent, and so can actually be executed in any order. This property is known as confluence, and means that no matter the order in which things are executed, the result will be the same. This makes debugging straightforward and eliminates issues like race conditions. This allows Vine to be parallel out of the box; the programmer does not have to do anything special with threads, processes, CUDA kernels, etc. to get parallel execution.
[0]: https://tendrils.co/blog/2026-04-26/on-inets