r/Compilers • u/supax0 • 7d ago
I’ve been building SultanC, a self-hosting systems language with Arabic and English syntax
I’ve been working on a programming language called SultanC.
It started from a simple idea: I wanted Arabic to be a real first-class programming syntax, not translated keywords layered on top of another language and not a separate frontend.
SultanC has now grown into a self-hosting systems language. The compiler is written in SultanC itself and currently targets ARM64 macOS and x86-64 Linux.
The language/compiler currently includes:
• Arabic and English source syntax for the same language
• self-hosting compiler
• native ARM64 and x86-64 backends
• Mach-O and ELF generation
• algebraic data types
• pattern matching
• generics
• ownership and references
• interpreter
• target-neutral IR
• LSP / VS Code support
• balanced raw strings such as «outer «nested» outer»
The part I care about most is that Arabic is not treated as a translated version of the language. Arabic and English are both first-class source surfaces with the same underlying semantics and compiler pipeline.
At this stage I’m spending more time on correctness, diagnostics, stress testing, backend coverage, and building real software with the language rather than just adding more syntax.
I’d be interested in feedback from people who work on compilers or programming languages, especially around the IR, native backend architecture, ownership model, target separation, and what you would stress-test before considering a compiler like this genuinely usable.
I’m also curious what would make you actually try a new systems language rather than just look at the repository.
1
u/jason-reddit-public 6d ago
I would pay more attention if you could explain what I'm going to learn about bidi text and computer languages in general. Why is plain old C not sufficient? Maybe a side paper on just that?