Language

APL

First appeared
1966
Paradigm
Array
Toolchain
GNU APL 2.0
Container image
debian:trixie-20261027-slim + GNU APL 2.0 (built from source)

APL began as Kenneth Iverson’s mathematical notation, published in his 1962 book A Programming Language, and was first implemented at IBM as APL\360 in 1966. Every function works on whole arrays, and most are a single glyph, so a sum is +/X, a mean is (+/X)÷≢X, and a program that would be a page of loops elsewhere fits in a few lines. GNU APL has a ⎕MX statistics and matrix function when it is built with GSL, a third-party library; GSL isn’t installed, so ⎕MX isn’t available here. GNU APL is the GNU project’s free interpreter of ISO standard APL with nested arrays. The runner executes each main.apl as a script, and the comments explain every line for readers new to APL.

Quirks

Concepts in APL

Run the examples locally

You need Docker and Python 3. The harness builds the pinned container and runs every APL example:

git clone https://github.com/qnixon/dswithx.git
cd dswithx
python3 harness/run_tests.py --language apl