I have designed the Dim programming language, a high-performance, statically-compiled language that unifies Pythonic ergonomics with C-level systems capabilities and first-class AI support.
Current Status: Phase 2 complete — Full compiler pipeline from lexer to LLVM IR codegen implemented, with 35 passing tests.
Dim combines Python's readability with Rust-style safety.
fn process(data: Buffer) -> Result[string, Error]:
# Compiler enforces ownership and exhaustive matching
match data.to_string():
Ok(s) => return Ok(s)
Err(e) => return Err(e)
AI models and Tensors are native types. The compiler performs autodiff on the IR and lowers to GPU kernels via MLIR.
prompt SecurityAudit(code: string):
role system: "Expert auditor."
role user: "{code}"
output: AuditReport # Structured, type-safe output
Capability-based security and symbolic execution ensure that critical systems code is provably correct and isolated.
verify:
# Proves no buffer overflow in this block at compile-time
assert index < buffer.len
- Technical Specification
- Formal EBNF Grammar
- POC Lexer (Python)
- Examples Catalog
- Lowering Logic Overview
The design was verified through:
- Structural Logic: EBNF grammar consistency.
- Lexical Analysis: POC lexer correctly tracks Python-style indentation.
- Cross-Domain Ergo: Examples for AI Agents, Cyber-Sec parsers, and Web-Interop.
- Compiler Path: Detailed conceptual mapping from source to binary through MIR, MLIR, and LLVM IR.