Why Krait?
- Transpiles directly to NASM assembly
- Perfect for kernel and bootloader development
- Includes
typedef
,namespace
, inlineasm
, and memory access - No runtime, no garbage collection – raw control over hardware
- Simple, readable syntax but with powerful system-level capabilities
Hello, Krait
let int x = 3;
let int y = 4;
let int sum = x + y;
print sum;
Pointer Access
let int* ptr = &x;
print *ptr;
Inline Assembly
asm {
mov rax, 1
mov rdi, 1
lea rsi, [message]
mov rdx, 13
syscall
}
Documentation
The Krait language is designed for systems programming enthusiasts. It’s lightweight, direct, and powerful. You can:
- Write a kernel with full memory control
- Use namespaces to organize your code
- Define low-level types and structures
- Embed assembly for device control
- Control hardware without the overhead of a runtime
Documentation will be published soon. Stay tuned for the developer handbook and example OS projects.
Download
You can get started with Krait right now:
- View on GitHub
- Run
python3 krait_transpiler.py yourfile.krait
- Compile the result with NASM + LD into a bootable binary