Developer preview v1.1.2 — installation, packaging, and some platform support are still in progress. Read the status
Skip to content

Developer preview · v1.1.2

A safe systems language for the Amiga.

Clorraine brings Rust-style ownership and modern tooling to 68K Amiga programming. It emits plain C99, so it works with the toolchains and emulators you already use.

Apache 2.0 · No ROMs or Workbench media · Linux x86_64 release today; installers in progress.

First Light: a lighthouse on a dark headland beside a calm sea, under a glowing sunrise and a field of stars.Live demo · A500First Light16 colours · 320×256 · one blit per frame
4target profiles
81tracked SDK capabilities
43standard-library modules
0external Rust crates

See it run

A real Amiga program, live in your browser.

First Light is written in Clorraine, compiled to C99, and built for an A500. The player restores a saved machine state, so the demo starts without waiting for an operating system boot.

First Light: the lighthouse and sunrise on the Amiga screen.

First Light

Sixteen colours. One 68000. No mockups.

A dawn seascape with an ordered-dither sky, a radial sun glow, chip-memory bitplanes, and a broken water reflection. The moving water is pre-rendered into eight phases, so each frame costs one blit and one flip.

  • 320×256, 4 bitplanes, PAL A500 / OCS.
  • Runs in Copperline with its bundled AROS ROM.
  • Source, ADF, and the saved state are all in the repository.

Ownership without a garbage collector

The compiler catches what C cannot.

Moves, borrows, and deterministic drops are checked before the C compiler sees the program. A value that has been moved cannot be used again, and the compiler says exactly where.

  • One owner per value; drops run once at scope end.
  • Read-only lends, writable borrows, and explicit moves.
  • No collector, no hidden ownership runtime, no tracing pauses.
How ownership works
ownership-fail.clorejected
let n: u32 = 1;
let s: String = $"n={n}";
let t: String = s;

observe(s);
error E10020

's' was moved and cannot be used

help: re-initialize the binding or use a view

From source to silicon

One language. Four targets. Plain C99.

The compiler lowers the whole program to one readable C translation unit. The toolchain you already trust does the rest.

  1. 01.clo sourceModules, ownership, generics, and hardware access.
  2. 02Clorraine checksTypes, moves, borrows, drops, and profile rules.
  3. 03C99 translation unitInspectable output with no hidden source language runtime.
  4. 04m68k GCCAmigaOS hunk executables, or a host binary for tests.

The generated C includes the small runtime shim the target needs. It contains no ownership logic; the checks already happened in the compiler.

Clorraine is an independent project. Amiga, AmigaOS, Kickstart, and Workbench are trademarks of Amiga Corporation. Not affiliated with or endorsed by Amiga Corporation or Hyperion Entertainment.