About
Why a Korean array language
Hangul is built, not drawn. Every syllable block is put together from smaller letters, called jamo, by one consistent rule: a first consonant, a vowel, and sometimes a last consonant. 닫 is ㄷ, then ㅏ, then ㄷ, stacked into one character. Few writing systems are this regular, and that regularity can carry meaning.
Array languages such as APL, BQN and Uiua showed what short operators make possible. Their programs are so terse that a useful function is often only a few symbols long. So you rarely give it a name. You write the symbols out, and you learn to read the run of symbols as an idiom, the way you read a word. In BQN, the average is +´÷≠: the sum (+´) divided by (÷) the length (≠). The name of the function is its implementation.
Garo puts the two together. The first consonant says what an operator does, the vowel says what it runs over, and the last consonant says how it finishes. One syllable is one operator, and you can read it a part at a time. A few syllables together are the idiom. Garo's average reads like BQN's, the sum (닫) divided by the count (담):
(닫 ÷ 담) [1, 2, 3, 4]Glued syllables run left to right, so a word is a pipeline. 삭님3 sorts from largest, then keeps the first three: 삭님3 [3, 1, 4, 1, 5, 9, 2, 6] gives [9, 6, 5]. Add 닫 and the word is the sum of the top three: 삭님3닫 gives 20 on the same list. 닢닫 keeps the present values, then sums them: 닢닫 [1, `none, 3] gives 4.
Design philosophy
A few rules decide every question about the language. They come from the spec and its decision log.
- A syllable means exactly what its parts compose to. If you know the three parts, you can predict the operator. Each part keeps one meaning in every family, and no syllable is chosen because it sounds like a Korean word. Predictability wins over a clever mnemonic.
- Only meaningful combinations exist. A combination of parts stays empty until it has earned a meaning. That is why the lattice has gaps.
- Arrays first. A single number is an array with no axes, and values never change. Operators work on whole arrays at once, not one element in a loop.
- The choice is always visible. Nothing happens by a hidden default. A missing value spreads through a sum until you choose, in one visible syllable, to skip it or to fill it. A missing value is also not an error, and one never quietly turns into the other.
- Explicit over inferred. Garo does not guess a join key or stretch one array to fit another. Only a single number extends to fit.
- One spelling per operation. Before a new operator is added, the question is whether existing ones already compose to it.
- Laws are checked, not assumed. A law such as "two maps in a row are one map" enters the spec only after it is proved or tested for the types it claims. A false law is worse than none.
- Hangul computes, ASCII wires. The syllables do the work, and a few ASCII marks (
.,@,~, braces) connect them. A glyph's shape carries its meaning, not how it sounds.
How it is made
I worked out the design decisions in conversation with Claude Opus 5 and Opus 5.5, and wrote them down as a spec. An interpreter was then generated from that spec in Lean, a language for programs and proofs. The interpreter in turn checked the spec: wherever the two disagreed, one of them had to change.
The interpreter's laws, such as the rules for fusing two passes over an array into one, are proved in Lean. The spec's example tables are checked against the interpreter, so the spec and the implementation do not drift apart.
The interpreter compiles to C, and from there to WebAssembly. That is what runs on these pages.
Where it stands
Garo is alpha. The expression layer works: values, arrays, tables, every operator in the lattice, words and pipes. Many ideas are still to be built, such as a sentence layer for longer programs and live views that update as their data changes. Names and syllables may still change.
Read more of what I write at interjectedfuture.com.