Install
Fels runs on 64-bit Windows and Linux, and builds programs for both. The latest release has a download for each.
Windows
Section titled “Windows”- Download
fels-<version>-x86_64-windows.zipfrom the latest release. - Unpack it and run
install.ps1in that folder. It copies Fels to%LOCALAPPDATA%\felsand puts it on your PATH. - Open a new terminal and type
fels versionto check that it works.
- Download
fels-<version>-x86_64-linux.tar.gzand unpack it. - Run
./install.shin that folder. It copies Fels to~/.felsand puts it on your PATH. - Open a new terminal and type
fels version.
Fels needs the C++ runtime of GCC 11 or newer (Ubuntu 22.04, Debian 12, Fedora 35 and later).
Editor
Section titled “Editor”fels lsp is a language server: errors as you type, completion, hover and go to definition.
- Zed: install the Fels extension. It adds run
buttons beside
mainand each test. - Other editors: point your LSP client at
fels lsp, and use the tree-sitter grammar for highlighting.
Building Fels yourself
Section titled “Building Fels yourself”The compiler is written in Zig 0.16. You need an LLVM build that includes its C headers: on
Linux, llvm.org’s release (LLVM-22.1.6-Linux-X64.tar.xz, which the build links statically), on
Windows clang+llvm-22.1.6-x86_64-pc-windows-msvc.tar.xz.
zig build -Dllvm-path=path/to/llvmzig build test -Dllvm-path=path/to/llvmThe compiler lands in zig-out/bin.
Stuck? Ask in #help on the Fels Discord.
Next: your first program.