Installation and building

Dune is built from source with CMake. It targets C++23.

Build

git clone https://github.com/ComradeMashkov/dune.git
cd dune
cmake -S . -B build -D DUNE_ENABLE_LINT=OFF
cmake --build build -j

This produces the dune binary at build/dune. The bytecode virtual machine runs every program and needs no external toolchain.

Run a program

./build/dune examples/matrix_basics.dn

Run the tests

ctest --test-dir build

The standard library is discovered relative to the binary (and via the DUNE_STDLIB_PATH environment variable), so import math; and friends work out of the box.

Next: the command-line tool.