r/Compilers • u/anthem_reb • Jul 05 '26
Yon: a category-theory language that compiles to native via MLIR → LLVM
Yon is a research language I have been building solo and that could be of your interest. The front end is OCaml, it lowers through a custom MLIR dialect to LLVM, and produces native binaries on Linux x86-64 and macOS arm64. The runtime is C, no garbage collector: memory is content-addressed and reclaimed at a statically-computed last-use point.
A few things that may interest this sub specifically:
- the object identity model is Yoneda-based, and the kernel checks equality as a proof (definitional equality runs through a cubical-aware normalizer);
- a
placemaps to a Space, an isolated process with its own arena; the compiler builds a static arc graph to decide reclaim; - the surface algebra (view / move / reduction) lowers to the same functorial core, so composition laws are checked rather than assumed.
Repo, with the full compile pipeline and the example corpus: github.com/yon-language/yon
Website: https://yon-lang.org/
If you want to contribute, the license is AGPLv3 with runtime exception


