News for hackers. Stuff that matters.
Re:Heard of Idempotency but unsure what it is? by GrantMoyer on Monday June 10, 2024 @07:26PM (#40640502)
You don't need associativity:

(x ⋅ x) ⋅ x

(x) ⋅ x

x ⋅ (x)

x ⋅ (x ⋅ x)

Re:Heard of Idempotency but unsure what it is? by a1369209993 on Monday June 10, 2024 @08:07PM (#40640776)
You do need (some subset of) associativity:

  (y0 * x) * x ?= y0 * (x * x)
        y1 * x ?= y0 * x
            y2 ?= y1
y2 is not in general constrained to be the same as y1 otherwise.