What is this?

Algoma (or Ag for short) is a dynamic programming language that emphasizes functional simplicity and good coding ergonomics.

It’s a hobbyist’s language, in active development by the author of lzon.ca. Inspiration is taken most directly from lua and python, but many features and ideas were borrowed from other languages as well.

The primary goal of the language is to be easy to write without sacrificing too much of either readability or performance.

Algoma’s implementation is written from scratch in C++. This project began as an implementation of clox from the excellent book Crafting Interpreters by Robert Nystrom. Just like clox Algoma uses a single-pass compiler and byte-code interpreter.

Getting Started

You can begin to explore Algoma by reading one of the articles listed below. The code examples on these pages are interactive and can be executed directly in your browser. You are free to edit any of the code in-place and then re-run it.

  1. Hello, World
  2. The Fibonacci Sequence
  3. Mandelbrot Fractal

Download and Installation

Here are precompiled binaries for the primary implementation of algoma. These are statically linked so they should run correctly without additional dependencies.

I have an install.sh script available for installation on Linux systems. If you are on Linux, you can install ag directly using this command:

curl -fsSL https://algoma.lzon.ca/install.sh | sh

and if you want to uninstall, you can do so with this command:

curl -fsSL https://algoma.lzon.ca/install.sh | sh -s -- --uninstall

Feel free email me at [email protected] if you encounter any issues running either of these builds, or with the installation script.