Install
curl --proto '=https' --tlsv1.2 -sSf https://dudulang.org/install.sh | shThe installer detects the host, asks before installing missing system packages, builds the current tagged release, verifies it, and updates PATH. For noninteractive setup, pass --install-deps.
Native dependency details
On Ubuntu and Debian, the installer offers to run:
sudo apt-get update
sudo apt-get install -y ca-certificates git cmake clang libclang-dev g++ build-essential pkg-config curl tarOn Apple Silicon, the installer checks the Xcode command-line tools and offers to run:
xcode-select --install
brew install cmake llvm pkg-configThe tagged source build is available on macOS, but complete Apple Silicon validation is still pending a maintained Mac.
First project
dudu --version
dudu init hello
cd hello
dudu runThe project driver provides check, build, run, test, fmt, and clean.
Package channels
Package-manager installations remain owned by their package manager. They do not use dudu update.
curl -fLO https://github.com/dudu-language/dudu/releases/download/v0.1.0-alpha.13/dudu_0.1.0-alpha.13_amd64.deb
sudo apt install ./dudu_0.1.0-alpha.13_amd64.debbrew install dudu-language/dudu/duduEditor
The Dudu extension provides syntax highlighting, semantic tokens, diagnostics, navigation, hover information, references, formatting, and inlay hints through dudu-lsp.
Visual Studio Marketplace publication is pending manual approval for the first alpha.
Update and remove
These commands apply to toolchains installed through install.sh.
dudu update --check
dudu update
dudu update --rollback
dudu uninstallUpdates build and smoke-test the replacement before changing the active toolchain. Rollback restores the previous installed version.
Development checkout
Use a checkout when working on the compiler itself. Normal users should install the tagged release.
git clone https://github.com/dudu-language/dudu.git
cd dudu
./scripts/install-local.sh
export PATH="$HOME/.local/bin:$PATH"
dudu --version