Almide is an open source programming language created in 2026.
| #1494on PLDB | 0Years Old |
git clone https://github.com/almide/almideAlmide is a statically typed programming language for code that AI agents write and edit. The compiler checks safety: it infers ownership, so neither people nor agents write it, and its diagnostics name the fix. One source compiles to native binaries through Rust and directly to WebAssembly, and every WebAssembly build writes out evidence of what the compiler did, which a separate program checks before the output file is written.
type Order = { id: Int, items: List[String], total: Int }
fn large(orders: List[Order]) -> List[Order] =
orders |> list.filter((o) => o.total > 500)
fn main() -> Unit = {
let orders: List[Order] = [
{ id: 1, items: ["pen", "ink"], total: 260 },
{ id: 2, items: ["desk"], total: 900 },
]
let big = large(orders)
println("${list.len(orders)} orders, ${list.len(big)} large")
for o in orders {
println("${o.id}: ${list.join(o.items, ", ")}")
}
}| Feature | Supported | Example | Token |
|---|---|---|---|
| hasForEachLoops | ✓ | for o in orders { println("${o.id}") } | |
| Conditionals | ✓ | fn sign(n: Int) -> String = if n < 0 then "negative" else "non-negative" | |
| Lists | ✓ | let words = ["a", "b"] | |
| Pipes | ✓ | orders |> list.filter((o) => o.total > 500) | |
| Pattern Matching | ✓ | fn area(s: Shape) -> Float = match s { Circle(r) => 3.14159 * r * r, Rectangle(w, h) => w * h, } | |
| Algebraic Data Type | ✓ | type Shape = | Circle(Float) | Rectangle(Float, Float) | |
| Generics | ✓ | fn first[T](xs: List[T], fallback: T) -> T = match list.get(xs, 0) { some(x) => x, none => fallback, } | |
| Anonymous Functions | ✓ | [1, 2, 3] |> list.map((n) => n * 2) | |
| Functions | ✓ | fn square(x: Int) -> Int = x * x | |
| Type Inference | ✓ | let words = ["a", "b"] | |
| Static Typing | ✓ | ||
| Booleans | ✓ | let ready = true | true false |
| Floats | ✓ | let ratio = 0.75 | |
| Integers | ✓ | let count = 3 | |
| File Imports | ✓ | import fs | |
| Strings | ✓ | "Hello, world!" | " |
| Print() Debugging | ✓ | println("Hello, world!") | println |
| MultiLine Comments | ✓ | /* A comment over two lines. */ | /* */ |
| Line Comments | ✓ | // A comment runs to the end of the line. | // |
| Comments | ✓ | // A comment runs to the end of the line. |