A systems programming languagePre-1.0 · closed beta
EN / PTGitHub

VII · Playground

Run Makoto in the browser. Not yet.

The playground arrives with self-hosting, when the compiler can build itself to WebAssembly. Until then, read the examples, copy them, and run them locally with mk run.

The smallest program. print lives in io, so even hello world imports it.

hi.mkoRuns today
use io

fn main() {
    io.println("hello from makoto")
}
Expected output
hello from makoto

Run arrives with self-hosting · Phase 3

Run it locally, today.

Linux x86_64 and Go 1.26. The compiler vendors its own clang, so there is nothing else to install.

$ go build -o mk ./cmd/mk
$ mk run hi.mko
hello from makoto
$ mk run docs/examples/mm_mixmatch.mko
gc:      3