Cryn

A compiled, statically typed systems language with a tiny core. The machine has cells, connections, focus, one working value, and a value stack. 37 English commands. No symbolic operators, no semicolons, no braces. Whitespace and indentation have no meaning. Static types with defined behavior: fixed-width integers, IEEE floats, overflow wraps, division by zero aborts, float-to-int saturates, indexing is bounds-checked. Files are first-class handles with read, write, both, and append modes.

Example

define main
    set 10
    push
    set 20
    add
    output
    return
end

The machine

Compiler

The bootstrap compiler is portable ISO C11 with no dependencies beyond a C compiler and pthreads. It lowers Cryn source through a typed IR to readable C, then invokes the host C compiler to produce a native executable. Both GCC and Clang are supported as host compilers. No runtime is needed after compilation. The generated program is a normal executable with no graph overhead, no garbage collector, and no VM.

Get it

Repository · Tutorial · Language reference · Architecture

View this webpage's source (ARR)