News for hackers. Stuff that matters.
Re:Frostbite: A new CPU architecture discovered, designed an... by thesz on Friday November 20, 2026 @10:48AM (#50576482)
I think that data flow computing paradigm subsumes interaction nets.

[1] https://en.wikipedia.org/wiki/Dataflow_architecture

Every step there is local, every dependence is explicit and every value has only one owner.

Re:Frostbite: A new CPU architecture discovered, designed an... by barthold123 on Friday November 20, 2026 @10:51AM (#50576560)
same as interaction nets, no? except they are strongly confluent and have incremental sharing
Re:Frostbite: A new CPU architecture discovered, designed an... by thesz on Friday November 20, 2026 @01:20PM (#50579371)

  > same as interaction nets, no?
Exactly my point. But well researched and has compilers from high level languages (Id and some others).

  > except they are strongly confluent and have incremental sharing
Data flow is an inverted representation of data demand (lazy evaluation, which is strongly confluent) [1] and I do not see why it cannot (be constrained to) have strong confluence.

[1] https://dl.acm.org/doi/pdf/10.1145/93548.93578

Have authors compared interaction nets to the data flow machines? No.

They did not even compared their results to the Transport Triggered Architecture [2] automatic core construction workflow.

[2] https://web.archive.org/web/20051125195128/http://ce.et.tude...

In some cases (FFT), TTA's automatic synthesis was able to provide power-per-operation reduction of three orders of magnitude, when compared to specialized ASIC hardware.

Re:Frostbite: A new CPU architecture discovered, designed an... by barthold123 on Friday November 20, 2026 @03:56PM (#50581952)
I don't know much about data flow but how would lazy evaluation ever be strongly confluent without incremental sharing? Or do you mean not sharing at all, thus not making use of being lazy (in the sense of call-by-name)?
Re:Frostbite: A new CPU architecture discovered, designed an... by thesz on Friday November 20, 2026 @05:30PM (#50583263)
Lazy evaluation (call-by-need) is normal reduction order for lambda calculus with memoization (nothing is reduced more than once). It has been proven a long time ago that if lambda expression has a non-reducible form, it can be reached with normal reduction order, but not always with the others (eager reduction being one such example - Lean uses eager/strict evaluation, thus it is... interesting).
Re:Frostbite: A new CPU architecture discovered, designed an... by barthold123 on Friday November 20, 2026 @05:58PM (#50583562)
Yes I know that, what does this have to do with my comment? Or did you want to say that call-by-name is not lazy, which it is by many definitions?
Re:Frostbite: A new CPU architecture discovered, designed an... by thesz on Friday November 20, 2026 @06:49PM (#50584048)
Call-by-name is not lazy, because it will perform the same computations whenever value of the computation is required.
Re:Frostbite: A new CPU architecture discovered, designed an... by barthold123 on Friday November 20, 2026 @08:10PM (#50584726)
Sorry, but it is, except if you'd also provide a (non-standard) definition of laziness. Lazy means to not evaluate the argument of a function when evaluating its application. A lazy semantics can be implemented using call-by-name or call-by-need, either not sharing the evaluation, or sharing it. See Maraist, Odersky & Wadler (1998), an initial introduction to call-by-need, that defines call-by-name as being lazy - or almost all of the subsequent literature that I know.

However, in call-by-need reduction, sharing never goes beyond a function's body: In two different invocations of the same function, shared computation in their bodies will still be evaluated twice. This is different when sharing incrementally, which can famously not be implemented just by a reduction strategy (Lévy etc.). Instead, you require a whole different model of computation - for example interaction nets. Commutation propagates duplication nodes (ie. sharing of computation) incrementally, step-by-step, in a lazy manner. Only when duplication is also incremental, then can it be strongly confluent. See Lafont's initial work on interaction nets and combinators for the reasoning.

Re:Frostbite: A new CPU architecture discovered, designed an... by thesz on Monday November 23, 2026 @01:49AM (#50608315)
https://en.wikipedia.org/wiki/Lazy_evaluation

"In programming language theory, lazy evaluation, or call-by-need, is an evaluation strategy which delays the evaluation of an expression until its value is needed (non-strict evaluation) and which avoids repeated evaluations (by the use of sharing)."

Algol-68 had call-by-name semantics for function arguments and it was not called lazy.

Haskell and Miranda before it, and LazyML before both of them, have call-by-need evaluation and they are called lazy.

Re:Frostbite: A new CPU architecture discovered, designed an... by barthold123 on Monday November 23, 2026 @06:39PM (#50621157)
I don't know what to tell you. Wikipedia is considering a very narrow interpretation of laziness, that is arguably quite misleading. Yes, call-by-need implements lazy evaluation, and yes, lazy evaluation is often implemented by some kind of sharing, as call-by-name does not make much sense in practice otherwise.

I think part of the problem is that when people talk about Haskell or call-by-need being lazy, some think that "lazy" somehow represents the whole evaluation strategy. It is just one of the properties the evaluation strategy adheres to. In contrast, call-by-name is not often talked about as being lazy, as most people associate it with call-by-need. As such, people not calling Algol-68 lazy does not mean that it is non-lazy (aka strict). It implements call-by-name, therefore it is lazy by definition.

For other sources, see e.g.

- https://csci3155.cs.colorado.edu/pppl-course/book/lazy-evalu...

- https://ku-sldg.github.io/plih/funs/6-Strict-and-Lazy.html

- or my TAPL copy: "In contrast, non-strict (or lazy) strategies such as call-by-name and call-by-need evaluate only the arguments that are actually used."

Re:Frostbite: A new CPU architecture discovered, designed an... by thesz on Friday November 20, 2026 @06:55PM (#50584114)
I also do not understand what you call higher order sharing. Can you provide a definition and/or paper or presentation about it?

Why is incremental higher order sharing is important?

Can interaction combinators be implemented with just lazy (graph reducing) computations?

https://bathtub-01.github.io/technical/ouros-demo/ - that was on Hacker News front page not so long ago. It is a data flow CPU implementing Haskell through graph reduction.

This is why I consider graph reduction and data flow superior to interaction nets.

Re:Frostbite: A new CPU architecture discovered, designed an... by barthold123 on Friday November 20, 2026 @08:16PM (#50584774)
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.

Re:Frostbite: A new CPU architecture discovered, designed an... by monocasa on Friday November 20, 2026 @04:31PM (#50582465)
FWIW, the last dataflow patents are hitting their expiry. And they very much were being heavily enforced.

I wonder if this architecture was sitting around and about to be implemented regardless of AI sort of like how 3d printing was in patent hell for 20 years starting in the early 90s, then we saw a veritable cambrian explosion once that ended.

Re:Frostbite: A new CPU architecture discovered, designed an... by shwaj on Friday November 20, 2026 @03:26PM (#50581500)
In the context of this story, I wonder whether interaction nets are more amenable to hardware implementation? I plead ignorance about how the dataflow paradigm maps to hardware.
Re:Frostbite: A new CPU architecture discovered, designed an... by thesz on Friday November 20, 2026 @05:05PM (#50582956)

  > I wonder whether interaction nets are more amenable to hardware implementation?
I've finally found it!

https://en.wikipedia.org/wiki/TRIPS_architecture

"TRIPS uses an instruction set architecture designed to be easily broken down into large groups of instructions (graphs) that can run on independent processing elements. The design collects related data into the graphs, attempting to avoid expensive data reads and writes and keeping the data in high speed memory close to the processing elements. The prototype TRIPS processor contains 16 such elements. TRIPS hoped to reach 1 TFLOP on a single processor per paper published from 2003 to 2006."

These pesky interaction nets are TRIPS in disguise. TRIPS is a kind of reduced data flow CPU.