Contents

Download

Koji 0.1.0 is a preview release. Download the package of your platform from the release on GitHub, unpack it and put its directory on your PATH.

PlatformPackage
Linux, x86-64koji-0.1.0-linux-x64.tar.gz
Linux, arm64koji-0.1.0-linux-arm64.tar.gz
macOS, Apple siliconkoji-0.1.0-macos-arm64.tar.gz
macOS, Intelkoji-0.1.0-macos-x64.tar.gz
Windows, x86-64koji-0.1.0-windows-x64.zip

SHA256SUMS has the checksums of the packages.

Linux and macOS

tar -xzf koji-0.1.0-linux-x64.tar.gz
export PATH=$PWD/koji-0.1.0-linux-x64:$PATH
kojic version

On macOS, a downloaded kojic is quarantined: xattr -d com.apple.quarantine koji-0.1.0-macos-arm64/kojic lets it run.

Windows

Unpack koji-0.1.0-windows-x64.zip, add its directory to your PATH, and run kojic version in a new terminal.

Your editor

For Visual Studio Code, install the extension Koji from the Visual Studio Marketplace, or, for VSCodium, Cursor and other editors, from Open VSX: it colors the code and shows the errors, types and declarations of the language server of Koji (kojic lsp), which any editor that speaks the Language Server Protocol can use too.

From the source

Koji builds from its repository with nothing but gzip (PowerShell on Windows): the compiler builds itself from a seed of its own executables.

git clone https://github.com/koji-language/koji
cd koji
bootstrap/build.sh           # bootstrap\build.cmd on Windows
build/kojic run examples/hello.kj

Then Getting Started walks through your first program and every command.