Install Dudu

The current pre-alpha builds from source. The tagged installer verifies an immutable release before installing the compiler, project driver, language server, and editor support.

The first public tag is not published yet. Until v0.1.0-alpha.1 exists, use the checkout installation below.

Prerequisites

Ubuntu and Debian

sudo apt install git cmake clang libclang-dev g++ build-essential pkg-config

macOS Apple Silicon

xcode-select --install
brew install cmake llvm pkg-config

Install from a checkout

git clone https://github.com/dudu-language/dudu.git
cd dudu
./scripts/install-local.sh
export PATH="$HOME/.local/bin:$PATH"
dudu --version

This installs dudu, duc, and dudu-lsp into ~/.local. Pass --prefix to install elsewhere.

Tagged installer

After the first tag is published, the release installer builds the immutable source release locally and records installation ownership.

curl --proto '=https' --tlsv1.2 -sSf \
  https://dudulang.org/install.sh | sh -s -- --version 0.1.0-alpha.1

First project

dudu init hello
cd hello
dudu run

Useful commands: dudu check, dudu build, dudu run, dudu test, dudu fmt, and dudu clean.

Update and uninstall

dudu update --check
dudu update
dudu update --rollback
dudu uninstall

These commands apply only to installer-owned toolchains. Homebrew, AUR, and Debian packages remain owned by their package managers.

Editor

The pre-release VS Code extension will be available through the Visual Studio Marketplace, Open VSX, and the release VSIX. It runs dudu-lsp from the active toolchain.