百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

aether

> 安全
开源

基于作用域的系统语言,可编译为可读的 C 代码。原生支持,无虚拟机,无垃圾回收器。

99 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

基于作用域的系统语言,可编译为可读的 C 代码。原生支持,无虚拟机,无垃圾回收器。

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 in-process under the same grant list, or embed Aether into Python, Java, and Ruby through --emit=lib typed SDKs with per-guest memory and deadline caps. See Embedding & emit=lib.
  • Production networking in the stdlib: an HTTP server with TLS, HTTP/2, WebSocket, SSE, and zero-copy sendfile(2), plus an nginx-class reverse proxy. See HTTP Server and Reverse Proxy.
  • A deliberate memory model: manual-first with defer, automatic string-ownership tracking, and requires/ensures contracts that compile out at zero cost. See Memory Management.
  • Ergonomics: type inference, (value, err) multi-value returns, @derive(eq), 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=. 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.

bash
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--.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:

bash
# 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 version

Linux / macOS, build from source (remote one-liner, no clone):

bash
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= (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):

bash
git clone https://github.com/aether-lang-dev/aether.git
cd aether
./install.sh

Installs to ~/.aether and adds ae to your PATH. Restart your terminal or run source ~/.bashrc, ~/.zshrc, or ~/.bash_profile.

Windows, download and run:

  1. Download aether-*-windows-x86_64.zip from Releases
  2. Extract to any folder (e.g. C:\aether)
  3. Add C:\aether\bin to your PATH
  4. Restart your terminal (so PATH takes effect)
  5. 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:

bash
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 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 / ae version use forms still work and are equivalent to ae install / ae use.)

Your First Program

bash
# Create a new project
ae init hello
cd hello
ae run

Or run a single file directly:

bash
ae run examples/basics/hello.ae

Editor Setup (Optional)

Install syntax highlighting for a better coding experience:

VS Code / Cursor:

bash
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:

bash
make ae
./build/ae version
./build/ae run examples/basics/hello.ae

The ae Command

ae 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):

bash
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 targets

Building on Windows

The 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):

  1. Install MSYS2 and open the MSYS2 MinGW 64-bit shell (not the bare MSYS shell).
  2. Install the toolchain:
    bash
    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 bc
  3. Clone and build:
    bash
    git clone https://github.com/aether-lang-dev/aether.git
    cd aether
    make ci   # full suite: compiler, ae, stdlib, REPL, C tests, .ae tests, examples

For 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:

bash
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.

Project Structure

…

Language Example

…

Closures and Builder DSL

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· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Cactor-modelactorscapability-securitycompiler

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类安全
定价开源

> 相关工具

O
OWASP ZAP
开源 Web 应用安全扫描器
O
owasp-wstg-tracker
Simple web app to track OWASP WSTG security testing progress
H
homebridge-mi-gateway-security
XiaoMi Gateway Security plugin for HomeBridge.