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. Capstone reading connects the small examples to regression, option pricing, and returns analysis.

The accompanying hello-chelis repository contains larger modules and tests. Its src/ files define functions for callers to use. A definition alone does not call the function or print a calculation. Begin here with top-level bindings that make the evaluator show values, then read those modules alongside their tests.

The repository is MIT licensed.