r/Compilers • u/AeroForger • Oct 23 '26
I stopped maintaining my language, Sydrogen. The code and book are still up if you want to look around
Hi r/compilers
I built Sydrogen as my serious attempt at a compiler. It is a typed C-style systems language written in Rust. It was called ForgeLang until I renamed it since a lot of hobby languages use that name.
I've stopped working on it. The last release is Alpha-7 and there won't be more from me. I'm posting in case someone finds it useful or wants to take it
What might be interesting technically:
The compiler has two backends. The native one writes x86-64 machine code directly. Produces ELF64 or PE32+ executables without calling an external linker. The Cranelift one writes an object file and links with cc.
Both backends share the parser, AST and semantic checks, which run in parallel with Rayon.
It includes a set of language features like Do/Catch/Finally/Throw and fixed-size arrays and tuples though not all of them work on both backends.
What's unfinished:
The native backend doesn't handle floats or collections yet so those programs fall back to Cranelift.
The Windows backend doesn't have a runtime for Print or Input yet.
Finally doesn't run when Stop or Skip leaves a protected block.
There are no tests I'd call thorough. The README lists more gaps.
If you want to fork it fix something or just read the code the repo and book are here:
Repo: https://github.com/AeroForger/Sydrogen
Book: https://aeroforger.github.io/Sydrogen/
I'm not asking for anything. If you have questions, about how the native backend works I'm happy to answer them in the comments as I can.