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.
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.
Edit the example, then run it.
Run the sample to see its output.
Build your application with classes and interfaces. Connect it to existing native code. Keep both in the same project.
The design decisions
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.
Declare external functions with Extern and pass
callbacks with Delegate. Describe the native boundary
directly when working with system APIs or existing libraries.
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 supportFor Windows, Linux, and macOS. Choose a download
Create hello.kn and paste the Hello World example
above.
kinal run hello.kn