Tools

Karkain ships a real CLI covering build, run, test, fmt, lint, debug, prof, target, pkg, lsp, workspace, clean, explain and bench.

Quick start

$ karkain run hello.kark          # compile and run
$ karkain build hello.kark        # compile to native executable
$ karkain test                    # discover and run *_test.kark files
$ karkain fmt .                   # format all .kark files in place
$ karkain prof hello.kark         # profile a program
$ karkain target                  # list supported targets

The toolchain has two compiler engines. The default is kcc (the self-hosted compiler); the Go front end is available via --engine go or KARKAIN_ENGINE=go.

See also

Installation — install the toolchain. Build — build workflow details. Run — run workflow details.