Actor-first programming ยท experimental language
Write Atto. Run locally.
Explore AttoLang's actor-first design and try a real source-to-WebAssembly subset compiler in your browser. Source compilation runs in the browser; the published subset and its limitations are documented. Proud member of the "just works" club.
pub fnc main(): int {
val x: int = 6;
return x * 7;
}
Source-to-Wasm ยท executed in Chromium CI
43 real AttoLang programs you can run
Every program below compiles with the pinned Rust/Wasm browser compiler and has an exact execution oracle. Open one to see its Atto source, generated WebAssembly and real guest output. Other advanced language designs remain explicitly syntax-only until verified.
Functions, pipelines and errors
- Direct lambdas
- Closures and functors
- Functional pipelines
- Conditional returns
- Trap and Result
- Defer and recover
- Try/catch/finally and recover
- Result/Option ? propagation
- Result / Option
- Result / Option end syntax
- Lexical scope and pure
- Function pipelines |> and <|
- Tasks: task { }, await and do task
- Timers: await sleeper(100ms)
- suspends: await, task and suspending lambdas
- susp shorthand and suspending lambda
- Borrows end before await
Types, ownership and state
- Bitwise masks and shifts
- Deferred-final class identity
- Modules
- Traits and interfaces
- Diamond inheritance
- Structs, records and tuples
- Critical state containers
- Borrow / copy / take / share
- Independent flat-class copy!!
- Executable return-first <- functions
- Executable soa i64 struct-array layout
- Executable aos i64 struct-array layout
- Executable aosoa(4) i64 struct-array layout
- Executable delimited lambdas
- Visibility modifiers
- Generic inference and as Type
- Typed local pointers
Verified scope: this pinned browser compiler only; not a certification of independent native, Java, LLVM, .NET or other backends.
Two Wasm modules, one browser
The static website serves a compiler built to Wasm. It compiles Atto source into a second Wasm module and executes that generated module inside a disposable worker with restricted host imports and execution deadlines.
Scope: The browser playground currently supports a subset with functions, recursion, checked 64-bit integers, booleans, control flow and standard output. Actor examples also exercise browser Workers, but these demonstrations are not a guarantee of native backend parity. The canonical compiler contract describes the implemented guest subset.
Local saved drafts remain in this browser unless you explicitly export or share them. The generated Wasm can be downloaded for inspection.
Explore the open source ecosystem
Find your next AttoLang starting point
These links lead to source, design, and test repositories. A repository's presence does not certify a feature, backend, release, or cross-backend parity. Check each repository's implementation and current test evidence. Linked source and tooling repositories currently require authorized GitHub access; visitors without permission may see a 404 page.
Language and validation
Read the language contract and inspect the tests that define portable behavior.
Compiler sources
Explore independent backend implementations; support levels and runtime guarantees vary.
Learn and build
Try the documented browser subset or explore examples and editor tooling.