> Interaction nets are a very fast way to manage purely immutable data without garbage collection or reference counting.[...] HVM starts with affine types (like move-only programming), but then adds an extremely efficient lazy .clone() primitive, so it can strategically clone objects instead of referencing them.<p>This is wrong, Interaction nets (and combinators) can model any kind of computational systems, including ones that use mutation. In fact, ICs are not really about types at all, although they do come from a generalization of Girard's proofs nets, which came from work in linear logic.<p>The interesting thing about ICs is that they are beta-optimal (any encoding of a computation will be done in the minimum number of steps required -- there is no <i>useless</i> work being done), and maximum-parallel with only local synchonization (all reduction steps are local, and all work that <i>can</i> be parallelized <i>will</i> be parallelized).<p>Additionally ICs have the property that any encoding of a different computational system in ICs will preserve the asymptotic behavior of all programs written for the encoded computational system. In fact, ICs are the only computational system with this property.<p>Interaction nets absolutely require garbage collection in the general sense. However, interaction combinators are linear and all garbage collection is explicit (but still exists). HVMs innovation is that by restricting the class of programs encoded in the ICs you can get very cheap lambda duplication and eschew the need for complex garbage collection while also reducing the overhead of implementing ICs on regular CPUs (no croissants or brackets, see Asperti[1] for what that means).<p>Having a linear language with the above restriction allows for a very efficient implementation with a very simple GC, while maximizing the benefits of ICs. In principle <i>any</i> language can be implemented on top of ICs, but to get most benefits you want a language with these properties. It's not that HVM starts with affine types and an efficient lazy clone operation, it's that a linear language allows extremely efficient lazy cloning (including lambda cloning) to be implemented on top of ICs, and the result of that is HVM.<p>> The HVM runtime implements this for Haskell.<p>This is very wrong. HVM has nothing to do with Haskell. HVM3 is written in C[2], HVM2 has three implementations, one in C[3], one in Rust[4], and a CUDA[5] one. HVM1 was just a prototype and was written in Rust[6].<p>HOC[7], the company behing HVM provides two languages that compile to HVM, Bend[8], and Kind[9]. Bend is a usual functional language, while Kind is a theorem prover based on self types.<p>Haskell is not involved in any of these things except that the HVM compiler (not runtime) is written in Haskell, but that is irrelevant, before Haskell it used to be written in TypeScript and then in Agda (Twitter discussion, sorry, no reference). It's an implementation detail, it's not something the user sees.<p>Please note that HVM adds some stuff on top of ICs that makes it not strictly beta-optimal, but nevertheless the stuff added is useful in practice and the practical downgrade from theoretical behaviour is minimal.<p>[1] Andrea Asperti, The Optimal Implementation of Functional Programming Languages, ISBN-13: 978-0060815424<p>[2] <a href="https://github.com/HigherOrderCO/HVM3/blob/main/src/HVML/Runtime.c">https://github.com/HigherOrderCO/HVM3/blob/main/src/HVML/Run...</a><p>[3] <a href="https://github.com/HigherOrderCO/HVM/blob/main/src/hvm.c">https://github.com/HigherOrderCO/HVM/blob/main/src/hvm.c</a><p>[4] <a href="https://github.com/HigherOrderCO/HVM/blob/main/src/hvm.rs">https://github.com/HigherOrderCO/HVM/blob/main/src/hvm.rs</a><p>[5] <a href="https://github.com/HigherOrderCO/HVM/blob/main/src/hvm.cu">https://github.com/HigherOrderCO/HVM/blob/main/src/hvm.cu</a><p>[6] <a href="https://github.com/HigherOrderCO/HVM1">https://github.com/HigherOrderCO/HVM1</a><p>[7] <a href="https://higherorderco.com" rel="nofollow">https://higherorderco.com</a><p>[8] <a href="https://github.com/HigherOrderCO/bend">https://github.com/HigherOrderCO/bend</a><p>[9] <a href="https://github.com/HigherOrderCO/kind">https://github.com/HigherOrderCO/kind</a>