Eston by mikedidthis

Fastidious Elegance

My name is Aaron Hsu, and I'm a computer scientist. I'm changing the way people look at computing and programming languages, what they can do with them, and how they do it.

Co-dfns Patreon Archives
RSS Email Github Youtube Patreon
Aaron W. Hsu

APL a Day #7: Scalar Functions

Scalar functions perform most of the hard labor in an APL program. A scalar function defines a mapping from one or two scalar values to a third value. In math, the addition function maps two numbers to their sum. Many other such functions exist. The following table gives all the

apl apl-a-day co-dfns dfns functions programming scalar
4 years ago
Aaron W. Hsu

APL a Day #6: Indices and Encoding

Previous sessions established a basic conception of indexing an array. Namely, an index encodes a reference to an element in an array according to the position of the element along each of its dimensions. Always a vector, each element of an index falls in the range [0, d) where d

apl apl-a-day co-dfns indexing programming ravel encode decode
4 years ago
Aaron W. Hsu

APL a Day #5: Indexing into Arrays

By now, clearly a shape and vector of values precisely determines an array. All APL functions operate over arrays; they describe new arrays in terms of its arguments. What about describing a sub-array of another array? Indexing provides a means of identifying specific elements of an array. Some people might

apl apl-a-day co-dfns index indexes indexing programming
4 years ago
Aaron W. Hsu

APL a Day #4: Arrays have elements

An array that only describes a box which may contain elements, but that does not contain any elements, does not mean much. While shapes help to clarify the APL language, when doing any work, they really only describe how to arrange the elements of an array. The monadic ravel function

apl apl-a-day array co-dfns programming ravel series shape
4 years ago
Aaron W. Hsu

APL a Day #3: Arrays have Shape

Arrays arrange data into a certain rectangular shape. In APL, the shape of an array is a vector --- yes, in APL, shapes are also arrays --- that describes the number and size of layout in terms of dimensions. All arrays have a shape; if A is an array then

apl apl-a-day arrays co-dfns programming series shape
4 years ago
Page 1 of 2
Next