r/Compilers • u/akaDrimer • Oct 30 '26
I built Eskiu, a self-hosting systems language. It now has its own ARM64 code generator alongside LLVM.
Hi r/Compilers,
I've been working on Eskiu, a statically typed systems programming language with C-like syntax, explicit memory management, generics, interfaces, async/await, and native C interoperability.
I originally learned programming with Ruby, but the more software I built, the more I found C underneath everything, including Ruby and Python themselves. Over time, I came to appreciate C's simplicity and directness.
Rust and Zig are well-designed languages, but for the kind of work I do, I wanted something simpler to learn and adopt while retaining low-level control.
So I started building Eskiu.
What began as a personal project has since grown into a language I use in production software at ReactVision, as well as in a digital identity platform. These real-world applications have pushed me to focus on reliability, performance, interoperability, and tooling rather than language features alone.
I wanted to share a few compiler milestones that might interest this community.
Self-hosting
Eskiu has two compiler implementations: the original C++ compiler and a compiler written in Eskiu itself.
Both are tested for parity, and the self-hosted implementation undergoes a three-stage bootstrap to verify that it can compile itself consistently.
EIR (Eskiu Intermediate Representation)
One of the more interesting parts of the project has been developing EIR, an intermediate representation that provides an alternative compilation pipeline.
With version 0.14.1, Eskiu gained native backends capable of generating ARM64 assembly and C99 without going through LLVM's code generator.
LLVM remains the default backend, but EIR can now produce native executables through its own compilation path.
The ARM64 backend handles calling conventions, C ABI interoperability, structures passed and returned by value, closures, and exception handling through a small runtime.
The new backends are still evolving, and LLVM remains considerably more mature in terms of optimisation.
Correctness and performance
I've also been working on compiler correctness and benchmarking.
I ported all 50 LangArena benchmarks to Eskiu. Both compiler implementations produce matching results across the suite, and on the 39 algorithmic benchmarks, Eskiu's performance is broadly comparable to C in my local measurements.
These aren't official LangArena leaderboard results, but they've been useful for identifying optimisation opportunities and regressions.
Recent improvements include LLVM loop and SLP vectorisation, faster JSON and regex implementations, and fixes for alignment-sensitive memory accesses.
Why I'm sharing this
I'm not trying to build a replacement for C, Rust, or Zig. Eskiu is simply the language I wanted to use, and building its compiler has been an incredibly rewarding engineering experience.
I'm particularly interested in hearing from people who have worked on compiler backends, intermediate representations, and self-hosting.
How have you approached validating a custom code generator against an established backend like LLVM? And at what point do you think maintaining an independent backend becomes worthwhile?
Links:
- Source code: https://github.com/eskiu-lang/eskiu
- EIR specification: https://github.com/eskiu-lang/eskiu/blob/develop/docs/dev/eir-spec.md
- Website: https://eskiu-lang.org
I'd appreciate any technical feedback, criticism, or suggestions.
Thanks for reading!
11
u/AustinVelonaut Oct 30 '26
Dead Internet Theory is proven true more and more. An LLM-generated posting pointing to an LLM-generated compiler, and commented upon by an LLM in the comments.
Reminds me of the joke about the future robot factory: a dark warehouse filled with thousands of working robots, run by a man and a dog. The man's job is to feed the dog. The dog's job is to bite the man if he tries to mess with the robots.
0
u/Trave11er3427 Oct 30 '26
congrats on your launch. 🎉 I’m near finishing my new language as well and it’s encouraging to see people like you that are 2 steps ahead of me. you stuck it out and launched! so, how long did it take you to get this far, from start to today? also I’m curious how you mapped your EIR to LLVM? (I’ve found that parsing the language into my own IR was easy, lowering it to C++ was difficult but I managed it, but lowering my IR to LLVM has been a quite a challenge.) did you create a mapping table and an engine to lower it automatically, or did you lower it by hand for each EIR node, or some combo of that?
-4
u/[deleted] Oct 30 '26
[removed] — view removed comment