Programming language & developer tools / Case study
Kelft
An AI-native, intent-first programming language with a self-hosted native compiler and a growing developer toolchain.
- Who it serves
- Developers exploring typed native programs and an intent-first approach to AI-assisted software development.
- What I built
- Created Kelft and its developer tooling, spanning language design, a self-hosted compiler, public specifications, native distribution, and editor support.
- Availability
- Experimental alpha
- Typed Core source
- Check and lower
- Emit native objects
- Link executable
Architecture walkthrough: source becomes checked intermediate forms, native objects, then a linked executable. The host provides platform mechanisms at a separate boundary.
Read about self-hosting and native execution boundaries
The problem
AI-assisted development still needs explicit requirements, controlled permissions, and evidence for accepting changes. Kelft explores these concerns through a programming language and its tooling, while supporting directly authored typed programs.
How it works
- Core describes executable behavior; Intent describes outcomes, constraints, and verification contracts. Their language versions are separate from the compiler version.
- The compiler frontend, analysis, lowering, and native object emission are implemented in Kelft. Object emission writes native object bytes directly without invoking a C compiler.
- Rust and C host components coordinate platform access and execution boundaries. Prepared native linkers turn object files into executables.
- The public toolchain includes source checking, diagnostics, native builds, offline bootstrap tooling, and VS Code highlighting and compiler integration.
Engineering decisions
- Keep compilation independent of AI generation: accepted source can be compiled without asking a model to generate it again.
- Separate portable language semantics from platform hosts, runtime permissions, and resource limits.
- Publish specifications, release artifacts, and provenance so developers can inspect the implementation and identify the inputs behind a release.
The result
Published compiler 0.1.0-alpha.2 with native release assets, public Core and Intent specifications, source-build instructions, and editor tooling.
Current status
Kelft is available as an experimental alpha. The native compiler and broader AI-assisted authoring workflow are at different stages of development. Check the release notes for available platforms and supported features.
Explore the project
- Explore Kelft and its specification ↗
- Public compiler source ↗
- Compiler architecture ↗
- Experimental alpha release ↗
- VS Code support ↗