---
title: "Feature Status"
description: "What actually compiles — the gap between type-checking and lowering, which stdlib methods are still declaration-only, and how to test any API yourself."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.atoll.workreef.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Feature Status

Atoll's stdlib declares more than the backend implements. That is not a
secret failure mode — the compiler reports it precisely — but it does mean
**`atoll check` passing is not the same as your program compiling.** This page
tells you where the line currently sits and how to test any API yourself.

## The two gates

`atoll check` resolves names, types, effects, and errors. `atoll build` does
all of that and then lowers to WebAssembly. Only *reachable* code is lowered,
so the second gate is the one that finds a missing implementation:

```atoll refused=ATOLL2003
fn shout(word string) string {
    return word.to_upper_case()
}

fn main() void {
    println(shout("ship"))
}
```

```text
$ atoll check src/main.at
error[ATOLL2003]: no method `to_upper_case` on type `string` at src/main.at:2:17
1 error(s)
```

Two consequences follow, and both matter in practice:

- An unimplemented method inside a function nobody calls will never be
  reported. Dead code is not lowered.
- A program that checks clean can still stop at `build`. Run `atoll build`
  before you believe an API works.

## Test any API in six lines

The fastest way to settle a question about the stdlib is to call the method
from `main` and build:

```atoll fail
import intrinsics

fn main() int {
    x := unsafe { intrinsics.memory_size() }
    return 1
}
```

```text
$ atoll build src/main.at
`main` (#6220) did not lower: [UnloweredIntrinsic("memory_size")]
1 error(s); build aborted
```

Three outcomes are possible, and each tells you something different:

| Result | Meaning |
| --- | --- |
| `ATOLL2003: no method X on type Y` from `check` | Not in the stdlib at all — you have the wrong name or the wrong receiver |
| `did not lower: [...]` from `build` | Declared in the stdlib, nothing behind it — the list names what the backend could not turn into wasm |
| `ATOLL6002` from `build` | Implemented, but you called it with the wrong argument or closure shape |
| `Wrote 1 unit(s)` | Implemented end to end |

A declaration the backend cannot build is refused by `atoll build` with
`did not lower`, naming the construct; no `check`-time code reports it.

The stdlib files themselves are readable source: `stdlib/*.at`. A method
declared there **without a body** is a candidate for that refusal — but not a
certainty, because many bodyless declarations are backed by an intrinsic or a
host import (`Map.get`, `List.to_string`, `string.split` all work).

## Not in the stdlib

**Tracing and metrics** — the `trace` and `metric` modules, `@trace`,
`@metric`, and OpenTelemetry export — are
[designed](https://docs.atoll.workreef.dev/language/standard-library/tracing/) and not built.

The `string` names below are not declared at all — `ATOLL2003` at the call
site, refused by `atoll check`.

### `string`

**Case is spelled as Rust spells it.** `to_upper_ascii` and
`to_lower_ascii` turn ASCII's letters alone. With `import text`, `to_upper`
and `to_lower` map every character as Rust's `to_uppercase` and
`to_lowercase` do, `ß` to `SS` and a word's last `Σ` to `ς` included, and
`char.is_upper_case` and `is_lower_case` answer Unicode's case; a file without
the import has none of the four, and is told to add it. `to_upper_case`,
`to_lower_case`, `capitalize` and `title_case` are not declared. The `char`
predicates answer Unicode's classes under their plain names and ASCII's under
the `_ascii` forms, as Rust's do.

`replace_first`, `reversed`, `pad_start`, `pad_end`, `take`, `take_last`,
`drop`, `drop_last`, `first`, `last`, `is_blank`, `count`,
`equals_ignore_case`, `compare_to_ignore_case`, `split_with_limit`, `lines`,
`words`, `enumerate`, `map`, `filter`, `any`, `all`, `none`, `fold` and
`to_bytes` **are written**, in Atoll, in `stdlib/string.at`, along with
`string.from_utf8`.

Also implemented: `len`, `is_empty`, `is_not_empty`, `trim`, `trim_start`,
`trim_end`, `contains`, `starts_with`, `ends_with`, `index_of`,
`last_index_of`, `split`, `substring`, `slice`, `get`, `to_int`, `to_float`,
`to_bytes`, `string.from_utf8`, `compare_to`, `to_string`, `repeat`, `replace`.

**`len()` is bytes and `get(i)` answers a `byte?`** — an index should be the
cheap one. `string` has no `size()` — use `len()`. Access is not by
character.

### `List[T]`

**Nothing is missing.** `join`, `join_of`, `chunked`, `windowed`, `group_by`,
`associate`, `zip`, `flatten`, `distinct_by` and `shuffled` were listed here as
not implemented; all ten have bodies in `stdlib/list.at` and all ten compile end
to end. The whole surface lowers, including the parts people reach for most: `map`, `filter`, `fold`, `reduce`, `scan`, `flat_map`, `any`, `all`,
`none`, `find`, `find_index`, `count`, `sorted`, `sorted_by`,
`sorted_descending`, `sorted_by_descending`, `distinct`, `take`, `skip`,
`take_while`, `skip_while`, `reversed`, `partition`, `associate_by`,
`zip_with_index`, `plus`, `plus_all`, `union`, `intersect`, `subtract`,
`to_set`, `min`, `max`, `sum`, `average`, `min_of`, `max_of`, `sum_of`,
`min_by`, `max_by`, `slice`, `clone`, `capacity`, `to_string`.

### `Map[K, V]` and `Set[T]`

Both hash types are implemented broadly — lookup, mutation, iteration,
`filter`/`map`/`fold` families, and the set algebra all lower.

`SortedMap[K, V]` and `SortedSet[T]` are a different matter: they are declared
types whose entire method surface is unimplemented, and the ordered accessors
that would return them (`Map.first_key`, `Map.floor_key`, `Map.head_map`,
`Set.first`, `Set.floor`, `Set.head_set`, `to_sorted_map`, `to_sorted_set`)
are not reachable from `Map`/`Set` at all — those calls fail at `check` with
`ATOLL2003`. Treat ordered collections as absent.

## The other build-only failure: ATOLL6002

A second class of error also survives `check` and dies at `build`: passing a
builtin a closure of the wrong shape. `List.sorted_by` takes a *key* function
`fn(T) -> K`, not a comparator, and inference does not catch the difference:

```atoll refused=ATOLL2002
fn main() void {
    xs := [3, 1, 4]
    println("${xs.sorted_by((a, b) => a - b).len()}")
}
```

```text
$ atoll check src/main.at
error[ATOLL2002]: expected `fn(int) -> ?2010`, found `fn(?2011, ?2011) -> ?2011`
at src/main.at:3:29
1 error(s) found
```

**`check` reports it**, at the call: the shapes are compared where the closure
is passed, and the message prints both of them.

`ATOLL6002` still exists and still fires for an arity mismatch mono reaches
first. When you see it, read the stdlib signature for the named method and check
the arity of every closure and argument you passed. The correct call above is
`xs.sorted_by(v => v)`. `List.reduce` is `reduce(initial, fn(R, T) -> R)`,
`Map.map_values` takes `fn(K, V) -> V2`, and a window takes a range —
`xs[0..2]`, not `xs.slice(0, 2)`.

## Working around a gap

Every gap above has a loop-shaped workaround, and the loop compiles:

```atoll run=0
fn join_with(parts []string, sep string) string {
    mut out := ""
    for part in parts {
        if !out.is_empty() { out += sep }
        out += part
    }
    return out
}

fn chunk(xs []int, size int) [][]int {
    mut out: [][]int = []
    mut current: []int = []
    for x in xs {
        current.push(x)
        if current.len() == size {
            out.push(current)
            current = []
        }
    }
    if current.is_not_empty() { out.push(current) }
    return out
}

fn main() void {
    println(join_with(["ship", "review"], " / "))
    println("SHOUT".trim())
    for group in chunk([1, 2, 3, 4, 5], 2) {
        println("${group.len()}")
    }
}
```

When you hit a gap, prefer a local helper over restructuring your data. The
missing methods are missing implementations, not missing designs — their
signatures are stable.

## Language constructs

The language itself, as distinct from the library, is in much better shape.
Every construct the guide documents lowers and runs. A single program
exercising declarations, generics, traits, errors, and collections:

```atoll
enum Priority { Normal, Urgent }

error WorkError { EmptyTitle }

struct WorkItem {
    title    string
    priority Priority
    done     bool
}

trait Summary {
    fn summary(&self) string
}

impl Summary for WorkItem {
    fn summary(&self) string {
        marker := match self.priority {
            Normal => "-"
            Urgent => "!"
        }
        return "${marker} ${self.title}"
    }
}

fn best[T: Comparable[T]](values []T, fallback T) T where T: Clone {
    mut winner := fallback
    for v in values {
        if winner < v { winner = v.clone() }
    }
    return winner
}

fn normalize(title string) string ! WorkError {
    clean := title.trim()
    if clean.is_empty() { error EmptyTitle }
    return clean.clone()
}

fn main() void {
    match normalize("  Publish guide  ") {
        Ok(title) => {
            item := WorkItem { title: title, priority: Urgent, done: false }
            println(item.summary())
        }
        Err(EmptyTitle) => println("empty title")
    }
    println("${best([3, 9, 4], 0)}")
}
```

Concurrency lowers too — `spawn`, `Task.await`, `Task.join`, `Task.cancel`,
`select`, `race`, and `Stream[T]` (`send`, `try_send`, `recv`, `try_recv`,
`close`) all reach WebAssembly:

```atoll
import task

fn produce(s task.Stream[int]) void {
    mut i := 0
    for i < 3 {
        if !s.send(i) { return }
        i += 1
    }
    s.close()
}

fn main() void {
    s := task.Stream.new[int](4)
    worker := spawn { produce(s) }
    mut total := 0
    for Some(v) := s.recv() {
        total += v
    }
    worker.join()
    println("total ${total}")
}
```

`Stream` and `Task` are the `task` module's, hence its `import`; `spawn`,
`select` and `race` are syntax and need none.

The producer here has no result worth taking, so `join()` — the wait without
the value, `true` if the task completed and `false` if it was cancelled — is
the call that fits. `Task[T].await()` answers `T?`, where `None` means the
task was cancelled and nothing else.

A `Stream` is drained with `for Some(v) := s.recv()`, not `for v in s`: it has
no `iterator()`, and `recv`'s `None` means closed and drained rather than
merely empty at this instant.

So does integrated SQL, given a `schema` and `model` in the same unit:

```atoll
import sql.{QueryError}

schema shop

model Item {
    @id
    id: int
    name: string
    price: float
}

fn cheap(limit float) []Item ! QueryError {
    return FROM Item WHERE price < limit?
}

fn main() void {
    match cheap(10.0) {
        Ok(rows) => println("${rows.len()} rows")
        Err(e) => println("query failed")
    }
}
```

Two constructs to know about, because they parse without doing what you might
expect:

- **Decorators.** The syntax `@name(args)` parses on any declaration, but only
  compiler-recognized names have meaning (`@id` on a model field,
  `@allow(naming)` on a declaration). An unrecognized decorator is not an
  extension point.
- **The naming lint.** `ATOLL7002` warns by default, as Rust's and Go's
  do; `@allow(naming)` keeps one declaration's name as written.

## Historical declarations

Several legacy design documents describe an application framework that the
current declaration parser does not accept. If you find one of these in an old
document or an LLM's suggestion, it is not current syntax:

| Legacy concept | Current status |
| --- | --- |
| `actor`, actor messages, supervision | No `actor` declaration; use structs, tasks, and streams |
| `service` declarations, implicit wiring | `service` declares an API and is served over REST and Atoll RPC; see [Services](https://docs.atoll.workreef.dev/language/services/) |
| `topic` / `messages` declarations | Use `Stream[T]` or a host API |
| `job` / `workflow` declarations | Scheduling and orchestration belong to a host layer |
| Implicit `context` parameters | No implicit threading rule; pass a parameter |
| UI | `component` declarations render as HTML on the server; the client is not built (see [Components](https://docs.atoll.workreef.dev/language/ui/)) |
| Auth, AI, MCP, route, event decorator catalogs | Generic decorator syntax parses; the behavior is not in the compiler |
| Model inheritance and behaviors | Superseded by the current SQL `model` declaration |
| Logger facade, automatic error logging | No stdlib logger; `println` and host integrations are separate |

Likewise, several `docs/builtin/` files describe library types that are not
installed: `Any` (runtime type erasure), `Email`, `Phone`, `Url`, `Money`,
`Queue`, `Stack`. Nothing prevents a library from defining these; their
absence from the stdlib means their behavior is not a language contract.

## What "verified" means on a page

Each page in this guide carries a `status` field:

- **verified** — every code block on the page passes `atoll check`, and every
  block with an entry point also passes `atoll build`. The book's example gate
  enforces this.
- **provisional** — the core is implemented but the public contract is still
  moving; individual claims are backed by narrower evidence.
- **planned** — a design that has not landed. Its blocks are marked
  ` ```atoll planned `: the gate holds each to *not* compiling, and fails the
  day it compiles, so the word comes off as the design lands. [Tracing](https://docs.atoll.workreef.dev/language/standard-library/tracing/)
  is one.
- **historical** — preserved for context; does not define current behavior.

A block marked ` ```atoll fail ` in the source is one the compiler *must*
reject; the gate fails if such a block starts compiling. That is how the
guide's error examples stay honest as diagnostics change.

If you find a documented API that does not build, that is a book bug and a
compiler gap at once — report both. See
[Diagnostics](https://docs.atoll.workreef.dev/language/diagnostics/) for what to include.

Source: https://docs.atoll.workreef.dev/language/feature-status/index.mdx
