Install Elder

From source today, as part of the eons stack. Broader distribution is being prepared.

Requirements

For the Linux source build shown here, use CMake and a modern C++ toolchain with the eons and Bio headers and a compatible libeons.so. Optional libgccjit enables the JIT tier. A checkout with the eons dependencies already installed can build and run the interpreter directly.

Build from source

Run these commands from the Elder checkout. build-worker keeps the CMake output separate from the packaging recipes in build/elder.

cmake -S . -B build-worker
cmake --build build-worker --target elder -j 4
./build-worker/elder --version --format elder

Elder packages install under ~/.eons/packages/ by default and resolve by name at import time. Add the build directory to your path or use ./build-worker/elder in the commands below.

Check the toolchain

elder doctor verifies the runtime, ABI, and toolchain wiring in one shot; elder env --list shows every environment knob the runtime reads, with defaults and current values.

elder --version --format elder
elder doctor
elder env --list

First script

#!/usr/local/bin/elder

print "hello, elder"
print 2 + 2

Greeting: static :(
    name: string
)

g := Greeting(name = "world")
print "hello, {g/name}"

Save as hello.ldr and run with elder hello.ldr, or chmod +x hello.ldr && ./hello.ldr to use the shebang. The same file AOT-compiles with elder --aot hello.ldr when you want the native tier. Continue to the language tour or the tooling overview.