💾 Archived View for dcreager.net › concatenative › linear-basis-2.gmi captured on 2024-02-05 at 09:38:27. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-11-04)

-=-=-=-=-=-=-

The two-element linear concatenative basis

Brent Kerby calls out that ‘cons’ and ‘sap’ are a linear basis in a concatenative language.

The Theory of Concatenative Combinators » Linear Completeness

[B] [A] cons == [[B] A]
[B] [A] sap  == A B

This is a valid basis because ‘cons’ covers quoting and concatenation, and ‘sap’ covers reordering and unquoting.

Categories of instructions in a concatenative basis

A linear basis for Swanson

..