APL.jl is a toy dialect of APL made for interfacing with the Julia language.
APL.jl works on a minor subset of APL that allows the compiler to parse and translate APL code into Julia code. Due to this, APl.jl always returns Julia data. Dfns defined using APl.jl can hence be used directly in Julia code like ordinary functions.
apl"" string macro parses and evaluates an APL expression. The parser works on the reverse of the APL code, using the help of concatenation rules to recognize the syntax of the expression.
APL.jl can be used from
apl"", and as a REPL triggered with
/ from within the Julia REPL. It can be built and installed from source in the REPL using the
Differences from APL
The following is a non-exhaustive list of differences from modern APL.
- Unicode symbols used are not from Miscellaneous Technical block, are instead borrowed from Julia's set
- Majority of basic primitives and overloads missing
- Treatment of scalars as 1-element vectors
- No method to create character arrays
∘is redefined for broadcasting (each left), no support for binding arguments
- Absence of tradfns, dops, function trains
- Incorrect stranding for nested arrays (
(1 2) (3 4)≡1 2 3 4)
- Lack of reshape for case where
- Addition of getIndex function
|APL dialects |
|Maintained||APL+Win ∙ APL2 ∙ APL64 ∙ APL\iv ∙ Aplette ∙ April ∙ Co-dfns ∙ Dyalog APL ∙ Dyalog APL Vision ∙ dzaima/APL ∙ GNU APL ∙ KAP ∙ NARS2000 ∙ Pometo|
|Historical||A Programming Language ∙ A+ (A) ∙ APL# ∙ APL\360 ∙ APL/700 ∙ APL\1130 ∙ APL\3000 ∙ APL.68000 ∙ APL*PLUS ∙ APL.jl ∙ APL.SV ∙ APLX ∙ Extended Dyalog APL ∙ Iverson notation ∙ IVSYS/7090 ∙ NARS ∙ ngn/apl ∙ openAPL ∙ Operators and Functions ∙ PAT ∙ Rowan ∙ SAX ∙ SHARP APL ∙ Rationalized APL ∙ VisualAPL (APLNext) ∙ VS APL ∙ York APL|
|Derivatives||AHPL ∙ BQN ∙ CoSy ∙ ELI ∙ Glee ∙ I ∙ Ivy ∙ J ∙ Jelly ∙ Jellyfish ∙ K (Goal, Klong, Q) ∙ KamilaLisp ∙ Lang5 ∙ Nial ∙ RAD|
|Overviews||Timeline of array languages ∙ Timeline of influential array languages ∙ Family tree of array languages|