Skip to content

Learn Chelis

Start with a program that adds two vectors. Change one input, check the result, and then deliberately give it the wrong shape. The next lessons use the same small tensors to explain borrowing, numeric precision, and derivatives.

You need a Chelis installation and a text editor. These lessons use standalone files with no package dependencies. They assume you have written a function before; they do not assume you know a tensor framework or a functional language.

Create your first program, then follow the five lessons. Each lesson includes the source and a result captured from the compiler, an explanation, and a change to try.

The Surf and Deep guide shows how the compiler represents your function. Read a larger calculation applies them to linear regression, Black-Scholes pricing with Greeks, and returns and risk statistics.

The accompanying hello-chelis repository packages larger examples as modules. A module defines and exports functions but does not call them, so evaluating one shows no result. The capstone page gives each key function's signature and body, and a short file that imports it, calls it, and prints the result.

The repository is MIT licensed.