OverviewTypeScriptKotlinPython

Kotlin

Write a small numeric program in Kotlin. zlow compiles it to a native binary — no kotlinc, no Gradle, no JVM. Anything we don't support yet gets a clear error, not a guess.

Project setup

zlow.json in the project root names the language and entry file:

JSON
{ "language": "kotlin", "entry": "src/main.kt" }

native

Terminal
zlow native .                       # zlow.json in the current dir
zlow native src/main.kt --emit-llvm out.ll