garo 가로

Garo is an array language whose operators are built, not memorized. Each one is a single syllable put together from three parts: what it does, what it runs over, and how it finishes. Learn the thirty parts and you can read most of its 258 operators on sight.

ㄷfamily · the top consonantreducecollapse a dimension
ㅏflow · the vowelalong rowsthe last axis
ㄷfinal · the bottom consonantsumhow it finishes
닫 = reduce, along rows, sum닫 [[1, 2], [3, 4]] ⇒ [3, 7]

Operators you can work out

닫 is reduce, along rows, sum. Change one part and you get its neighbor: 닥 is the largest of each row, and 랃 is the running sum. Twelve families, nine flows and nine finals: the table at the bottom of this page is the whole vocabulary.

A pipeline in one word

Glue syllables together and they run left to right: 삭님3 sorts, then keeps the first three. A dot sends data in: xs.삭님3. A pipeline stays short, and you can still read it a part at a time.

For arrays and tables

The same operators work on numbers, matrices and keyed tables. Use it for statistics, the math inside a neural network, GROUP BY and rolling windows, or to learn to think in whole arrays. It runs right here, in your browser.

things you already know

The same computations you write in NumPy or SQL. Each result here is what Garo prints, checked when the page is built. Press Try it to load one into the box above.

the whole kit

Twelve families down the side, nine flows across the top. A bright square means the pair makes real operators. Pick one to see them, then pick an operator to type it in.

under the hood

A small language, built carefully. Here is how it is made, and where it stands.

An interpreter written in Lean

The reference interpreter is written in Lean, a language for both programs and proofs. Lean compiles it to C, and the same code builds for your terminal and into the WebAssembly this page runs. There is one interpreter, not a page-only copy.

Laws with proofs

Two passes over an array can often be fused into one: a map after a map, or a filter after a filter. Garo's fusion laws, and its laws for folds and sorting, are proved in Lean. That is 927 theorems, with no step left unproved.

A spec checked against the code

The spec was worked out together with Claude Opus 5 and Opus 5.5. Its example tables run against the Lean interpreter, its type table is compared with the one the interpreter computes, and its type rule is checked against tens of thousands of generated programs.

Still alpha

What works today is the expression layer: values, arrays, tables, all 258 operators, 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.