v0.2.0

TypeScript,
compiled ahead of time.

A strict subset of TypeScript. It emits LLVM IR and links a C++ runtime: single-threaded semantics, a multithreaded event loop, memory by reference counting. Experimental — do not use it in production.

binary
274 KB
idle rss
5.3 MB
get, c=64
10,879/s
peak rss
7.9 MB

// install

Builds wave and marina-lsp from source into ~/.local/bin. Needs git, CMake, a C++20 compiler, clang, and libsqlite3. details

// what it is

compile
Lex, parse, type-check, LLVM IR, then clang. A static executable. No VM, no JIT warmup.
types
No any. Parameters must be annotated. Integers are Int8–Int64 and UInt8–UInt64 (default Int32); floats are Float32 and Float64 (default Float64). An integer widens to a float, and Float32 widens to Float64. Generics are monomorphized.
memory
Automatic reference counting. The compiler inserts retain and release. Interned string literals are immortal.
async
async/await lowers to promise state machines, resumed on a worker pool. Servers run on poll(2).
wave
init, add, check, build, run. Packages live in one global registry, not a node_modules tree.
std
net, http, fs, crypto, sql (SQLite), including an express-style server.

// hello-world.tsm

Files are .tsm, kebab-case. wave run compiles and runs.

hello-world.tsm
async function main() {
    let name = "marina"
    let todos = ["ship v0.2", "write docs"]

    const MSG = `Hello from ${name}, ${todos.length} todos`
    console.log(MSG)
}
terminal
$ wave run hello-world.tsm
Hello from marina, 2 todos

// same todos api, one vcpu

HTTP + SQLite, wrk on loopback. numbers and method

GET req/s · wrk -t4 -c64 · 30s

Marina 0.2 (evented)
10,879
Bun 1.4.3
19,285
Go 1.23
10,883
Node.js 22.23
9,889

peak rss MB · lower is better

Marina 0.2 (evented)
7.9 MB
Go 1.23
18.4 MB
Bun 1.4.3
39.4 MB
Node.js 22.23
81.1 MB

// three commands

shell
$ wave init     # package.json + src/main.tsm
$ wave run
$ wave build    # native binary in ./.marina/