News for hackers. Stuff that matters.
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."