Aether Programming Language
A compiled actor language whose permissions are part of the source, enforced from compile time down to libc (the libc layer on Linux/FreeBSD; Windows gets the compile-time and scope layers). No VM and no garbage collector: the compiler emits readable C.
Website: aether-lang.dev
Overview
Most languages treat "what may this program touch?" as a deployment problem. Aether makes it a language problem: code runs against an explicit grant list, enforced three times over. At compile time, --emit=lib starts capability-empty and the host opts modules in with --with=fs,net,os. At scope level, hide and seal except stop ambient names from leaking into any lexical block, a closure, a trailing-block DSL, an actor handler. At runtime, an LD_PRELOAD shim checks libc itself (open*, connect/bind, execve, mmap, dlopen, getenv) against the same grants, inherited across execve. This third layer is Linux/FreeBSD only (there is no LD_PRELOAD on Windows). See Containment Sandbox for the threat model, the prior art it draws on, and the known bypass surface.
Concurrency is actor-shaped: actor, receive and !, with automatic multi-core scheduling, lock-free mailboxes, and migration that converges chatty actors onto one core. The compiler emits readable C, not bytecode and not a VM, which is an implementation choice rather than the pitch: it buys native speed, direct linking against existing C libraries, and a runtime that ports anywhere a C toolchain reaches.
Where it sits on the OO / FP spectrum: structs are plain data, behaviour lives in free functions, and closures and trailing blocks are first-class, so the language leans closer to functional than object-oriented. There are no classes, no inheritance and no method dispatch; the one piece of OO machinery present is the actor, which is stateful and encapsulated behind a message boundary but has no polymorphism. See Language Reference § Paradigm placement.
The load-bearing features:
- Actor concurrency, scheduled across cores by the runtime: lock-free messaging, locality-aware spawning, work stealing. See Actor Concurrency.
- Config IS code: library APIs double as typed, sandboxable configuration DSLs via trailing-block closures, so operators run real Aether instead of YAML. See Config IS Code.
- Polyglot host, both directions: run Lua / Python / Perl / Ruby / Tcl / JS / Go / Java and more under the same grant list through aether-guest-languages, or embed Aether into Python, Java, and Ruby through
--emit=lib typed SDKs with per-guest memory and deadline caps. See Embedding & emit=lib.
- Networking in the stdlib: an HTTP server with TLS, HTTP/2, WebSocket, SSE, and zero-copy
sendfile(2), plus a reverse proxy with load balancing, health checks, caching and a circuit breaker. See HTTP Server and Reverse Proxy.
- Deterministic memory, no garbage collector: strings, closures and the structs, tuples and optionals built from them are reference counted by the compiler and released at a point the source shows; containers and C resources are freed with
defer. Each meaningful combination of value kind, place and transfer is a cell of the ownership grid, which CI runs on every pull request to catch leaks, double frees and use after free. See Memory Management.
- Ergonomics: type inference,
(value, err) multi-value returns, optionals and sum types checked at compile time, named and default arguments, requires/ensures contracts, @derive(eq) and @derive(schema), and a single ae command for build, run, test, fmt and packages. See Language Reference.
- Portability as a feature: Linux, macOS, Windows, FreeBSD, WebAssembly, and embedded targets; cross-compile with
ae build --target=<triple>. See Architecture.
Benchmarks
Cross-language benchmark suite based on the Savina Actor Benchmark Suite, 11 languages × 5 patterns (ping-pong, counting, thread ring, fork-join, skynet). Both the benchmark runner and the visualization server are written in Aether, dogfooding the stdlib.
make benchmark # Builds runner, runs all 55 benchmarks, opens UI at http://localhost:8080
See Performance Benchmarks for methodology and benchmarks/cross-language/ for source.
Quick Start
Install
Linux / macOS / FreeBSD, prebuilt binary (no toolchain, no build):
Every release ships a ready-to-run tarball (ae + aetherc + stdlib) named aether-<version>-<platform>.tar.gz, where <platform> is one of linux-x86_64, macos-arm64, macos-x86_64, freebsd-x86_64, android-aarch64. Take the version and your platform from the latest release, then extract and add its bin/ to your PATH:
# Substitute the latest version and your platform:
VER=0.830.0; PLATFORM=linux-x86_64
curl -fsSL "https://github.com/aether-lang-dev/aether/releases/download/v${VER}/aether-${VER}-${PLATFORM}.tar.gz" | tar xz -C ~/.local
export PATH="$HOME/.local/bin:$PATH" # add to ~/.bashrc / ~/.zshrc to persist
ae version
Linux / macOS, build from source (remote one-liner, no clone):
curl -sSL https://raw.githubusercontent.com/aether-lang-dev/aether/main/get.sh | sh
Fetches a pinned source tarball, builds the toolchain (Aether compiles to C, so the only prerequisites are a C compiler + GNU make, no tests run), and installs to ~/.local (sudo-free). Pin a version with AETHER_REF=<tag> (see the releases page for tags), or change the prefix with PREFIX=/usr/local (system-wide; needs sudo). Add ~/.local/bin to your PATH if it isn't already.
Linux / macOS, full clone install (editor extension, ae version management, shell-PATH setup, ~/.aether layout):
git clone https://github.com/aether-lang-dev/aether.git
cd aether
./install.sh
Installs to ~/.aether and adds ae to your PATH. On NetBSD and OpenBSD, see Building on NetBSD / OpenBSD for the packages and gmake CC=cc. Restart your terminal or run source ~/.bashrc, ~/.zshrc, or ~/.bash_profile. Add --contrib-too (./install.sh --contrib-too) to also build and install the native contrib modules (sqlite, avcodec, …) whose dev libraries your machine has.
Windows, download and run:
- Download
aether-*-windows-x86_64.zip from Releases
- Extract to any folder (e.g.
C:\aether)
- Add
C:\aether\bin to your PATH
- Restart your terminal (so PATH takes effect)
- Run
ae init hello && cd hello && ae run
GCC is downloaded automatically the first time you run a program (~80 MB, one-time), no MSYS2 or manual toolchain setup required.
All platforms, install, upgrade, and switch versions:
ae version list # see all available releases (newest first)
ae upgrade # install the latest release and switch to it
ae install # install the latest release (or `ae install <tag>` for a specific one)
ae use <tag> # switch to an already-installed version
Run ae version list (or check the latest release) to find the current tag; there's no need to hard-code one.
(The longer ae version install <v> / ae version use <v> forms still
work and are equivalent to ae install / ae use.)
Your First Program
# Create a new project
ae init hello
cd hello
ae run
Or run a single file directly:
ae run examples/01-language/01-hello.ae
Editor Setup (Optional)
Install syntax highlighting for a better coding experience:
VS Code / Cursor:
cd editor/vscode
./install.sh
This provides:
- Syntax highlighting with TextMate grammar
- Custom "Aether Erlang" dark theme
.ae file icons
Development Build (without installing)
If you prefer to build without installing:
make ae
./build/ae version
./build/ae run examples/01-language/01-hello.ae
The ae Command
ae is the single entry point for everything, like go or cargo: