LHS

Stop rewriting the same program twice.

One small language that feels easy day-to-day and ships as native code— with tooling that agents can drive.

Python ease. Native ship.

Teams bounce between a high-productivity language and a systems language. LHS aims at one coherent toolchain: typed source, fast feedback, lhsc build to natives, Cranelift JIT/AOT when you want speed, and JSON diagnostics for agent loops.

Run it on your machine

Clone the repo, then check and run an example. Sources use the .lhs extension; the compiler is lhsc.

cargo run -p npc --bin lhsc -- test examples
cargo run -p npc --bin lhsc -- run --jit examples/17_use_math.lhs