基于作用域的系统语言,可编译为可读的 C 代码。原生支持,无虚拟机,无垃圾回收器。
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
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:
--emit=lib typed SDKs with per-guest memory and deadline caps. See Embedding & emit=lib.sendfile(2), plus an nginx-class reverse proxy. See HTTP Server and Reverse Proxy.defer, automatic string-ownership tracking, and requires/ensures contracts that compile out at zero cost. See Memory Management.(value, err) multi-value returns, @derive(eq), and a single ae command for build, run, test, fmt and packages. See Language Reference.ae build --target=. See Architecture.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:8080See Performance Benchmarks for methodology and benchmarks/cross-language/ for source.
Linux / macOS / FreeBSD, prebuilt binary (no toolchain, no build):
Every release ships a ready-to-run tarball (ae + aetherc + stdlib) named aether--.tar.gz, where `` is one of linux-x86_64, macos-arm64, macos-x86_64, freebsd-x86_64. Grab the URL for your platform from the latest release, then extract and add its bin/ to your PATH:
# Example (substitute the current version + your platform from the Releases page):
VER=0.458.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 versionLinux / macOS, build from source (remote one-liner, no clone):
curl -sSL https://raw.githubusercontent.com/aether-lang-dev/aether/main/get.sh | shFetches 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= (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.shInstalls to ~/.aether and adds ae to your PATH. Restart your terminal or run source ~/.bashrc, ~/.zshrc, or ~/.bash_profile.
Windows, download and run:
aether-*-windows-x86_64.zip from ReleasesC:\aether)C:\aether\bin to your PATHae init hello && cd hello && ae runGCC 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 ` for a specific one)
ae use # switch to an already-installed versionRun 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 / ae version use forms still
work and are equivalent to ae install / ae use.)
# Create a new project
ae init hello
cd hello
ae runOr run a single file directly:
ae run examples/basics/hello.aeInstall syntax highlighting for a better coding experience:
VS Code / Cursor:
cd editor/vscode
./install.shThis provides:
.ae file iconsIf you prefer to build without installing:
make ae
./build/ae version
./build/ae run examples/basics/hello.aeae Commandae is the single entry point for everything, like go or cargo:
…In a project directory (with aether.toml), ae run and ae build compile src/main.ae as the program entry point. You can also pass . as the directory: ae run . or ae build ..
Using Make (alternative):
make compiler # Build compiler only
make ae # Build ae CLI tool
make test # Run runtime C test suite
make test-ae # Run .ae source tests
make test-all # Run all tests
make examples # Build all examples
make -j8 # Parallel build
make help # Show all targetsThe Aether build is GNU-make based. Use one of the two paths below, nmake from a Visual Studio Developer Prompt will not work (the Makefile uses GNU-only syntax that NMAKE can't parse).
Just running Aether? Skip this section and use the release binary, no MSYS2 setup required.
Building from source, recommended (MSYS2 / MinGW-w64):
pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-make \
mingw-w64-x86_64-openssl mingw-w64-x86_64-zlib \
mingw-w64-x86_64-ca-certificates pkg-config make bcgit clone https://github.com/aether-lang-dev/aether.git
cd aether
make ci # full suite: compiler, ae, stdlib, REPL, C tests, .ae tests, examplesFor HTTPS to verify certs, the mingw-w64-x86_64-ca-certificates package above provides the bundle at /mingw64/etc/ssl/certs/ca-bundle.crt. Windows has no system PEM store, so that file (or another bundle) is what the runtime has to find. It auto-detects the default MSYS2 location and the one Git for Windows ships:
| Toolchain | Bundle |
|---|---|
MSYS2 + mingw-w64-x86_64-ca-certificates |
C:\msys64\mingw64\etc\ssl\certs\ca-bundle.crt |
| Git for Windows (already installed if you cloned with it) | C:\Program Files\Git\mingw64\etc\ssl\certs\ca-bundle.crt |
Anywhere else — a non-default MSYS2 root, a custom bundle, a corporate CA — export SSL_CERT_FILE to the bundle's native Windows path:
export SSL_CERT_FILE="C:/Program Files/Git/mingw64/etc/ssl/certs/ca-bundle.crt"An MSYS-style path (/mingw64/...) will not work: a compiled Aether program is a plain Win32 binary and does not inherit MSYS2's virtual mounts. A build that finds no bundle fails every HTTPS request at the handshake.
Note also that a source build without OpenSSL has no TLS backend linked at all; such a program must import std.cryptography.tls13_client to get HTTPS. The error message says so if you forget.
Native MSVC (cl.exe / nmake): not currently supported as a full build path, tracker #99. The MSVC matrix job in CI verifies our public headers parse under cl.exe so a future native MSVC port stays feasible, but make (the build system itself) requires GNU make. The MSYS2 MinGW build above is the supported source-build path for Windows today.
……Aether closures take three shapes after a function call. They look similar but have different semantics, picking the right one is the language's main lever for separating DSL structure from runtime behaviour.
| Mode | Syntax | Semantics |
|---|---|---|
| Immediate | func() { block } |
Runs inline at the call site, used for DSL structure |
| Closure | func() |x| { block } |
Real closure with explicit params, hoisted to a C function |
| Callback | func() callback { block } |
Real closure that captures enclosing scope, no params needed |
// Immediate, declarative structure, runs during construction
panel("Settings") {
button("OK")
button("Cancel")
}
// Closure, explicit params, deferred invocation
app暂无开放 Issues,或尚未同步最近议题。