OVERVIEW
AUTONOMOUS MONOREPO ECOSYSTEM

Architectural Precision.
Deterministic Systems.

Kale is an autonomous systems programming language engineered without compromise: direct LLVM 18 IR emission, stack-allocated data structures, zero runtime garbage collection, and sub-millisecond graphics.

Deterministic Compilation Pipeline
Source .klAST BinderLLVM 18 IRLLD Linkx86_64
Kale Classical Architecture
Memory Subsystem

Stack Primitives

0x7FFE00: Struct [f32; 4]
0x7FFDF0: PieceTable Entry
0x7FFDE0: Base Frame Pointer

No garbage collection pause. Struct values and arrays stack allocated with deterministic deallocation.

Graphics Pipeline

144Hz Latency

Input: 0.8msBudget: 6.94ms
Buffer EditAtlas Quad BatchVSync

Piece Table buffer engine coupled with dynamic stb_truetype atlasing rendered in a single draw call.

Kernel Subsystem

Bare-Metal x86_64

Execution Mode64-bit Long Mode
Paging4 KB Physical Frame
FramebufferDirect Linear LFB

Multiboot loader and IDT dispatcher running directly on physical hardware without host OS dependencies.

Revision Control

Git-Compatible VCS

Tree (Blob)
──>
Commit
──>HEAD

Native Git object database, SHA-1 tree packing, and distributed revision history written in pure Kale.

Architectural Panorama
FLAGSHIP TOOL/editor/

GPU-Batched Typography Engine

Text rendering in Kale operates on dynamic stb_truetype bitmap atlasing. Each character glyph is uploaded into a unified texture array at start of frame, and text spans are batched into textured quad arrays drawn in a single state call.

Input Latency
< 0.8ms
Buffer Speed
O(1) Piece Table
CORE COMPILER/src/kale/

Direct LLVM IR & Native FFI

Kale transforms high-level syntax into clean, unbloated LLVM IR. Native dynamic linking flags (-l and -L) connect directly to Windows Win32, GLFW3, OpenGL32, and SQLite3 libraries with zero foreign function overhead.

// Direct Native Linker Invocation
python -m kale.cli build app.kl -o bin/app.exe -lglfw3 -lopengl32
Architectural Lithograph
Classical Monument
OPERATING SYSTEM / sys/

x86_64 Long Mode Microkernel

Multiboot header, GDT/IDT descriptors, and hardware linear framebuffer driving desktop widgets directly on bare metal without standard library runtime.

Classical Archway
DISTRIBUTED VCS / vcs/

Git-Compatible Object Database

Pure Kale implementation of SHA-1 hash trees, zlib-compressed commit objects, packfile delta parsing, and distributed repository push/fetch.

Kale Classical Architectural Lithograph
COMPILER CORE SPECIFICATION

LLVM 18 IR Emitter & Native JIT Engine

Kale transforms statically-typed .kl source code directly into LLVM 18 Intermediate Representation with zero intermediate translation overhead.

I. Direct Clang & LLD Linker
Standalone .exe emission with direct native dynamic linking to GLFW3, OpenGL32, Win32, and SQLite3.
II. Pratt Parser & Lexical Binding
Operator precedence climbing with hierarchical lexical scopes, constant immutability, numeric promotion, and instant caret diagnostics.
III. In-Memory ORC/MCJIT Execution
Instant zero-compilation-delay execution via uv run kale run for rapid scripting and sub-second feedback loops.
Inspect Compiler Codesrc/kale/codegen/
Official Repository

tomlin7 / kale

Star on GitHub

The entire Kale monorepo—compiler, standard library, 144Hz editor, Git-compatible VCS, linear window manager, SQL engine, and bare-metal OS—is completely open source and distributed under the MIT license.

CLONE WITH SUBMODULESbash / zsh / pwsh
git clone --recurse-submodules https://github.com/tomlin7/kale.git
BRANCH
master
LICENSE
MIT Open
CONTRIBUTIONS
Welcome
Social Transmission

X / Twitter

SOON

Release dispatches, compiler benchmarks, 144Hz editor demos, and architectural whitepapers broadcast soon.

@kalesystemsBroadcast Pending
Security & Integrity

Signed Releases

VERIFIED
GPG:1B91 7D47 79A6 102E
Binary ProvenanceDeterministic Build
The Grand Monorepo Registry

Select an Architectural Module

18 Autonomous Modules • Native x86_64

Kale Compiler

Kale Compiler

v0.2.0
src/kale/Core Toolchain

The beating heart of our language. High-performance LLVM IR code generator with strict type inference and native FFI.

Inspect Specification
Kale Editor

Kale Editor

v0.2.0
editor/Flagship Apps

Sub-millisecond input latency, piece table text buffer, and silky smooth 144Hz GPU typography.

Inspect Specification
Kale VCS

Kale VCS

v0.1.0
vcs/Flagship Apps

Pure Kale SHA-1 hashing, immutable DAG object database, staging index, and porcelain CLI suite.

Inspect Specification
libs/render

libs/render

v0.1.0
libs/render/Foundation Libraries

Dynamic VBO/EBO geometry batching, SDF rounded rectangles, and high-DPI font rasterization.

Inspect Specification
libs/ui

libs/ui

v0.1.0
libs/ui/Frameworks & UI

Stateless widget declarations, automatic layout stacks, and responsive mouse/keyboard event routing.

Inspect Specification
libs/framework

libs/framework

v0.2.0
libs/framework/Frameworks & UI

Event loop orchestration, multi-monitor high-DPI scaling, and 144Hz frame pacing.

Inspect Specification
libs/net

libs/net

v0.1.0
libs/net/Foundation Libraries

Winsock2 networking, non-blocking TCP streams, and RFC 7230 compliant HTTP client & server.

Inspect Specification
libs/web

libs/web

v0.1.0
libs/web/Frameworks & UI

Parameterized radix trie router, JSON serialization, and server-side template engine.

Inspect Specification
libs/sql

libs/sql

v0.1.0
libs/sql/Foundation Libraries

Native SQLite3 C ABI binding, prepared statements, and type-safe query builder.

Inspect Specification
packages/std

packages/std

v0.2.0
packages/std/Core Toolchain

Core data structures, high-performance string operations, filesystem utilities, and buffered I/O.

Inspect Specification
os/ (Kale OS)

os/ (Kale OS)

v0.1.0
os/Low-Level & OS

Multiboot x86_64 loader, physical page frame allocator, preemptive multitasking, and linear framebuffer.

Inspect Specification
sys/sysmon

sys/sysmon

v0.1.0
sys/sysmon/Low-Level & OS

Interactive TUI process inspector, CPU core utilization sparklines, and hardware telemetry.

Inspect Specification
libs/term

libs/term

v0.1.0
libs/term/Foundation Libraries

ANSI escape sequence state machine, pseudoterminal (pty) abstraction, and cell grid buffer.

Inspect Specification
libs/fs_watch

libs/fs_watch

v0.1.0
libs/fs_watch/Foundation Libraries

High-frequency file change notifications via ReadDirectoryChangesW, inotify, and kqueue.

Inspect Specification
libs/audio

libs/audio

v0.1.0
libs/audio/Foundation Libraries

WASAPI exclusive-mode PCM playback, multi-channel voice mixing, and audio synthesis.

Inspect Specification
libs/physics

libs/physics

v0.1.0
libs/physics/Foundation Libraries

Gilbert-Johnson-Keerthi (GJK) collision detection, spatial hashing, and symplectic Euler integration.

Inspect Specification
libs/tls

libs/tls

v0.1.0
libs/tls/Foundation Libraries

ChaCha20-Poly1305, AES-256-GCM, SHA-256/512, and pure Kale TLS 1.3 client.

Inspect Specification
apps/lsp

apps/lsp

v0.1.0
apps/lsp/Flagship Apps

JSON-RPC 2.0 language server providing completions, diagnostics, hover docs, and jump-to-definition.

Inspect Specification
tools/pkg (kale-pm)

tools/pkg (kale-pm)

v0.1.0
tools/pkg/Core Toolchain

Hermetic monorepo dependency graph resolver, semantic lockfiles, and distributed binary cache.

Inspect Specification
apps/kv (kaledis)

apps/kv (kaledis)

v0.1.0
apps/kv/Flagship Apps

RESP-compatible in-memory database daemon with zero-latency TCP networking and hash map storage.

Inspect Specification