Terms

The Language overview introduces these terms informally, as they come up.

Every value is an atom or an array: atoms are numbers, characters, functions and operators, scalars are arrays of rank 0, units are atoms and scalars, and subjects are all values except functions and operators.

TermMeaning
valuea number, character, function, operator or array
atoma value that isn't an array: a number, character, function or operator
numberan approximate real or complex number, or an exact integer or rational, as Numbers describes
bare numbera number written without a suffix, which is approximate: 0.5, whereas 3ₓ and 1ᵣ3 are exact
wholewith no fractional part. Integers are whole, as are floats such as 3.0 and ¯3.0
Mathish typesordinary exact numbers, 64-bit floats and complex numbers with 64-bit parts, under dynamic kinds. Fixed-integer calculations are excluded. Mathish mode applies its conventions when enabled
characterone Unicode character, written in single quotes: 'a'
primitivea built-in function or operator, written as one glyph: + or /
dfna function or operator written in braces, as Dfns describes: {ω+1}
functiona primitive, train, derived function, or dfn that doesn't use ⍶ or ⍹, which applies to arguments
operatora primitive, or a dfn that uses ⍶ or ⍹, which takes operands and derives a function: / derives +/ from +
derived functiona function that an operator derives: +/, or 2↣×
pervasive functiona function that applies to each atom of its arguments, through any nesting: ≥[2 ⊂3] is [3 ⊂4]
arraya rectangular collection of values along zero or more axes
simple arrayan array whose items are all atoms: 1 2 3, "abc" and ⊂5 are simple, and [1 [2 3]] is not
rankthe number of axes: a vector has rank 1, and atoms and scalars have rank 0
vectoran array of rank 1
matrixan array of rank 2
stringa vector of characters, written in double quotes: "abc"
scalaran array of rank 0, holding one value: ⊂5 is a scalar holding the number 5, and 5 is a number
unita rank-0 value: a number, character, function, operator or scalar
subjecta value that isn't a function or operator: a number, character or array
itemthe value at one position of an array: [1 [2 3]] has the items 1 and [2 3]
positionan index along an axis, counting from 0. Negative positions count from the end
axisone of the dimensions of an array, numbered from 0. Each axis has a length, and can have a name and keys
keya string that labels a position along an axis, as Keyed arrays describes
recorda vector with keys, written as key:value items in brackets: ["a":1 "b":2]
cella sub-array made of an array's last k axes, called a k-cell: a matrix's rows are its 1-cells. A 0-cell is the unit at one position, the atom there or the array there enclosed. When k is at least the array's rank, the whole array is its one cell
major cella cell made of every axis but the first: a matrix's rows are its major cells
framethe axes before the cells, with one cell at each position
assemblybuilding one array from results, one for each position of a frame: the shape is the frame followed by the results' shape, each result fills its position with its items, and shorter results are padded with fill
function arrayan array with a function as an item. Evaluation gives the rule for calling one: 2 [+ ×] 3 is 5 6
mapa call of Each, Rank, an outer product or a stencil, which applies its operand at each position of a frame: to each item, cell, pair of items or window. These are the map's cells. Evaluation describes how a map calls its operand
prototypethe value an array supplies as its own fill: its first item with each number made 0, each character made a space, and each function kept. An empty array keeps its prototype: ↑0ρ"ab" is ' '
fillthe value an operation uses where an array has no item, as when 5↑1 2 gives 1 2 0 0 0. It is the array's prototype, unless the call chooses a fill through ⍠'s options record
selectionvalues read from an argument together with their places in it, as a list of positions or a function such as 1↓ reads them
glypha symbol for a primitive or for syntax, as the glyph reference lists
namea word that refers to a value, as Syntax describes: x or avg
statementthe code between two newlines or ◇ separators. Inside brackets and parentheses, these separate rows instead
shygiving a result that isn't displayed unless the code asks for it: an assignment is shy, and ⎕←x←3 displays its value
literala number, character, string, ∞, ⍬, or a constant: $t true, $f false or $n NaN
groupbrackets, parentheses or braces with what they hold: (1+2), [a b] or {ω}
tokena glyph, name, literal or group
runa sequence of tokens with no spaces between them
token separator⁝ separates tokens without ending a run or continuing a literal strand
strandsubjects side by side, read as a vector without brackets: 1 2 3 is [1 2 3], and a b is [a b]
argumenta subject a function applies to
operanda value an operator applies to
monadictaking one argument, or for an operator, one operand: -5 is a monadic call
dyadictaking two arguments, or for an operator, two operands: 3-5 is a dyadic call
ambivalentcallable with one argument or with two: - negates with one argument and subtracts with two
expressiona run, group or statement that ends in a subject
traina run, group or statement that ends in a function
partone of the pieces a train is built from: a literal strand, or a token with the operators bound to it, such as 2, +/ or (+×-)
forkthree parts of a train, f g h, giving (f ω) g (h ω)
tineone of the two outer parts of a fork
atoptwo parts of a train, f g, giving f (g ω)
binda subject directly before a part, fixing that part's left argument: 2× is 2↣×, and in 2|#⊢ the 2 binds |
hooka function that Before or After derives from two functions. With one argument, a hook uses that argument twice: f↢g Y is Y f(g Y), and f↣g Y is (f Y)g Y
fast combinationa combination of functions that BPL computes with a dedicated algorithm: 10↑⍋v, ⊛1+x

Internals terms

These terms describe how BPL runs code. Performance explains what they mean for the speed of a program. •explain, •storage, •memory and •prefs report them.

TermMeaning
pendingnot yet computed. A call on a large array can return a pending array, and BPL computes the items when a later call reads them, as Calls that wait describes. (•storage y).pending is $t for a pending array
fused groupthe pending calls that BPL computes together, block by block, in one pass over their arrays. Each of those calls is fused. The fused field of •explain has a row for each fused group that ran
forcedcomputed because a call needed the items in memory: ⍋ and display each force a pending array that they read. The forced field of •explain has a row for each call that forced one
compiled loopmachine code that BPL makes while a process runs, for the calls and types of one fused group, as Compiled loops describes. •explain records each run of one as a "compiled" route
kernela built-in loop that computes one primitive on whole arrays of given types, such as + on two arrays of 64-bit floats. A call that isn't part of a compiled loop runs on its kernel
traceto record the calls that a function makes as the steps of a program. A trace stops at a call that a program can't hold, as What stops a trace lists
programthe typed steps that a trace records. BPL runs the program in place of the function on later calls whose arguments have the same types and shapes. The programs field of •explain has a row for each program built or replayed
batched callone call of a map's operand on all the map's cells together, in place of one call for each cell, as Evaluation describes
compact storagestorage that holds items of one type side by side, as an array of floats or of characters does. Storage describes it
mixed storagestorage that keeps each item's kind with the item, for an array whose items no one compact type can hold: (•storage 1ₓ 2.5).kind is "mixed"
viewan array that shares another array's items without copying them, as a reshape or a cell from Rank does. A view keeps all of that other array's items alive