Skip to main content Skip to navigation
Back to Projects

Lumen

An AI-native programming language in Rust — markdown-native, statically typed, and designed for the era of LLMs.

RustLLVMMarkdownParser CombinatorsStatic Analysis

Overview

Lumen is a programming language built from the ground up for the age of AI. It treats Markdown as first-class syntax — documentation, logic, and code live in the same file — making it naturally readable by both humans and language models.

The core goal: a statically typed, expressive language that can be reasoned about and generated by AI tools without sacrificing correctness or performance.


Problem

Most programming languages were designed for human readers with IDEs and syntax highlighting. LLMs are reshaping how code gets written, reviewed, and understood — but existing languages fight against that shift. They have noisy syntax, implicit context, and poor signal-to-noise ratios for model parsing.

Lumen asks: what if the language was designed to be authored and consumed by AI from day one?


Solution

Lumen is written in Rust and uses a hand-rolled parser supporting Markdown-structured source files:

  • Markdown-native syntax — functions, types, and logic defined inside fenced code blocks within .md files
  • Static typing — full type inference with explicit type annotations where needed
  • Readable IR — the compiler emits human+AI-legible intermediate representations
  • LLM-friendly AST — designed so language models can generate valid, analyzable Lumen programs
  • Incremental compilation — module-level caching for fast iteration

The result: source files double as living documentation, test suites, and runnable programs — all in one format.


Challenges

Designing a type system that's both rigorous and LLM-friendly required a lot of constraint-solving. The parser had to handle Markdown's inherent ambiguity while maintaining determinism. Getting ergonomics right — keeping the language expressive without adding surface area that confuses models — is an ongoing design challenge.


Impact

  • Demonstrates a new category: intent-legible languages built for AI collaboration
  • Attracts interest from developers exploring LLM-first tooling and prompt engineering at the language level
  • Active R&D foundation for AI-driven code generation workflows

Reflection

Lumen started as a thought experiment: "what would a language look like if AI was the primary author?" It became a deep dive into compiler theory, type systems, and the intersection of language design with machine learning. Still evolving — every commit teaches something new about the future of programming.


Tech Stack

Rust, LLVM (planned), Markdown parser, Custom type inference engine, CLI toolchain