About
What is Kinal?
Kinal is a modern, general-purpose programming language designed to combine the readability of high-level languages with the power and control of systems programming.
The Core Idea
Most programming languages force you to choose between comfort and control. Languages like C# and Java provide clean syntax, rich standard libraries, and productive tooling — but they stop short of native memory access, FFI, and runtime-level work. On the other hand, C, C++, and Rust give you full hardware control, but at the cost of complexity and readability.
Kinal exists to close this gap. It provides a single, unified language model that stays readable whether you are writing an application, a library, an OS module, or a graphics engine.
Key Features
LLVM Compilation
Kinal compiles to native code via LLVM, producing optimized binaries for Windows, Linux, and macOS across multiple architectures.
VM Execution
A custom virtual machine allows rapid development cycles. Run code immediately without waiting for full compilation.
Foreign Function Interface
Call C libraries directly from Kinal code using the built-in FFI system. No wrapper generators, no binding files — just declare and call.
Metadata & Reflection
Annotate types and members with custom metadata. Access attribute information at both compile-time and runtime for powerful metaprogramming.
Rich Standard Library
IO, networking, file system, text processing, time, web server — built-in modules that cover real-world needs without third-party dependencies.
Cross-Platform
Write once, compile everywhere. Kinal targets Windows, Linux, and macOS with consistent behavior and native performance.
Who is Kinal For?
Kinal is designed for developers who:
- Want a readable, productive language that does not sacrifice low-level capability
- Need native performance without the cognitive overhead of manual memory management
- Build compilers, tools, libraries, or runtime systems and want to stay in one language
- Want FFI and system interop as first-class features, not escape hatches
- Prefer a familiar syntax influenced by C#, Java, and modern imperative languages
Real-World Use
Kinal is not a toy language created for academic exploration. It is being used to build real systems:
- Kinal itself — the standard library and KinalVM are written in Kinal, while the core compiler is still written in C today
- kinal.org — this website is fully implemented in Kinal using its built-in web server
- Kinal-OS — an operating system kernel written in Kinal
- KNGL — a graphics engine built with Kinal