Everything Krypton ships, organized so you can skim or dive in.
| Platform | Backend | Output |
|---|---|---|
| Linux x86_64 | elf.k | Static ELF, direct syscalls, no libc |
| Windows x86_64 | x64.k | PE/COFF, kernel32 via krypton_rt.dll |
| macOS arm64 | macho.k | Mach-O with ad-hoc code signing |
func add(a, b) {
emit a + b
}let dbl = func(x) { emit x * 2 }
kp(dbl(5)) // 10match color {
"red" { kp("warm") }
else { kp("other") }
}struct Point { let x; let y }
let p = Point { x: 10, y: 20 }try {
throw "oops"
} catch e { kp(e) }kp(`Hello, {name}!`)~150 built-in functions plus 36 stdlib modules covering I/O, strings, numbers, lists, maps, structs, JSON, CSV, math, sorting, and more.
Linux: hello.k compiles to a 2.6 KB static ELF.
Small integers unboxed in registers. 1 + 2 is two instructions.
Single mmap region, bump pointer. Allocation is one ADD.