Skip to content
admlangPublic

About

ADM programming language

Resources

Stars

4 stars

Watchers

1 watching

Forks

Latest commit

 

History

56 Commits

Folders and files

Repository files navigation

ADM

ADM is a statically typed, multi-paradigm programming language. This repository holds the released language packages and the sources of the prelude and standard library every program is checked against.

Install

Automatic (Linux and macOS, current user, no sudo):

curl -fsSL https://raw.githubusercontent.com/admlang/adm/main/install.sh | sh

The script downloads the latest release for your system into ~/.adm and adds ~/.adm/bin to your PATH. ADM_VERSION=0.1 installs a specific release; ADM_INSTALL_DIR changes the location.

  • Linux x86-64 with glibc 2.35 or newer (Ubuntu 22.04, Debian 12, Fedora 36 and later).
  • macOS 12 or newer on Apple Silicon, with the Xcode Command Line Tools (xcode-select --install): programs build with their clang and the macOS SDK. Not on macOS yet: programs that open UI windows, web builds (--os wasm), file watching, the sandbox and --hot.

Manual: download adm-<version>-linux-amd64.tar.gz or adm-<version>-darwin-arm64.tar.gz from the releases, unpack it anywhere, and put its bin/ directory on PATH. The compiler finds lib/ (prelude and standard library) and, on Linux, tools/ (bundled clang and lld) relative to itself.

tar -xzf adm-<version>-<os>-<arch>.tar.gz
export PATH="$PWD/adm-<version>-<os>-<arch>/bin:$PATH"
adm version

On macOS, a package downloaded with a browser is quarantined and Gatekeeper refuses to run it; clear the mark after unpacking with xattr -dr com.apple.quarantine adm-<version>-darwin-arm64 (the curl install needs nothing of the kind).

Later, adm update installs the newest release over the current one, and adm version says when there is one.

Editor plugins

The plugins live in their own repository, admlang/plugins. Both run the installed adm (adm lsp for language features), so install ADM first.

  • IntelliJ IDEA, CLion and other JetBrains IDEs (2025.2 and later): language features, run and debug, and the ADM tool window (project info, libraries, documentation, tests with coverage, audit, lint, live services). adm-intellij.zip is attached to each release: Settings → Plugins → ⚙ → Install Plugin from Disk…, pick the zip, restart.
  • Visual Studio Code (1.88 and later): language features, syntax colouring, check suites in the Testing view, commands and tasks for adm run, build, check, test, lint and fmt. Install it from the Marketplace (code --install-extension admlang.adm), or take adm-vscode.vsix from a release and use Extensions: Install from VSIX….

First program

application Hello {
	def new(args string[]) int {
		println("hello", 6 * 7)
		return 0
	}
}
adm run hello.adm

Layout

  • lib/prelude — the builtin module: strings, arrays, maps, numbers, channels, annotations
  • lib/std — the standard library
  • install.sh — the installer above; adm update does the same for an existing install
  • VERSION — the released compiler version

Documentation: https://adm-lang.dev. Libraries are published through the registry.

About

ADM programming language

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages