Getting started
Zov ships as a single zov executable: compiler and package manager in one
binary. This page gets you from zero to a running program in a couple of
minutes.
Install
Section titled “Install”The installer downloads one platform archive from the latest stable release:
curl -fsSL https://raw.githubusercontent.com/entropiee12/zov/HEAD/install.sh | shCurrent prebuilt targets are Linux x86_64 and aarch64, macOS x86_64 and
aarch64, and Windows x86_64. The installer detects the host and downloads
the matching zov-OS-ARCH.tar.gz archive. Each target is built and tested
in CI with a clean install, version checks, and a hello-world compile/run.
On Windows, run the installer from an MSYS2 MinGW64 shell and add the
install prefix’s bin directory to PATH.
Useful flags: --prefix DIR, --version TAG (including --version nightly), and --from-dir DIR for offline installs.
You need a C99 compiler, make, and Git. Linux builds use the TinyCC
submodule by default; macOS uses the system C compiler. On Windows x86_64,
use an MSYS2 MinGW64 shell with mingw-w64-x86_64-gcc, make, and the
standard MSYS2 Unix utilities installed. Windows builds use MinGW-w64
rather than TinyCC; MSVC and Windows aarch64 are not currently supported.
-
Clone the compiler with its submodules.
Terminal window git clone --recurse-submodules https://github.com/entropiee12/zov.gitcd zov -
Build and verify.
Terminal window make./zov --version
First file
Section titled “First file”Save this as hello.zov:
use std::io;
export fn main() i32 = { io::println("hello from Zov"); return 0;};Compile and run it:
./zov hello.zov -o hello./helloHello from Zov — that’s the whole language loop: edit, zov, run.
Project workflow
Section titled “Project workflow”For anything larger than one file, use a project:
./zov init hellocd hello../zov runzov initscaffoldszov.tomlandsrc/main.zov.zov checktype- and borrow-checks without producing a binary.zov buildandzov runcompile throughtarget/.- Projects with remote dependencies run
zov pkg fetchfirst.
The Toolchain page covers the full command set.
Editor support
Section titled “Editor support”Install the compiler first, then the
language server — both must be on
PATH. Then pick your editor:
code --install-extension zov-vscode-1.0.0.vsixzov-zed-1.0.0.tar.gz and run
zed: install dev extension with its zed directory.zov-intellij-1.0.0.zip.zov-neovim-1.0.0.tar.gz to a runtime
directory named zov.nvim, then build the Tree-sitter parser with
make -C neovim parser/zov.so.See Editor integrations for release tags, nightly builds, Tree-sitter details, and LSP configuration.