Suppose a stack and a set of functions that operate thereon—popping values off for use as inputs, and putting back on the corresponding outputs. Suppose further that , among other functions, contains those listed in Listing 1.
Each is a concise incantation, performed on the arbitrarily many dimensions of an input. Lastly, recall that an Gaussian kernel can be constructed using the Radial Basis Function in Equation 1,
where are indices of the kernel relative to its center, which, using the functions in Listing 1, can be expressed as per Listing 2.
The code D G n σ thus generates Figure 1.
D G 49 σ, as breathes between 2 and 6For the scientifically inclined, these Gaussian gradients might bring to mind the notion of orbitals, and probability density functions (indeed that is in fact what a Gaussian is). However—and perhaps more strikingly—the relationship between Listing 2 and its output is of an asemic nature, echoing works like the Codex Seraphinianus. To put it bluntly, Uiua—the language of which we speak—is rivalled in its inscrutability only by its expressiveness, which is to say very.
The artifacts produced—kernels, gradients, figures—are legible to those initiated in the hypothetical scientific ritual to which they could have belonged, and yet the code that conjures them echoes the inscrutable glyphs of the Codex Seraphinianus, where language teeters on the edge of aesthetics, but quite far from meaning.