Kinal

The Kinal
programming language

An open-source, statically typed language with LLVM native compilation, KinalVM bytecode execution, and C interoperability. Kinal 1.0 ships the first self-hosted compiler.

Try Kinal

Edit the example, then run it.

hello.kn
Output Ready
Run the sample to see its output.

Why choose Kinal

Build your application with classes and interfaces. Connect it to existing native code. Keep both in the same project.

The design decisions

Familiar ways to structure code

Static types, classes, interfaces, and properties make data and behavior explicit. Use Unit and Get to split your code into modules as the project grows.

Explore the language

Keep using your C libraries

Declare external functions with Extern and pass callbacks with Delegate. Describe the native boundary directly when working with system APIs or existing libraries.

Native interoperability

Choose how your program runs

Compile through LLVM for a native program, or use KinalVM for bytecode execution. Check the documented capabilities and limits of each backend against your project's needs.

Compare backend support

Run locally

  1. Download the toolchain

    For Windows, Linux, and macOS. Choose a download

  2. Save the example

    Create hello.kn and paste the Hello World example above.

  3. Compile and run

    kinal run hello.kn

Documentation