Every tokenizer and model we've shipped starts from the same premise: Somali deserves to be a first-class citizen in software, not an afterthought bolted onto English tooling. Soplang takes that premise somewhere new: a real programming language, with syntax written natively in Somali. Version 2 runs on an interpreter; version 3, which we are building now, puts a real compiler behind it.
Why a Somali language
Learning to program in a second language adds a layer of translation before a beginner ever gets to the actual logic: English keywords, English error messages, English documentation. Soplang removes that layer: variables are declared with "door," functions with "hawl," loops and conditionals read the way a Somali speaker would naturally describe them.
It's not a toy or a transliteration layer over an existing language. Soplang has its own grammar, its own type system, and its own compiler pipeline.
How the compiler works
Soplang v3 is written in Rust. Source runs through a lexer, parser, and semantic pass into a high-level IR, then either a Cranelift JIT for fast local runs or an ahead-of-time build path that compiles down to a standalone native binary, no separate runtime required to ship a program.
v2.0.0
Latest release (v3 next)
155
GitHub stars
36
Forks
MIT
License
- Dual typing, static types like "abn" (number) and "qoraal" (string) alongside a dynamic "door"
- Full object-oriented support, classes, inheritance, encapsulation
- An interactive REPL powered by the same compiled pipeline
- A VS Code extension and CLI for a first-class dev experience
What the code looks like
qor("Salaan, Adduunka!") // Hello, World!
door magac = "Sharafdin"
abn age = 25
hawl salaam(qof) {
celi "Salaan, " + qof + "!"
}
qor(salaam(magac))The v2 tree-walking interpreter has moved to its own repo. All new compiler, JIT and AOT development for v3 happens in the main Rust implementation.
What's next
Soplang v3 will be released soon, and we will write a full post when it ships. Until then, Soplang is developed in the open under the MIT license: the docs at soplang.org have installers for Windows, macOS and Linux for the current release, plus a full language reference and tutorial track, and the v3 compiler can be built from source on GitHub.
Writing about Somali language technology, data, and AI from the team in Mogadishu.